mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-04 19:15:33 +08:00
chore: update 'lint-staged' rules (#2969)
This commit is contained in:
+6
-2
@@ -30,7 +30,7 @@
|
||||
"lint:fix": "yarn lint --fix",
|
||||
"e2e": "playwright test",
|
||||
"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:ui": "ENABLE_PRELOADING=false vitest --ui",
|
||||
"test:coverage": "ENABLE_PRELOADING=false vitest run --coverage",
|
||||
@@ -41,8 +41,12 @@
|
||||
},
|
||||
"lint-staged": {
|
||||
"*": "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": [
|
||||
"prettier . --ignore-unknown --write",
|
||||
"taplo format"
|
||||
]
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user