-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc.js
49 lines (49 loc) · 1.32 KB
/
.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
module.exports = {
root: true,
extends: ['airbnb', 'airbnb/hooks', 'plugin:prettier/recommended'],
parserOptions: {
ecmaVersion: 2017,
sourceType: 'module',
ecmaFeatures: {
jsx: true,
},
},
env: {
browser: true,
node: true,
},
rules: {
'no-console': 'off',
'no-shadow': 'off',
'no-underscore-dangle': 'off',
'import/extensions': 'off',
'import/no-unresolved': 'off',
'import/no-extraneous-dependencies': 'off',
'import/prefer-default-export': 'off',
'react/jsx-filename-extension': [
'error',
{ extensions: ['.jsx', '.tsx', '.js'] },
],
'react/jsx-one-expression-per-line': 'off',
'react/jsx-props-no-spreading': 'off',
},
overrides: [
{
files: ['**/*.ts', '**/*.tsx'],
parser: '@typescript-eslint/parser',
extends: [
'plugin:import/typescript',
'plugin:@typescript-eslint/recommended',
],
rules: {
'import/extensions': ['error', { ts: 'never', tsx: 'never' }],
'no-use-before-define': 'off',
'react/prop-types': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-use-before-define': 'error',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
},
},
],
};