-
Notifications
You must be signed in to change notification settings - Fork 17
/
.eslintrc.json
64 lines (64 loc) · 1.88 KB
/
.eslintrc.json
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
{
"extends": "airbnb",
"parser": "babel-eslint",
"env": {
"browser": true
},
"rules": {
"arrow-parens": ["error", "always"],
"class-methods-use-this": "off",
"comma-dangle": ["error", "never"],
"consistent-return": "off",
"eqeqeq": "off",
"func-names": ["error", "as-needed"],
"no-multiple-empty-lines": ["error", {
"max": 1,
"maxBOF": 0,
"maxEOF": 1
}],
"no-param-reassign": ["error", {
"props": false
}],
"no-prototype-builtins": "off",
"no-underscore-dangle": "off",
"no-unused-expressions": ["error", {
"allowShortCircuit": true,
"allowTernary": true
}],
"no-unused-vars": ["error", {
"vars": "all",
"args": "after-used",
"ignoreRestSiblings": true
}],
"padded-blocks": ["error", "never"],
"semi": ["error", "never"],
"import/extensions": "off",
"import/imports-first": "off",
"import/no-dynamic-require": "off",
"import/no-extraneous-dependencies": "off",
"import/no-named-as-default": "off",
"import/no-unresolved": "off",
"import/prefer-default-export": "off",
"jsx-quotes": ["error", "prefer-single"],
"no-console": ["error", {
"allow": ["warn", "error"]
}],
"jsx-a11y/no-static-element-interactions": "warn",
"react/forbid-prop-types": "off",
"react/jsx-closing-bracket-location": ["error", {
"nonEmpty": "after-props",
"selfClosing": "after-props"
}],
"react/jsx-filename-extension": "off",
"react/jsx-first-prop-new-line": ["error", "multiline"],
"react/jsx-no-bind": "error",
"react/no-find-dom-node": "off",
"react/no-multi-comp": "off",
"react/no-render-return-value": "warn",
"react/no-unused-prop-types": "off",
"react/prefer-es6-class": "off",
"react/prefer-stateless-function": "off",
"react/prop-types": "warn",
"react/sort-comp": "off"
}
}