chore: add Lint Staged

This commit is contained in:
MAZE
2023-10-05 16:50:05 +03:30
parent 110359b915
commit 6cad46040d
3 changed files with 371 additions and 2 deletions

8
.lintstagedrc.json Normal file
View File

@@ -0,0 +1,8 @@
{
"*.{ts,tsx}": ["eslint --fix", "tsc-files --noEmit"],
"*.{js,jsx}": "eslint --fix",
"*.{json,md}": "prettier --write",
"*.css": "stylelint --fix",
"*.astro": ["eslint --fix", "stylelint --fix"],
"*.html": ["prettier --write", "stylelint --fix"]
}