-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreact.js
50 lines (50 loc) · 924 Bytes
/
react.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
module.exports = {
extends: 'react-app',
plugins: [
'import',
],
rules: {
'comma-dangle': [
'error',
'always-multiline'
],
indent: ['error', 2, {
SwitchCase: 1
}],
'import/order': 'warn',
'no-unused-vars': [
'error',
{
'args': 'after-used',
},
],
'no-redeclare': 'error',
'no-var': 'error',
'prefer-const': 'error',
'prefer-destructuring': [
'error',
{
AssignmentExpression: {
array: false,
object: false,
}
}
],
quotes: [
'error',
'single',
],
'react/jsx-wrap-multilines': 'error',
semi: [
'error',
'never',
],
'keyword-spacing': 'error',
'space-before-function-paren': ['error', 'never'],
'space-unary-ops': ['error', {
words: true,
nonwords: false
}],
'space-infix-ops': 'error',
},
}