-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
135 lines (135 loc) · 2.59 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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
{
"extends": "eslint-config-airbnb",
"env": {
"es6": true,
"browser": true
},
"rules": {
"complexity": [1, 4],
"no-unused-vars": 1,
"no-case-declarations": 0,
"no-param-reassign": ["error", { "props": false }],
"comma-dangle": [2, "never"],
"arrow-parens": ["error", "as-needed"],
"semi": [
"error",
"never"
],
"no-underscore-dangle": [
2,
{
"allowAfterThis": false,
"allow": [
"_exception",
"__html",
"__data",
"__DEVELOPMENT__",
"__CLIENT__",
"__SERVER__",
"__DISABLE_SSR__",
"__DEVTOOLS__"
]
}
],
"max-len": [
2,
250
],
"react/prefer-stateless-function": 0,
"react/no-multi-comp": 0,
"react/display-name": [
0,
{
"ignoreTranspilerName": false
}
],
"react/forbid-prop-types": 0,
"react/jsx-no-bind": [1, {
"ignoreRefs": true,
"allowArrowFunctions": false,
"allowBind": false
}],
"react/jsx-no-duplicate-props": 2,
"react/no-string-refs": 2,
"react/prefer-es6-class": [
2,
"always"
],
"react/jsx-pascal-case": 2,
"react/jsx-handler-names": [
2,
{
"eventHandlerPrefix": "handle",
"eventHandlerPropPrefix": "on"
}
],
"jsx-quotes": [
2,
"prefer-single"
],
"import/no-unresolved": [
1,
{
"commonjs": true,
"amd": false
}
],
"import/no-extraneous-dependencies": 1,
"import/no-duplicates": 2,
"import/no-named-as-default": 2,
"import/named": 2,
"import/namespace": 2,
"import/default": 2,
"import/export": 2,
"import/imports-first": 2,
"indent": [
2,
2,
{
"SwitchCase": 1
}
],
"react/sort-comp": 0,
"no-console": 1,
"no-alert": 0,
"no-debugger": 0
},
"plugins": [
"react",
"import"
],
"parser": "babel-eslint",
"settings": {
"import/resolver": {
"webpack": {
"config": "./webpack/dev.config.js"
}
},
"import/extensions": [
".js",
".jsx"
],
"import/ignore": [
"node_modules",
".json$",
".less$",
".styl$",
".scss$"
]
},
"globals": {
"__DEVELOPMENT__": true,
"__CLIENT__": true,
"__SERVER__": true,
"__DISABLE_SSR__": true,
"__DEVTOOLS__": true,
"window": true,
"socket": true,
"webpackIsomorphicTools": true,
"describe": true,
"it": true,
"test": true,
"sinon": true,
"expect": true
}
}