chore: add lint cache (#1917)
This commit is contained in:
parent
42756045bb
commit
32b206a137
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"singleQuote": true,
|
"singleQuote": true,
|
||||||
"trailingComma": "es5",
|
"trailingComma": "es5",
|
||||||
"tabWidth": 2,
|
"tabWidth": 2,
|
||||||
"arrowParens": "avoid"
|
"arrowParens": "avoid"
|
||||||
}
|
}
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
"start": "yarn workspace @affine/web start",
|
"start": "yarn workspace @affine/web start",
|
||||||
"start:storybook": "yarn exec serve packages/component/storybook-static -l 6006",
|
"start:storybook": "yarn exec serve packages/component/storybook-static -l 6006",
|
||||||
"start:e2e": "yar dlx run-p start start:storybook",
|
"start:e2e": "yar dlx run-p start start:storybook",
|
||||||
"lint": "eslint . --ext .js,mjs,.ts,.tsx",
|
"lint": "eslint . --ext .js,mjs,.ts,.tsx --cache",
|
||||||
"lint:fix": "yarn lint --fix",
|
"lint:fix": "yarn lint --fix",
|
||||||
"test": "playwright test",
|
"test": "playwright test",
|
||||||
"test:coverage": "COVERAGE=true yarn test --forbid-only",
|
"test:coverage": "COVERAGE=true yarn test --forbid-only",
|
||||||
@ -33,7 +33,7 @@
|
|||||||
"notify": "node scripts/notify.mjs"
|
"notify": "node scripts/notify.mjs"
|
||||||
},
|
},
|
||||||
"lint-staged": {
|
"lint-staged": {
|
||||||
"*": "prettier --write --ignore-unknown",
|
"*": "prettier --write --ignore-unknown --cache",
|
||||||
"*.{ts,tsx,mjs,js,jsx}": "eslint --cache --fix"
|
"*.{ts,tsx,mjs,js,jsx}": "eslint --cache --fix"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user