-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
51 lines (51 loc) · 1.32 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
{
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"settings": {
"react": {
"pragma": "React"
}
},
"plugins": [
"react"
],
"extends": ["eslint:recommended", "plugin:react/recommended"],
"globals": {
"before": true,
"after": true,
},
"env": {
"browser": true,
"node": true,
"mocha": true,
"es6": true
},
"rules": {
"semi": "error",
"quotes": ["error", "single", {"avoidEscape": true, "allowTemplateLiterals": true}],
"indent": ["error", 2],
"no-useless-constructor": "error",
"jsx-quotes": "error",
"prefer-const": "error",
"no-var": "error",
"react/prefer-es6-class": "error",
"react/jsx-indent": [2, 2],
"react/jsx-indent-props": [2, 2],
"react/jsx-max-props-per-line": [1, { "when": "multiline" }],
"react/prefer-stateless-function": "error",
"react/jsx-filename-extension": ["warn", { "extensions": [".spec.js", ".jsx"] }],
"react/jsx-pascal-case": "error",
"react/jsx-closing-bracket-location": "error",
"react/no-string-refs": "error",
"react/jsx-wrap-multilines": "error",
"react/self-closing-comp": "error",
"react/jsx-no-bind": "error",
"react/jsx-space-before-closing": [2, "always"],
"react/jsx-curly-spacing": "error",
}
}