-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
49 lines (49 loc) · 1.27 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 = {
plugins: ['@typescript-eslint', 'import', 'react-hooks', 'prettier'],
extends: ['plugin:react/recommended', 'plugin:import/recommended', 'prettier'],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
ecmaFeatures: {
jsx: true,
},
},
rules: {
'no-console': [2, { allow: ['error'] }],
'prettier/prettier': 2,
'import/imports-first': 2,
'import/first': 2,
'react-hooks/rules-of-hooks': 2,
'react-hooks/exhaustive-deps': 0,
'react/prop-types': 0,
'import/no-named-as-default': 0,
'@typescript-eslint/explicit-module-boundary-types': 0,
'@typescript-eslint/ban-ts-comment': [2, { 'ts-ignore': 'allow-with-description', minimumDescriptionLength: 10 }],
'@typescript-eslint/no-explicit-any': 0,
},
overrides: [
{
files: ['**/*.spec.js', '**/*.spec.jsx', 'jest.config.js'],
rules: {
'import/imports-first': 0,
'import/first': 0,
'import/order': 0,
},
},
],
settings: {
react: {
version: 'detect',
},
'import/parsers': {
'@typescript-eslint/parser': ['.ts', '.tsx', '.js'],
},
'import/resolver': {
node: {},
typescript: {
project: './',
},
},
},
}