-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy path.eslintrc.js
59 lines (59 loc) · 1.84 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
module.exports = {
"env": {
"browser": true,
"es6": true
},
"parser": "babel-eslint",
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"airbnb"
],
"parserOptions": {
"ecmaFeatures": {
"jsx": true,
"experimentalObjectRestSpread": true,
"experimentalDecorators": true
},
"ecmaVersion": 7,
"sourceType": "module"
},
"plugins": [
"react"
],
"globals": {
WRAPPER_CLASS_NAME: true
},
"rules": {
indent: ["error", 4],
'react/jsx-indent': ["error", 4],
"react/jsx-indent-props": ["error", 4],
'linebreak-style': 'off',
'comma-dangle': ['error', 'never'],
"class-methods-use-this": "off",
"import/no-extraneous-dependencies": "off",
"import/no-unresolved": "off",
"import/extensions": "off",
"no-param-reassign": "off",
"jsx-a11y/anchor-is-valid": "off",
"react/jsx-props-no-spreading": "off",
"react/self-closing-comp": "off",
"react/prefer-stateless-function": "off",
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/no-static-element-interactions": "off",
"react/no-did-mount-set-state": "off",
"react/forbid-prop-types": "off",
"react/destructuring-assignment": "off",
"max-classes-per-file": "off",
"jsx-a11y/no-noninteractive-element-interactions": "off",
"import/prefer-default-export": "off",
"max-len": "off",
"react/jsx-filename-extension": "off",
"react/prop-types": "off",
"react/sort-comp": "off",
"react/jsx-closing-tag-location": "off",
"react/no-unescaped-entities": "off",
"react/no-array-index-key": "off",
"react/jsx-no-bind": "off"
},
};