1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-11-22 09:56:51 +01:00

setup lint-staged

This commit is contained in:
Matthias Kretschmann 2023-10-26 19:01:25 +01:00
parent 0aafe28f85
commit d809f982f0
Signed by: m
GPG Key ID: 606EEEF3C479A91F
3 changed files with 950 additions and 2 deletions

View File

@ -1,4 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
npm run validate
npm run lint:staged

934
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -28,7 +28,18 @@
"create:symlinks": "./scripts/create-symlinks.sh",
"move:downloads": "ts-node --esm scripts/move-downloads.ts",
"prepare": "husky install .config/husky",
"validate": "run-p --silent typecheck lint"
"lint:staged": "lint-staged"
},
"lint-staged": {
"*.{ts,tsx,astro}": [
"npm run lint:js"
],
"*.css": [
"npm run lint:css"
],
"*.md": [
"npm run lint:md"
]
},
"dependencies": {
"@astrojs/check": "^0.2.1",
@ -37,6 +48,8 @@
"@astrojs/sitemap": "^3.0.2",
"@nanostores/query": "^0.2.4",
"@nanostores/react": "^0.7.1",
"@radix-ui/react-popover": "^1.0.7",
"@radix-ui/react-select": "^2.0.0",
"@rainbow-me/rainbowkit": "^1.1.3",
"astro": "3.3.4",
"astro-expressive-code": "^0.26.2",
@ -78,6 +91,7 @@
"husky": "^8.0.3",
"identity-obj-proxy": "^3.0.0",
"jsdom": "^22.1.0",
"lint-staged": "^15.0.2",
"markdownlint-cli": "^0.37.0",
"mdast-util-to-hast": "^13.0.2",
"mdast-util-to-string": "^4.0.0",