Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions astro/.husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
cd astro
node --run lint-staged
4 changes: 4 additions & 0 deletions astro/.lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"*.{js,jsx,ts,tsx,astro}": ["eslint --fix", "prettier --write"],
"*.{json,md,css,mjs}": ["prettier --write"]
}
41 changes: 31 additions & 10 deletions astro/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion astro/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
"format": "prettier --write .",
"format:check": "prettier --check .",
"check": "npm run format:check && npm run lint",
"fix": "npm run format && npm run lint:fix"
"fix": "npm run format && npm run lint:fix",
"prepare": "cd .. && husky astro/.husky",
"lint-staged": "lint-staged"
},
"dependencies": {
"@astrojs/mdx": "^4.3.13",
Expand All @@ -39,6 +41,7 @@
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-astro": "^1.5.0",
"eslint-plugin-jsx-a11y": "^6.10.2",
"husky": "^9.1.7",
"lint-staged": "^16.2.7",
"postcss-custom-media": "^12.0.0",
"postcss-nested": "^7.0.2",
Expand Down