chore: update 'lint-staged' rules (#2969)

This commit is contained in:
Alex Yang
2023-07-03 14:00:50 +08:00
parent 20ce8c0cd5
commit bbb97d06da
+6 -2
View File
@@ -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"
] ]
}, },