-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
96 lines (95 loc) · 2.46 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
module.exports = {
extends: ['airbnb', 'prettier', 'plugin:import/typescript'],
env: {
browser: true,
node: true,
es6: true,
jest: true,
},
globals: {
$MOCK_PROXY_HOST$: 'readonly',
},
settings: {
react: {
version: '16.9',
},
},
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint', 'react', 'react-hooks', 'prettier', 'markdown'],
overrides: [
{
files: ['*.tsx', '*.jsx'],
rules: {
'react/jsx-filename-extension': 0,
'react/prop-types': 0,
'react/jsx-props-no-spreading': 0,
'react/state-in-constructor': 0,
'react/no-access-state-in-setstate': 0,
'react/destructuring-assignment': 0,
'react/sort-comp': 0,
'react/no-array-index-key': 1,
'spaced-comment': 0,
'react/require-default-props': 0,
},
},
{
files: ['*.md'],
globals: {
React: true,
ReactDOM: true,
mountNode: true,
},
rules: {
indent: 0,
'no-plusplus': 0,
'eol-last': 0,
'no-script-url': 0,
'prefer-rest-params': 0,
'react/no-access-state-in-setstate': 0,
'react/destructuring-assignment': 0,
'react/no-multi-comp': 0,
'jsx-a11y/href-no-hash': 0,
'import/no-extraneous-dependencies': 0,
'jsx-a11y/control-has-associated-label': 0,
},
},
],
rules: {
'no-else-return': 0,
'import/prefer-default-export': 0,
'no-nested-ternary': 1,
'import/no-unresolved': 0,
'import/extensions': 0,
'import/no-extraneous-dependencies': 0,
'import/no-named-as-default': 0,
'import/no-named-as-default-member': 0,
'no-control-regex': 1,
'prefer-object-spread': 0,
'prefer-template': 0,
'import/no-named-default': 1,
'no-unused-expressions': 0,
'no-underscore-dangle': 0,
'import/order': 0,
'import/first': 1,
'import/no-cycle': 0,
'import/newline-after-import': 0,
'import/no-useless-path-segments': 0,
'no-use-before-define': 0,
'react/display-name': 0,
'no-param-reassign': 0,
'no-unused-vars': 0,
'no-console': 2,
'jsx-a11y/anchor-is-valid': 1,
'react/jsx-props-no-spreading': 0,
'consistent-return': 1,
'no-throw-literal': 1,
'no-restricted-globals': 2,
'no-return-assign': 0,
'no-plusplus': 0,
'arrow-body-style': 0,
'dot-notation': 0,
'max-classes-per-file': 0,
'prefer-const': 1,
camelcase: 1,
},
};