-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.json
92 lines (92 loc) · 2.98 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
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
{
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"env": {
"browser": true,
"mocha": true,
"node": true
},
"plugins": [
"react"
],
"extends": [
"eslint:recommended", "plugin:react/recommended"
],
"settings": {
"react": {
"version": "0.13"
}
},
"rules": {
"brace-style": ["error", "1tbs", { "allowSingleLine": false }],
"camelcase": "error",
"comma-spacing": ["error", {"before": false, "after": true}],
"comma-style": "error",
"eol-last": "error",
// "indent": ["error", 2],
"max-len": ["error", 100, 2, {"ignoreUrls": true}],
"no-floating-decimal": "error",
"no-multiple-empty-lines": ["error", {"max": 2}],
"func-call-spacing": "error",
"no-console": "warn",
"no-trailing-spaces": "error",
"no-underscore-dangle": "off",
"no-undefined": "error",
"no-unused-expressions": "off",
"no-use-before-define": ["error", { "functions": false }],
"no-var": "error",
"one-var": ["error", "never"],
"operator-linebreak": ["error", "after"],
"quotes": ["error", "single", "avoid-escape"],
"react/display-name": "off",
"react/jsx-boolean-value": "error",
"react/jsx-no-undef": "error",
"jsx-quotes": ["error", "prefer-single"],
"react/sort-prop-types": ["error", {"ignoreCase": true}],
"react/jsx-sort-props": ["error", {"ignoreCase": true}],
"react/jsx-uses-react": "error",
"react/jsx-uses-vars": "error",
"react/no-did-mount-set-state": "error",
"react/no-did-update-set-state": "error",
"react/no-multi-comp": "off",
"react/no-unknown-property": "error",
"react/prop-types": "error",
"react/react-in-jsx-scope": "error",
"react/self-closing-comp": "error",
"react/jsx-wrap-multilines": "error",
"keyword-spacing": "error",
"space-before-blocks": "error",
"space-before-function-paren": ["error", "never"],
"object-curly-spacing": "error",
"array-bracket-spacing": "error",
"space-in-parens": "error",
"spaced-comment": "warn",
"strict": "warn",
"wrap-regex": "error",
"react/no-find-dom-node": "warn",
"react/no-string-refs": "warn",
"react/self-closing-comp": "warn",
"react/jsx-key": "warn",
"react/jsx-boolean-value": "warn",
"react/prop-types": "warn"
},
"overrides": [
{
// Deployment file seems to follow its own rules
"files": [ "deploy.js" ],
"parserOptions": {
"ecmaVersion": 5,
"sourceType": "script",
"ecmaFeatures": {
"jsx": false,
"globalReturn": true
}
}
}
]
}