chore: pretty lint-staged.config.js

This commit is contained in:
oomeow
2025-10-07 18:50:18 +08:00
parent 86b4712beb
commit f492580864

View File

@@ -2,5 +2,8 @@ export default {
// Run Prettier on all supported file types
"*.{js,jsx,ts,tsx,json,css,scss,md,html}": ["prettier --write"],
// Run ESLint on JavaScript/TypeScript files with cache for performance
"*.{js,jsx,ts,tsx}": ["eslint --cache --cache-location .eslintcache --fix", "eslint --cache --cache-location .eslintcache"],
"*.{js,jsx,ts,tsx}": [
"eslint --cache --cache-location .eslintcache --fix",
"eslint --cache --cache-location .eslintcache",
],
};