mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-08 04:36:13 +08:00
chore: update 'lint-staged' rules (#2969)
This commit is contained in:
+6
-2
@@ -30,7 +30,7 @@
|
|||||||
"lint:fix": "yarn lint --fix",
|
"lint:fix": "yarn lint --fix",
|
||||||
"e2e": "playwright test",
|
"e2e": "playwright test",
|
||||||
"e2e:coverage": "COVERAGE=true yarn e2e --forbid-only",
|
"e2e:coverage": "COVERAGE=true yarn e2e --forbid-only",
|
||||||
"start:e2e": "yar dlx run-p start start:storybook",
|
"start:e2e": "yarn dlx run-p start start:storybook",
|
||||||
"test": "ENABLE_PRELOADING=false vitest --run",
|
"test": "ENABLE_PRELOADING=false vitest --run",
|
||||||
"test:ui": "ENABLE_PRELOADING=false vitest --ui",
|
"test:ui": "ENABLE_PRELOADING=false vitest --ui",
|
||||||
"test:coverage": "ENABLE_PRELOADING=false vitest run --coverage",
|
"test:coverage": "ENABLE_PRELOADING=false vitest run --coverage",
|
||||||
@@ -41,8 +41,12 @@
|
|||||||
},
|
},
|
||||||
"lint-staged": {
|
"lint-staged": {
|
||||||
"*": "prettier --write --ignore-unknown --cache",
|
"*": "prettier --write --ignore-unknown --cache",
|
||||||
"*.{ts,tsx,mjs,js,jsx}": "eslint --cache --fix",
|
"*.{ts,tsx,mjs,js,jsx}": [
|
||||||
|
"prettier . --ignore-unknown --write",
|
||||||
|
"eslint --cache --fix"
|
||||||
|
],
|
||||||
"*.toml": [
|
"*.toml": [
|
||||||
|
"prettier . --ignore-unknown --write",
|
||||||
"taplo format"
|
"taplo format"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user