-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
151 lines (151 loc) · 3.76 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
module.exports = {
extends: [
'react-app',
],
env: {
'es6': true,
'node': true,
},
plugins: [
'react',
],
parser: '@babel/eslint-parser',
parserOptions: {
ecmaFeatures: {
'jsx': true,
'arrowFunctions': true,
},
},
rules: {
'for-direction': 1,
'getter-return': 1,
'no-async-promise-executor': 1,
'no-compare-neg-zero': 1,
'no-cond-assign': 0,
'no-constant-condition': 1,
'no-control-regex': 1,
'no-debugger': 1,
'no-dupe-args': 1,
'no-dupe-keys': 1,
'no-duplicate-case': 1,
'no-empty': 1,
'no-empty-character-class': 1,
'no-ex-assign': 1,
'no-extra-boolean-cast': 1,
'no-extra-semi': 1,
'no-func-assign': 1,
'no-inner-declarations': 1,
'no-invalid-regexp': 1,
'no-irregular-whitespace': 1,
'no-obj-calls': 1,
'no-prototype-builtins': 0,
'no-regex-spaces': 1,
'no-sparse-arrays': 1,
'no-unexpected-multiline': 1,
'no-unreachable': 1,
'no-unsafe-finally': 1,
'no-unsafe-negation': 1,
'use-isnan': 1,
'valid-jsdoc': [1, {
requireParamDescription: false,
requireReturnDescription: false,
requireReturn: false,
prefer: {returns: 'return'},
}],
'valid-typeof': 1,
'guard-for-in': 1,
'no-caller': 1,
'no-case-declarations': 1,
'no-empty-pattern': 1,
'no-extend-native': 1,
'no-extra-bind': 1,
'no-fallthrough': 1,
'no-global-assign': 1,
'no-invalid-this': 1,
'no-multi-spaces': 1,
'no-multi-str': 1,
'no-new-wrappers': 1,
'no-octal': 1,
'no-redeclare': 1,
'no-self-assign': 1,
'no-throw-literal': 1,
'no-unused-labels': 1,
'no-with': 1,
'prefer-promise-reject-errors': 1,
'no-delete-var': 1,
'no-shadow-restricted-names': 0,
'no-undef': 2,
'no-unused-vars': [1, {args: 'none'}],
'array-bracket-newline': 0,
'array-bracket-spacing': [1, 'never'],
'array-element-newline': 0,
'block-spacing': [1, 'never'],
'brace-style': 1,
'camelcase': [1, {properties: 'never'}],
'comma-spacing': 1,
'comma-style': 1,
'computed-property-spacing': 1,
'eol-last': 1,
'func-call-spacing': 1,
'key-spacing': 1,
'keyword-spacing': 1,
'linebreak-style': 1,
'max-len': [1, {
code: 80,
tabWidth: 2,
ignoreUrls: true,
}],
'new-cap': 1,
'no-array-constructor': 1,
'no-mixed-spaces-and-tabs': 1,
'no-multiple-empty-lines': [1, {max: 2}],
'no-new-object': 1,
'no-tabs': 1,
'no-trailing-spaces': 1,
'object-curly-spacing': 1,
'one-var': [1, {
var: 'never',
let: 'never',
const: 'never',
}],
'operator-linebreak': [1, 'after'],
'padded-blocks': [1, 'never'],
'quote-props': [1, 'consistent'],
'quotes': [1, 'single', {allowTemplateLiterals: true}],
'require-jsdoc': [1, {
require: {
FunctionDeclaration: true,
MethodDefinition: true,
ClassDeclaration: true,
},
}],
'semi': 2,
'semi-spacing': 1,
'space-before-blocks': 1,
'space-before-function-paren': [1, {
asyncArrow: 'always',
anonymous: 'never',
named: 'never',
}],
'spaced-comment': [1, 'always'],
'switch-colon-spacing': 1,
'arrow-parens': [1, 'always'],
'constructor-super': 1,
'generator-star-spacing': [1, 'after'],
'no-class-assign': 1,
'no-const-assign': 1,
'no-dupe-class-members': 1,
'no-new-symbol': 1,
'no-this-before-super': 1,
'no-var': 1,
'prefer-const': [1, {destructuring: 'all'}],
'prefer-rest-params': 1,
'prefer-spread': 1,
'require-yield': 1,
'rest-spread-spacing': 1,
'yield-star-spacing': [1, 'after'],
'no-misleading-character-class': 1,
'no-useless-catch': 1,
'no-useless-escape': 1,
},
};