-
-
Save Ramielson-Edgar/ad366418887d192e0a279caaf082d8ca to your computer and use it in GitHub Desktop.
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
module.exports = { | |
env: { | |
browser: true, | |
es6: true, | |
}, | |
extends: [ | |
'eslint:recommended', | |
'plugin:react/recommended', | |
'plugin:react-hooks/recommended', | |
'plugin:prettier/recommended', | |
'plugin:jsx-a11y/strict', | |
], | |
parser: '@typescript-eslint/parser', | |
parserOptions: { | |
ecmaFeatures: { | |
jsx: true, | |
}, | |
ecmaVersion: 2018, | |
sourceType: 'module', | |
}, | |
plugins: ['react', 'jsx-a11y', '@typescript-eslint'], | |
rules: { | |
'react-hooks/exhaustive-deps': 'error', | |
'no-var': 'error', | |
'brace-style': 'error', | |
'prefer-template': 'error', | |
radix: 'error', | |
'space-before-blocks': 'error', | |
'import/prefer-default-export': 'off', | |
}, | |
overrides: [ | |
{ | |
files: [ | |
'**/*.test.js', | |
'**/*.test.jsx', | |
'**/*.test.tsx', | |
'**/*.spec.js', | |
'**/*.spec.jsx', | |
'**/*.spec.tsx', | |
], | |
env: { | |
jest: true, | |
}, | |
}, | |
], | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment