-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
config: Add pre-commit hook by husky and lint-staged
- Loading branch information
1 parent
936583f
commit f97fa4c
Showing
3 changed files
with
20 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
npx --no-install lint-staged |
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 |
---|---|---|
|
@@ -10,7 +10,7 @@ | |
"ci": "npm run tsc && npm run build && npm run lint && npm run test", | ||
"deploy": "npm run site:build && npm run site:deploy", | ||
"dev": "tsc --skipLibCheck packages/design/src/theme/index.ts --outDir ./.dumi/tmp/plugin-theme-less && cross-env UMI_ENV=theme dumi dev", | ||
"prepare": "dumi setup", | ||
"prepare": "husky install && dumi setup", | ||
"prepublishOnly": "npm run build", | ||
"publish": "lerna publish", | ||
"publish:from-package": "lerna publish from-package", | ||
|
@@ -30,11 +30,11 @@ | |
"locale:remove-useless": "ts-node scripts/remove-useless-locale.ts" | ||
}, | ||
"lint-staged": { | ||
"*.{js,jsx,less,md,json}": [ | ||
"prettier --write" | ||
"*.{js,jsx,ts,tsx}": [ | ||
"eslint" | ||
], | ||
"*.ts?(x)": [ | ||
"prettier --parser=typescript --write" | ||
"*.{js,jsx,ts,tsx,less,md,json}": [ | ||
"prettier --write" | ||
] | ||
}, | ||
"devDependencies": { | ||
|
@@ -43,12 +43,12 @@ | |
"@ant-design/icons": "^5.2.6", | ||
"@babel/cli": "^7.23.0", | ||
"@babel/preset-env": "^7.23.2", | ||
"@chenshuai2144/less2cssinjs": "^1.0.7", | ||
"@ctrl/tinycolor": "^4.0.2", | ||
"@emotion/babel-preset-css-prop": "^11.11.0", | ||
"@emotion/css": "^11.11.2", | ||
"@emotion/react": "^11.11.1", | ||
"@emotion/server": "^11.11.0", | ||
"@chenshuai2144/less2cssinjs": "^1.0.7", | ||
"@qixian.cs/github-contributors-list": "^1.1.0", | ||
"@stackblitz/sdk": "^1.9.0", | ||
"@testing-library/dom": "^9.3.3", | ||
|
@@ -78,6 +78,7 @@ | |
"fs-extra": "^11.1.1", | ||
"gh-pages": "^6.0.0", | ||
"html2sketch": "^1.0.2", | ||
"husky": "^8.0.3", | ||
"identity-obj-proxy": "^3.0.0", | ||
"jest": "^29.7.0", | ||
"jest-canvas-mock": "^2.5.2", | ||
|
@@ -116,8 +117,5 @@ | |
"yorkie": "^2.0.0" | ||
}, | ||
"packageManager": "[email protected]", | ||
"gitHooks": { | ||
"pre-commit": "lint-staged" | ||
}, | ||
"repository": "[email protected]:oceanbase/oceanbase-design.git" | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.