-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
49 lines (46 loc) · 1.31 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 = {
extends: 'airbnb',
parser: 'babel-eslint',
env: {
browser: true
},
rules: {
'arrow-parens': ['error', 'as-needed'],
'comma-dangle': ['error', 'never'],
'object-curly-spacing': ['error', 'never'],
'no-console': 'off',
'global-require': 'off',
'import/no-dynamic-require': 'off',
'import/prefer-default-export': 'off',
'import/no-extraneous-dependencies': 'off',
'react/no-multi-comp': 'off',
'react/sort-comp': ['error', {
order: [
'static-variables',
'static-methods',
'instance-variables',
'lifecycle',
'everything-else',
'render'
],
}],
'react/jsx-filename-extension': ['error', {extensions: ['.js']}],
'react/jsx-closing-bracket-location': ['error', {
nonEmpty: 'after-props',
selfClosing: 'after-props'
}],
'jsx-a11y/label-has-for': 'off',
'jsx-a11y/label-has-associated-control': 'off',
'max-classes-per-file': 'off',
'react/static-property-placement': 'off',
'react/jsx-props-no-spreading': 'off',
'object-curly-newline': ['error', {
multiline: true,
consistent: true,
minProperties: 0
}],
'react/state-in-constructor': 'off',
'react/jsx-one-expression-per-line': 'off',
'react/no-array-index-key': 'off'
}
};