Skip to content

Commit

Permalink
fix: glob pattern according to lint-staged README
Browse files Browse the repository at this point in the history
  • Loading branch information
ybiquitous committed Jul 12, 2017
1 parent 66a7ad9 commit 3059355
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions postinstall.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ const examples = [
precommit: 'lint-staged',
},
'lint-staged': {
'*.@(js|jsx)': 'eslint --max-warnings=0',
'*.{js,jsx}': 'eslint --max-warnings=0',
},
},
{
scripts: {
precommit: 'lint-staged',
},
'lint-staged': {
'*.@(js|jsx)': [
'*.{js,jsx}': [
'eslint --fix --max-warnings=0',
'git add',
],
Expand Down

0 comments on commit 3059355

Please sign in to comment.