-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
80 lines (80 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
module.exports = {
"parser": "babel-eslint",
"rules": {
"strict": 0
},
"env": {
"browser": true
},
"extends": "react-app",
"parserOptions": {
"sourceType": "module"
},
"plugins": [
"react"
],
"rules": {
"comma-dangle": [
"warn",
"never"
],
"dot-notation": 0,
"func-names": 0,
"global-require": 0,
"import/no-dynamic-require": 0,
"import/no-unresolved": 0,
"indent": [2, "tab", { "SwitchCase": 1, "VariableDeclarator": 1 }],
"jsx-a11y/anchor-has-content": 0,
"jsx-a11y/href-no-hash": 0,
"jsx-a11y/no-static-element-interactions": 0,
"jsx-quotes": ["error", "prefer-single"],
"linebreak-style": [
"warn",
"unix"
],
"max-len": 0,
"newline-after-var": ["warn", "always"],
"newline-before-return": ["warn"],
"no-alert": 0,
"no-console": 0,
"no-else-return": 0,
"no-inline-comments": 0,
"no-mixed-operators": 0,
"no-multiple-empty-lines": [ 2, { "max": 1, "maxEOF": 0, "maxBOF": 0 } ],
"no-plusplus": 0,
"no-prototype-builtins": 0,
"no-tabs": 0,
"no-underscore-dangle": 0,
"no-var": 0,
"object-shorthand": 0,
"one-var": ["error", { "var": "always" }],
"padded-blocks": 0,
"prefer-arrow-callback": 0,
"prefer-template": 0,
"quotes": [
"error",
"single"
],
"react/forbid-prop-types": 0,
"react/no-array-index-key": 0,
"react/no-danger": 0,
"react/no-did-mount-set-state": 0,
"react/prefer-stateless-function": 0,
"react/require-default-props": 0,
"react/jsx-filename-extension": 0,
"react/jsx-indent": [2, 'tab'],
"react/jsx-indent-props": [2, 'tab'],
"react/jsx-no-bind": 0,
"react/no-find-dom-node": 0,
"react/no-string-refs": 0,
"semi": [
"error",
"always"
],
/* Advanced Rules*/
"no-unused-expressions": "warn",
"no-useless-concat": "warn",
"block-scoped-var": "error",
"consistent-return": "error"
}
};