Skip to content

Commit

Permalink
Add husky and lint-staged git hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
mrliptontea committed May 25, 2020
1 parent dfce2e0 commit 71fb78a
Show file tree
Hide file tree
Showing 3 changed files with 864 additions and 31 deletions.
12 changes: 12 additions & 0 deletions .lintstagedrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
module.exports = {
"src/**/*.js": files => [
`eslint "${files.join('" "')}"`,
'grunt js',
'git add javascripts/'
],
"src/**/*.scss": files => [
`stylelint "${files.join('" "')}"`,
'grunt css',
'git add stylesheets/ plugins/'
],
}
Loading

0 comments on commit 71fb78a

Please sign in to comment.