-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
72 lines (67 loc) · 1.83 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
module.exports = {
env: {
browser: true,
es2020: true,
node: true,
jest: true,
},
extends: [
'plugin:react/recommended',
'airbnb',
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 11,
sourceType: 'module',
},
plugins: [
'react',
'@typescript-eslint',
],
rules: {
indent: ['error', 4, {
'SwitchCase': 1,
}],
'max-len': ['error', 120],
'padded-blocks': 'off',
'object-curly-newline': ['error', {
'ImportDeclaration': 'never',
}],
'linebreak-style': 'off',
'no-unused-vars': 'off',
'no-restricted-syntax': 'off',
'no-use-before-define': 'off',
'no-plusplus': ['error', {
allowForLoopAfterthoughts: true,
}],
'no-underscore-dangle': 'off',
'no-continue': 'off',
'react/destructuring-assignment': 0,
'react/jsx-indent-props': ['error', 4],
'react/jsx-indent': ['error', 4],
'react/static-property-placement': ['error', 'static public field'],
'react/jsx-filename-extension': ['error', {
extensions: ['.jsx', '.tsx'],
}],
'react/prop-types': 'off',
'import/extensions': 0,
'import/no-unresolved': 0,
'import/prefer-default-export': 0,
'@typescript-eslint/no-unused-vars': 'error',
'jsx-a11y/anchor-is-valid': 'off',
'jsx-a11y/no-noninteractive-element-interactions': 'off',
'jsx-a11y/label-has-associated-control': ['error', {
assert: 'htmlFor',
}],
},
settings: {
'import/resolver': {
node: {
paths: ['src'],
},
},
},
};