This repository has been archived by the owner on Apr 6, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 28
/
.eslintrc
120 lines (119 loc) · 3.77 KB
/
.eslintrc
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
{
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"settings": {
"react": {
"pragma": "React",
"version": "15.4.1"
}
},
"env": {
"browser": true,
"node": true
},
"plugins": [
"react"
],
"rules": {
"arrow-parens" : ["warn", "always"],
"arrow-spacing": ["warn", {
"before": true,
"after": true
}],
"strict": 1,
"no-unused-vars": 1,
"curly": 1,
"key-spacing": ["warn", {
"multiLine": {
"beforeColon" : true,
"afterColon" : true
},
"singleLine": {
"beforeColon" : true,
"afterColon" : true
},
"align": {
"beforeColon" : true,
"afterColon" : true,
"on" : "colon",
"mode" : "minimum"
}
}],
"no-multi-spaces": ["off", {
"exceptions": {
"Property": true
}
}],
"no-return-assign": 1,
"no-use-before-define": 1,
"react/display-name": ["warn", {
"ignoreTranspilerName": true
}],
"react/forbid-component-props": ["warn", {
"forbid" : ["style"]
}],
"react/no-danger" : "warn",
"react/no-danger-with-children" : "warn",
"react/no-deprecated" : "warn",
"react/no-did-mount-set-state" : ["error", "disallow-in-func"],
"react/no-did-update-set-state" : ["error", "disallow-in-func"],
"react/no-direct-mutation-state" : "error",
"react/no-find-dom-node" : "warn",
"react/no-is-mounted" : "error",
"react/no-multi-comp" : "error",
"react/no-render-return-value" : "warn",
"react/no-string-refs" : "warn",
"react/no-unescaped-entities" : "warn",
"react/no-unknown-property" : "error",
"react/no-unused-prop-types" : "warn",
"react/prefer-es6-class" : ["warn", "always"],
"react/prefer-stateless-function" : ["off", {
"ignorePureComponents": true
}],
"react/prop-types" : "warn",
"react/require-default-props" : "off",
"react/require-render-return" : "error",
"react/self-closing-comp" : ["error", {
"component": true,
"html": true
}],
"react/style-prop-object" : "error",
"react/jsx-boolean-value" : "warn",
"react/jsx-curly-spacing" : ["error", "never", {
"allowMultiline": false
}],
"react/jsx-equals-spacing" : ["error", "never"],
"react/jsx-filename-extension" : ["error", {
"extensions": [".js"]
}],
"react/jsx-first-prop-new-line" : ["warn", "never"],
"react/jsx-indent" : ["warn", 4],
"react/jsx-key" : "off",
"react/jsx-max-props-per-line" : ["off", {
"maximum" : 3
}],
"react/jsx-no-bind" : ["error", {
"ignoreRefs" : true
}],
"react/jsx-no-comment-textnodes" : "error",
"react/jsx-no-duplicate-props" : "error",
"react/jsx-no-target-blank" : "warn",
"react/jsx-no-undef" : "error",
"react/jsx-pascal-case" : "warn",
"react/jsx-space-before-closing" : ["warn", "always"],
"react/jsx-tag-spacing" : ["error", {
"closingSlash" : "never",
"beforeSelfClosing" : "always",
"afterOpening" : "never"
}],
"react/jsx-uses-react" : "warn",
"react/jsx-uses-vars" : "warn",
"react/jsx-wrap-multilines" : "warn"
}
}