Skip to content

Instantly share code, notes, and snippets.

@barisbll
Created October 8, 2022 17:34
Show Gist options
  • Save barisbll/9b82f04de82842d70a043b95bf0af257 to your computer and use it in GitHub Desktop.
Save barisbll/9b82f04de82842d70a043b95bf0af257 to your computer and use it in GitHub Desktop.
Eslint configuration file after jest plugin added
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