-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
30 lines (30 loc) · 954 Bytes
/
.eslintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
module.exports = {
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint', 'prettier'],
extends: [
'airbnb',
'plugin:import/errors',
'plugin:import/warnings',
'plugin:@typescript-eslint/recommended',
'prettier',
],
rules: {
'import/prefer-default-export': 'off',
'prettier/prettier': ['error', { endOfLine: 'auto' }],
'import/extensions': 'off',
'import/no-unresolved': 'off',
'import/no-extraneous-dependencies': ['error', { devDependencies: true }],
'arrow-body-style': 'off',
'react/prop-types': 'off',
'react/require-default-props': 'off',
'react/jsx-filename-extension': [
'error',
{ extensions: ['.js', '.jsx', '.ts', '.tsx'] },
],
'react/no-array-index-key': 'off',
'react/jsx-props-no-spreading': 'off',
'jsx-a11y/no-noninteractive-element-interactions': 'off',
'no-shadow': 'off',
'@typescript-eslint/no-shadow': 'error',
},
};