-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
76 lines (70 loc) · 1.87 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
{
"extends": "eslint-config-airbnb",
"env": {
"es6": true,
"node": true,
"browser": true
},
"rules": {
"strict": 0,
"spaced-comment": [2, "always", { "exceptions": ["*"] }],
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"import/no-extraneous-dependencies": ["error", { devDependencies: true }],
"class-methods-use-this": ["error", { "exceptMethods": ["renderNotLogin"] }],
"react/no-danger": 0,
"import/newline-after-import": 0,
"jsx-a11y/no-static-element-interactions": 0,
"no-extra-boolean-cast": 0,
"react/jsx-quotes": 0,
"react/prop-types": 0,
"react/jsx-uses-vars": 2,
"react/jsx-uses-react": 2,
"react/react-in-jsx-scope": 0,
"no-unused-vars": 1,
"prefer-const": 1,
"no-trailing-spaces": 0,
"id-length": 0,
"semi": 0,
"object-shorthand": 0,
"react/jsx-closing-bracket-location": 0,
"guard-for-in": 0,
"no-loop-func": 0,
"no-param-reassign": 0,
"react/jsx-no-bind": 0,
"max-len": 0,
"prefer-template": 0,
"arrow-body-style": 0,
"no-useless-constructor": 0,
"consistent-return": 0,
"no-array-constructor": 0,
"react/prefer-stateless-function": 0,
"global-require": 0,
"no-underscore-dangle": 0,
"no-class-assign": 0,
"new-cap": [
2,
{
// for Immutable
"capIsNewExceptions": [
"Map",
"List"
]
}
],
// Temporarirly disabled due to a possible bug in babel-eslint (todomvc example)
"block-scoped-var": 0,
// Temporarily disabled for test/* until babel/babel-eslint#33 is resolved
"padded-blocks": 0,
// not sure why airbnb turned this on. gross!
"comma-dangle": 0,
"indent": [2, 2, {"SwitchCase": 1}],
"no-console": 0,
"no-alert": 0
},
"plugins": [
"react"
],
"ecmaFeatures": {
"jsx": true
}
}