Skip to content

Commit

Permalink
Add pre-commit linting hook
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandyn Friedly committed Jan 14, 2020
1 parent 51ab6ab commit 1e1827b
Show file tree
Hide file tree
Showing 2 changed files with 509 additions and 123 deletions.
13 changes: 13 additions & 0 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,9 @@
"eslint-plugin-ember": "^6.2.0",
"eslint-plugin-import": "^2.19.1",
"faker": "^4.1.0",
"husky": ">=1",
"jsonwebtoken": "8.5.1",
"lint-staged": "^9.5.0",
"loader.js": "^4.7.0",
"mapbox-gl": "0.54.0",
"pretender": "3.0.1",
Expand All @@ -113,5 +115,16 @@
"paths": [
"lib/carto-promises-utility"
]
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.js": [
"eslint --fix",
"git add"
]
}
}
Loading

0 comments on commit 1e1827b

Please sign in to comment.