Skip to content

Commit

Permalink
Some fine tuning-up of rules for test files
Browse files Browse the repository at this point in the history
  • Loading branch information
burtek committed Nov 12, 2021
1 parent b87b3f7 commit 8be6689
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions eslint-config-base.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,6 @@ module.exports = {
'import/extensions': ['.js', '.jsx', '.ts', '.tsx']
},
overrides: [
{
files: ['*.test.js', '*.test.jsx', '*.test.ts', '*.test.tsx'],
env: {
jest: true
}
},
{
files: ['*.ts', '*.tsx'],
parser: '@typescript-eslint/parser',
Expand Down Expand Up @@ -253,6 +247,19 @@ module.exports = {
rules: {
'jsx-quotes': ['error', 'prefer-single']
}
},
{
files: ['*.test.js', '*.test.jsx', '*.test.ts', '*.test.tsx'],
env: {
jest: true,
node: true
},
rules: {
'no-console': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-magic-numbers': 'off',
'@typescript-eslint/no-unsafe-assignment': 'off'
}
}
],
reportUnusedDisableDirectives: true,
Expand Down

0 comments on commit 8be6689

Please sign in to comment.