Skip to content

Commit

Permalink
pre-commit lint checks
Browse files Browse the repository at this point in the history
  • Loading branch information
jjspace committed Jan 3, 2024
1 parent df223b6 commit 2e566a7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
7 changes: 7 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,18 @@
"eslint-plugin-es": "^4.1.0",
"eslint-plugin-html": "^7.1.0",
"html-webpack-plugin": "^5.3.2",
"husky": "^8.0.3",
"prettier": "^3.1.1",
"style-loader": "^3.2.1",
"url-loader": "^4.1.1",
"webpack": "^5.51.1",
"webpack-cli": "^4.9.1",
"webpack-dev-server": "^4.3.1"
},
"lint-staged": {
"*.{js,cjs,html}": [
"eslint --cache --quiet",
"prettier --write --no-config"
]
}
}

0 comments on commit 2e566a7

Please sign in to comment.