Skip to content

Commit

Permalink
chore: eslint config refactory
Browse files Browse the repository at this point in the history
  • Loading branch information
kukhariev committed Dec 8, 2024
1 parent 344446e commit 01d4a7e
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,9 @@ module.exports = {
},
extends: [
'eslint:recommended',
'plugin:jest/recommended',
'plugin:jest/style',
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking',
'plugin:prettier/recommended',
'plugin:jest-formatting/recommended'
'plugin:prettier/recommended'
],
rules: {
'prettier/prettier': 'warn',
Expand Down Expand Up @@ -51,7 +48,6 @@ module.exports = {
format: ['PascalCase']
}
],
'jest/expect-expect': ['error', { assertFunctionNames: ['expect', 'request.**.expect'] }],
'no-empty': 'off',
'no-irregular-whitespace': 'error',
'no-return-assign': 'error',
Expand All @@ -67,10 +63,24 @@ module.exports = {
'prefer-template': 'error',
'prefer-arrow-callback': 'warn',
'linebreak-style': ['error', 'unix'],
'quotes': ['error', 'single'],
quotes: ['error', 'single'],
'no-console': 'error'
},
overrides: [
{
files: ['test/**'],
plugins: ['jest'],
extends: [
'plugin:jest/recommended',
'plugin:jest/style',
'plugin:jest-formatting/recommended'
],
rules: {
'@typescript-eslint/unbound-method': 'off',
'jest/unbound-method': 'error',
'jest/expect-expect': ['error', { assertFunctionNames: ['expect', 'request.**.expect'] }]
}
},
{
files: ['examples/**/*.*'],
rules: {
Expand Down

0 comments on commit 01d4a7e

Please sign in to comment.