Skip to content

Commit

Permalink
perf: Speed up pre-commit hooks
Browse files Browse the repository at this point in the history
We no longer need to build the entire framework to lint it, so I've removed the build step from the
pre-commit hook and replaced it with just stylelint.
  • Loading branch information
trezy committed Dec 18, 2018
1 parent 218b3bf commit bd7025f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,10 @@
},
"lint-staged": {
"scss/**/*.scss": [
"npm run build",
"git add"
"npm run build:stylelint"
],
"*.js": [
"eslint '.storybook/**/*.js' 'docs/**/*.js'",
"git add"
"eslint '.storybook/**/*.js' 'docs/**/*.js'"
]
},
"prettier": {
Expand Down

0 comments on commit bd7025f

Please sign in to comment.