-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
67 lines (67 loc) · 2.05 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
{
"parser": "babel-eslint",
"extends": "airbnb/base",
"rules": {
"class-methods-use-this": 0,
"comma-dangle": [1, {
"arrays": "always-multiline",
"exports": "always-multiline",
"functions": "always-multiline",
"imports": "always-multiline",
"objects": "always-multiline"
}],
"function-paren-newline": 0,
"global-require": 0,
"import/extensions": 0,
"import/first": 0,
"import/no-dynamic-require": 0,
"import/no-extraneous-dependencies": 0,
"import/no-named-default": 0,
"import/no-unresolved": 0,
"indent": ["error", 4],
"radix": [1, "as-needed"],
"max-len": [1, 100, 4, { "ignoreUrls": true }],
"no-bitwise": [2, { "allow": ["~"] }],
"no-restricted-properties": [2, {
"object": "arguments",
"property": "callee",
"message": "arguments.callee is deprecated"
}, {
"property": "__defineGetter__",
"message": "Please use Object.defineProperty instead."
}, {
"property": "__defineSetter__",
"message": "Please use Object.defineProperty instead."
}],
"no-restricted-syntax": [2,
"LabeledStatement",
"WithStatement"
],
"no-underscore-dangle": 0,
"no-unused-expressions": 0,
"no-unused-vars": 0,
"object-curly-spacing": [2, "always", { "objectsInObjects": false }],
"quotes": [2, "double", "avoid-escape"],
"space-before-function-paren": [2, "always"]
},
"env": {
"es6": true
},
"overrides": [
{
"files": ["**/__tests__/**/*.js"],
"rules": {
"func-names": 0,
"prefer-arrow-callback": 0
},
"env": {
"mocha": true
},
"globals": {
"expect": false,
"sinon": false,
"test": false
}
}
]
}