Skip to content

Commit

Permalink
Merge pull request #4 from Exabyte-io/feature/SOF-6169
Browse files Browse the repository at this point in the history
SOF 6169 - support linter hooks
  • Loading branch information
tjduigna authored Jul 26, 2022
2 parents fd80f03 + cdaaedd commit b53e145
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ dist/
build/
node_modules/
.eslintcache
.husky/
.nyc_output/
.idea/

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
10 changes: 7 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
"lint": "eslint src tests && prettier --write src tests",
"lint:fix": "eslint --fix --cache src tests && prettier --write src tests",
"transpile": "babel --out-dir dist src",
"postinstall": "npm run transpile"
"postinstall": "npm run transpile",
"prettier": "prettier --check src tests",
"prepare": "husky install"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -40,15 +42,17 @@
"eslint": "7.32.0",
"eslint-config-airbnb": "19.0.2",
"eslint-config-prettier": "8.3.0",
"eslint-plugin-react": "7.30.0",
"eslint-plugin-import": "2.25.3",
"eslint-plugin-jsdoc": "37.1.0",
"eslint-plugin-jsx-a11y": "6.5.1",
"eslint-plugin-prettier": "4.0.0",
"eslint-plugin-prettier": "4.2.1",
"eslint-plugin-simple-import-sort": "7.0.0",
"husky": "^7.0.4",
"lint-staged": "^12.1.2",
"mocha": "^9.1.3",
"nyc": "^15.1.0"
"nyc": "^15.1.0",
"prettier": "^2.7.1"
},
"engines": {
"node": ">=12.0.0"
Expand Down

0 comments on commit b53e145

Please sign in to comment.