-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.json
79 lines (79 loc) · 1.82 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
{
"root": true,
"parser": "babel-eslint",
"extends": "eslint:recommended",
"plugins": [
"react"
],
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"env": {
"browser": true,
"node": true,
"commonjs": true,
"amd": true,
"worker": true,
"jquery": true,
"es6": true
},
"settings": {
"import/resolver": {
"webpack": {
"config-index": 1
}
}
},
"globals": {
"Windows": false,
"Zepto": false,
"CurrentDate": false,
"VirtualPath": false,
"delCookie": false,
"getCookie": false,
"setCookie": false,
"_": false,
"grunt": false,
"React": false,
"__webpack_public_path__": false
},
"rules": {
"new-cap": [1, { "capIsNewExceptions": [
"Immutable",
"Immutable.List",
"Immutable.Set",
"Immutable.Map",
"Immutable.OrderedMap",
"$.Deferred",
"ActiveXObject",
"GetThumbHtml"
] }],
"camelcase": 1,
"max-len": [1, 120],
"strict": 0,
"consistent-return": 0,
"quote-props": 0,
"no-underscore-dangle": 0,
"func-names": 0,
"quotes": [1, "single", "avoid-escape"],
"comma-dangle": [0, "always-multiline"],
"no-param-reassign": [0, { "props": false }],
"no-use-before-define": [2, { "functions": false, "classes": true }],
"no-unused-vars": [1, { "vars": "all", "args": "none" }],
"one-var-declaration-per-line": [1, "initializations"],
"one-var": [2, { "initialized": "never" }],
"no-empty": [2, { "allowEmptyCatch": true }],
"no-native-reassign": [1, { "exceptions": [ "__webpack_public_path__" ]}],
"global-require": 0,
"dot-notation": 1,
"vars-on-top": 1,
"eqeqeq": 1,
"no-alert": 0,
"prefer-template": 0,
"react/prefer-es6-class": 0
}
}