Skip to content

Commit

Permalink
chore: drop pretty-quick in favor of lint-staged, update all deps
Browse files Browse the repository at this point in the history
  • Loading branch information
Avivbens committed Apr 3, 2024
1 parent 20018db commit fd15014
Show file tree
Hide file tree
Showing 5 changed files with 7,969 additions and 17,148 deletions.
9 changes: 9 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,14 @@ module.exports = {
'jest/prefer-expect-assertions': 0,
},
},
{
files: ['*.json'],
parser: 'jsonc-eslint-parser',
extends: ['plugin:jsonc/recommended-with-jsonc'],
rules: {
'deprecation/deprecation': 'off',
'@typescript-eslint/consistent-type-imports': 'off',
},
},
],
}
5 changes: 1 addition & 4 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm run pre-commit
npx lint-staged
7 changes: 7 additions & 0 deletions .lintstagedrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = process.env.CI
? {
'**/*': 'npm run lint',
}
: {
'**/*': 'npm run lint:fix',
}
Loading

0 comments on commit fd15014

Please sign in to comment.