Skip to content

Commit

Permalink
chore: update eslint rules
Browse files Browse the repository at this point in the history
  • Loading branch information
Avivbens committed Feb 1, 2024
1 parent e752e4d commit 39c6f0e
Show file tree
Hide file tree
Showing 3 changed files with 505 additions and 146 deletions.
18 changes: 15 additions & 3 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,37 @@ module.exports = {
project: 'tsconfig.json',
sourceType: 'module',
},
plugins: ['@typescript-eslint/eslint-plugin', 'prettier'],
extends: ['plugin:@typescript-eslint/recommended', 'plugin:prettier/recommended', 'prettier'],
plugins: ['@typescript-eslint/eslint-plugin', 'jest', 'prettier', 'deprecation', 'unused-imports'],
extends: ['plugin:@typescript-eslint/recommended', 'eslint:recommended', 'plugin:prettier/recommended', 'prettier'],
root: true,
env: {
node: true,
jest: true,
},
ignorePatterns: ['.eslintrc.js'],
rules: {
'@typescript-eslint/interface-name-prefix': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/consistent-type-imports': 'error',
'no-unused-vars': 'off',
'prettier/prettier': [
'error',
{
endOfLine: 'auto',
},
],
'deprecation/deprecation': 'warn',
'unused-imports/no-unused-imports': 'error',
},
overrides: [
{
files: ['*.spec.js'],
plugins: ['jest'],
extends: ['plugin:jest/recommended'],
rules: {
'jest/prefer-expect-assertions': 0,
},
},
],
}
Loading

0 comments on commit 39c6f0e

Please sign in to comment.