Skip to content

Commit

Permalink
Changed config for test files
Browse files Browse the repository at this point in the history
  • Loading branch information
burtek committed Apr 8, 2022
1 parent 7c07b7d commit 8c96228
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions eslint-config-base.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,21 +231,29 @@ module.exports = {
}
},
{
files: ['*.test.js', '*.test.jsx', '*.test.ts', '*.test.tsx'],
extends: [
'plugin:jest-formatting/strict',
'plugin:jest/recommended',
'plugin:jest/style'
],
files: ['*.test.js', '*.test.jsx', '*.test.ts', '*.test.tsx', '__mocks__/*'],
env: {
jest: true,
node: true
},
rules: {
'no-console': 'off',
'no-magic-numbers': 'off',
'no-redeclare': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-magic-numbers': 'off',
'@typescript-eslint/no-unsafe-assignment': 'off',
'@typescript-eslint/no-redeclare': 'off',
'@typescript-eslint/no-unsafe-assignment': 'off'
}
},
{
files: ['*.test.js', '*.test.jsx', '*.test.ts', '*.test.tsx'],
extends: [
'plugin:jest-formatting/strict',
'plugin:jest/recommended',
'plugin:jest/style'
],
rules: {
'jest/consistent-test-it': 'error',
'jest/no-conditional-in-test': 'error',
'jest/no-duplicate-hooks': 'error',
Expand Down

0 comments on commit 8c96228

Please sign in to comment.