chore: add lint-staged and edit pre-commit
This commit is contained in:
6
lint-staged.config.js
Normal file
6
lint-staged.config.js
Normal file
@@ -0,0 +1,6 @@
|
||||
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"],
|
||||
};
|
||||
Reference in New Issue
Block a user