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:
parent
0aafe28f85
commit
d809f982f0
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
. "$(dirname -- "$0")/_/husky.sh"
|
. "$(dirname -- "$0")/_/husky.sh"
|
||||||
|
|
||||||
npm run validate
|
npm run lint:staged
|
||||||
|
934
package-lock.json
generated
934
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
16
package.json
16
package.json
@ -28,7 +28,18 @@
|
|||||||
"create:symlinks": "./scripts/create-symlinks.sh",
|
"create:symlinks": "./scripts/create-symlinks.sh",
|
||||||
"move:downloads": "ts-node --esm scripts/move-downloads.ts",
|
"move:downloads": "ts-node --esm scripts/move-downloads.ts",
|
||||||
"prepare": "husky install .config/husky",
|
"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": {
|
"dependencies": {
|
||||||
"@astrojs/check": "^0.2.1",
|
"@astrojs/check": "^0.2.1",
|
||||||
@ -37,6 +48,8 @@
|
|||||||
"@astrojs/sitemap": "^3.0.2",
|
"@astrojs/sitemap": "^3.0.2",
|
||||||
"@nanostores/query": "^0.2.4",
|
"@nanostores/query": "^0.2.4",
|
||||||
"@nanostores/react": "^0.7.1",
|
"@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",
|
"@rainbow-me/rainbowkit": "^1.1.3",
|
||||||
"astro": "3.3.4",
|
"astro": "3.3.4",
|
||||||
"astro-expressive-code": "^0.26.2",
|
"astro-expressive-code": "^0.26.2",
|
||||||
@ -78,6 +91,7 @@
|
|||||||
"husky": "^8.0.3",
|
"husky": "^8.0.3",
|
||||||
"identity-obj-proxy": "^3.0.0",
|
"identity-obj-proxy": "^3.0.0",
|
||||||
"jsdom": "^22.1.0",
|
"jsdom": "^22.1.0",
|
||||||
|
"lint-staged": "^15.0.2",
|
||||||
"markdownlint-cli": "^0.37.0",
|
"markdownlint-cli": "^0.37.0",
|
||||||
"mdast-util-to-hast": "^13.0.2",
|
"mdast-util-to-hast": "^13.0.2",
|
||||||
"mdast-util-to-string": "^4.0.0",
|
"mdast-util-to-string": "^4.0.0",
|
||||||
|
Loading…
Reference in New Issue
Block a user