lint-staged
This commit is contained in:
parent
019c2f5976
commit
aafb55e46b
4
.husky/pre-commit
Executable file
4
.husky/pre-commit
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/env sh
|
||||
. "$(dirname -- "$0")/_/husky.sh"
|
||||
|
||||
npm run pre-commit
|
7
.lintstagedrc
Normal file
7
.lintstagedrc
Normal file
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"*.{js,ts,cjs,mjs,d.mts,jsx,tsx,json,jsonc}": [
|
||||
"biome lint src --no-errors-on-unmatched"
|
||||
],
|
||||
"package.json": "sort-package-json",
|
||||
"public/locales/**/*.json": "sort-json"
|
||||
}
|
|
@ -19,6 +19,7 @@
|
|||
"lint:code:fix": "npx @biomejs/biome lint src --apply-unsafe --log-kind=compact --verbose",
|
||||
"lint:styles": "stylelint **/*.{scss,css}",
|
||||
"lint:styles:fix": "stylelint **/*.{scss,css} --fix",
|
||||
"pre-commit": "lint-staged",
|
||||
"prepare": "husky install",
|
||||
"preview": "vite preview",
|
||||
"start": "vite",
|
||||
|
|
Loading…
Reference in New Issue
Block a user