generated from ianzone/react-storybook
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
182 additions
and
10,666 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
npm i antd-enhanced | ||
``` | ||
|
||
// TODO: storybook 8.5 发布的时候,将包管理器改为 bun | ||
// TODO: 完善文档 | ||
|
||
hooks ref | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,43 @@ | ||
# EXAMPLE USAGE: | ||
# | ||
# Refer for explanation to following link: | ||
# https://github.com/evilmartians/lefthook/blob/master/docs/configuration.md | ||
# | ||
# pre-push: | ||
# commands: | ||
# packages-audit: | ||
# tags: frontend security | ||
# run: yarn audit | ||
# gems-audit: | ||
# tags: backend security | ||
# run: bundle audit | ||
# yaml-language-server:$schema=./node_modules/lefthook/schema.json | ||
# https://evilmartians.github.io/lefthook/configuration/ | ||
|
||
pre-commit: | ||
piped: true | ||
follow: true | ||
commands: | ||
staged: | ||
priority: 1 | ||
run: echo {staged_files} | tr ' ' '\n' | ||
security: | ||
priority: 2 | ||
run: gitleaks protect --staged --no-banner | ||
unused: # https://knip.dev/reference/cli | ||
priority: 3 | ||
run: na knip --no-exit-code --no-config-hints | ||
typescript: | ||
priority: 4 | ||
glob: "*.{ts,tsx}" | ||
run: na tsc --noEmit | ||
biome: | ||
priority: 5 | ||
jobs: | ||
- name: Linting & Formatting | ||
glob: "*.{ts,tsx,js,jsx,json,jsonc,css}" | ||
run: na biome check --fix {staged_files} --reporter summary | ||
stage_fixed: true | ||
vitest: | ||
priority: 6 | ||
glob: "*/{hooks,utils,services}*.{ts,js}" | ||
run: na vitest related --run {staged_files} | ||
storybook: | ||
priority: 7 | ||
glob: "*/{components,containers,pages}*.{ts,tsx,js,jsx}" | ||
run: echo 'use storybook' | ||
|
||
- name: QA, Audit, Misc | ||
group: | ||
parallel: true | ||
jobs: | ||
# SECTION - QA | ||
- name: typescript | ||
glob: "*.{ts,tsx}" | ||
run: na tsc | ||
- name: vitest | ||
glob: "*.{ts,tsx,js,jsx}" | ||
run: na vitest related --run {staged_files} | ||
- name: storybook | ||
glob: "*.{tsx,jsx}" | ||
run: echo 'use storybook' | ||
# SECTION - Audit | ||
- name: gitleaks | ||
run: gitleaks protect --staged --no-banner | ||
- name: audit | ||
run: echo audit | ||
- name: license | ||
run: echo license | ||
#SECTION - Misc | ||
- name: knip | ||
run: na knip --no-exit-code --no-config-hints | ||
|
||
prepare-commit-msg: | ||
commands: | ||
commit: | ||
interactive: true | ||
run: na git-cz --hook | ||
env: | ||
LEFTHOOK: "0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.