Created
October 8, 2022 17:34
-
-
Save barisbll/9b82f04de82842d70a043b95bf0af257 to your computer and use it in GitHub Desktop.
Eslint configuration file after jest plugin added
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
module.exports = { | |
env: { | |
commonjs: true, | |
es2021: true, | |
node: true, | |
'jest/globals': true, | |
}, | |
extends: ['airbnb-base'], | |
parser: '@typescript-eslint/parser', | |
parserOptions: { | |
ecmaVersion: 'latest', | |
}, | |
plugins: ['@typescript-eslint', 'jest'], | |
rules: { | |
'import/extensions': [ | |
'error', | |
'ignorePackages', | |
{ | |
js: 'never', | |
jsx: 'never', | |
ts: 'never', | |
tsx: 'never', | |
}, | |
], | |
'object-curly-newline': 'off', | |
'implicit-arrow-linebreak': 'off', | |
'operator-linebreak': 'off', | |
'import/prefer-default-export': 'off', | |
'class-methods-use-this': 'off', | |
indent: 'off', | |
}, | |
settings: { | |
'import/resolver': { | |
node: { | |
extensions: ['.js', '.jsx', '.ts', '.tsx'], | |
}, | |
}, | |
}, | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment