/
.eslintrc.js
46 lines (46 loc) · 1.25 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
module.exports = {
parser: 'babel-eslint',
extends: 'airbnb',
plugins: ['react'],
settings: {
'import/resolver': {
node: {
moduleDirectory: ['node_modules', 'src'],
},
},
},
env: {
browser: true,
// mocha: true,
es6: true,
},
rules: {
'spaced-comment': [0],
'class-methods-use-this': 0,
'jsx-a11y/click-events-have-key-events': 0,
'no-restricted-syntax': 0,
'react/jsx-closing-tag-location': 2,
'arrow-parens': 0,
'react/prefer-stateless-function': 0,
'react/require-default-props': 0,
'jsx-a11y/img-redundant-alt': 0,
'jsx-a11y/interactive-supports-focus': 0,
'jsx-a11y/anchor-is-valid': 0,
'jsx-a11y/mouse-events-have-key-events': 0,
'no-mixed-operators': 0,
'react/prop-types': [1, { ignore: ['children'], customValidators: [] }],
'react/no-array-index-key': 1,
'no-underscore-dangle': 1,
'no-unused-vars': 1,
'space-before-blocks': 1,
'jsx-a11y/no-static-element-interactions': 0,
'no-return-assign': 1,
'object-curly-newline': 0,
'arrow-body-style': 0,
'react/jsx-filename-extension': 0,
'react/sort-comp': 0,
'react/jsx-one-expression-per-line': 2,
'react/forbid-prop-types': 0,
'quotes': [2, 'double'],
},
};