forked from ooyala/html5-skin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
63 lines (63 loc) · 1.46 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
{
"extends": "airbnb",
"globals": {
"_": false,
"$": false,
"OO": false,
"document": false,
"window": false,
"screen": false
},
"parser": "babel-eslint",
"plugins": [
"require-jsdoc-except"
],
"rules": {
"space-before-function-paren": ["error", "never"],
"comma-dangle": ["error", "always-multiline"],
"default-case": ["error"],
"id-length": ["error", { "exceptions": ["_", "$"] }],
"max-len": [
"error", 110,
{
"ignoreComments": true,
"ignorePattern": "if \\(\/\\(\\w*|\\)\/",
"ignoreUrls": true,
"ignoreRegExpLiterals": true
}
],
"no-continue": ["warn"],
"no-magic-numbers": ["error", { "ignore": [-360, -1, 0, 1, 2, 10, 100, 360] }],
"no-param-reassign": ["error"],
"no-var": ["error"],
"one-var-declaration-per-line": ["error"],
"require-jsdoc-except/require-jsdoc": [
"error",
{
"require": {
"MethodDefinition": true,
"ClassDeclaration": true,
"FunctionDeclaration": true
},
"ignore": [
"constructor",
"componentWillMount",
"componentDidMount",
"componentWillUnmount",
"componentWillReceiveProps",
"render"
]
}
],
"semi": ["error", "always"],
"valid-jsdoc": [
"error",
{
"prefer": {
"return": "returns"
},
"requireReturn": false
}
]
}
}