Skip to content

Commit

Permalink
Merge pull request #444 from AlejandroSuero/feature/add-lint-staged-p…
Browse files Browse the repository at this point in the history
…re-commit

feat: add lint staged pre commit
  • Loading branch information
midudev authored Mar 11, 2024
2 parents 900ca7c + 6276bb5 commit 56b2084
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
npm run lint
npm run format:check
npx lint-staged
6 changes: 6 additions & 0 deletions .lintstagedrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"src/**/*.{astro,ts,js,tsx,jsx}": [
"eslint --ext",
"prettier --check"
]
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"eslint-plugin-jsx-a11y": "6.8.0",
"husky": "9.0.11",
"lightningcss": "1.24.0",
"lint-staged": "15.2.2",
"postcss-nesting": "12.1.0",
"prettier": "3.2.5",
"prettier-plugin-astro": "0.13.0",
Expand Down

0 comments on commit 56b2084

Please sign in to comment.