add lint-staged (#49)
This commit is contained in:
parent
64f1f11133
commit
a37a57b437
3 changed files with 9 additions and 2 deletions
|
|
@ -1,2 +1 @@
|
|||
bunx prettier . --write
|
||||
bunx eslint_d $(git diff --name-only HEAD | grep -E '\.(*)$' | xargs)
|
||||
bunx lint-staged
|
||||
BIN
bun.lockb
BIN
bun.lockb
Binary file not shown.
|
|
@ -51,6 +51,7 @@
|
|||
"eslint-plugin-svelte": "^2.36.0",
|
||||
"globals": "^15.0.0",
|
||||
"husky": "^9.1.7",
|
||||
"lint-staged": "^15.3.0",
|
||||
"prettier": "^3.3.2",
|
||||
"prettier-plugin-svelte": "^3.2.6",
|
||||
"prettier-plugin-tailwindcss": "^0.6.5",
|
||||
|
|
@ -83,5 +84,12 @@
|
|||
"tailwind-merge": "^2.5.5",
|
||||
"twilio": "^5.4.0",
|
||||
"zod": "^3.24.0"
|
||||
},
|
||||
"lint-staged": {
|
||||
"*.{json,yml,yaml,css}": "prettier --write",
|
||||
"*.{js,ts,svelte}": [
|
||||
"prettier --write",
|
||||
"eslint --fix"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue