Skip to content

Commit

Permalink
Use husky and lint-staged
Browse files Browse the repository at this point in the history
  • Loading branch information
mantoni committed Jan 17, 2024
1 parent 338f7ab commit ee33984
Show file tree
Hide file tree
Showing 4 changed files with 1,179 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

node_modules/.bin/lint-staged --relative
6 changes: 6 additions & 0 deletions .lintstagedrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
'use strict';

module.exports = {
'*.js': 'eslint --fix',
'*.{js,md}': 'prettier --write'
};
Loading

0 comments on commit ee33984

Please sign in to comment.