Skip to content

Commit

Permalink
Don't run eslint on JSON files
Browse files Browse the repository at this point in the history
eslint should only be run on JavaScript sources.
  • Loading branch information
lpsinger committed Jul 2, 2024
1 parent a68ff59 commit f534bde
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lint-staged.config.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export default {
'*.(json|md|ts|mjs)': ['prettier --write', 'eslint --max-warnings 0 .'],
'*.(json|md|ts|mjs)': 'prettier --write',
'*.(md|ts|mjs)': 'eslint --max-warnings 0 .',
'*.ts': () => 'tsc',
}

0 comments on commit f534bde

Please sign in to comment.