forked from Modernizr/Modernizr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
58 lines (58 loc) · 1.47 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
{
"env": {
"browser": true,
"node": true,
"mocha": true,
"es6": true,
"amd": true
},
"globals": {
"DocumentTouch": true,
"Modernizr": true,
"requirejs": true,
"expect": true,
"$": true,
"_": true
},
"plugins": [
"jsdoc"
],
"rules": {
"comma-dangle": "error",
"comma-style": ["error", "last"],
"curly": "error",
"indent": ["error", 2, { "SwitchCase": 1 }],
"no-caller": "error",
"no-cond-assign": ["error", "except-parens"],
"no-eq-null": "error",
"no-eval": "error",
"no-multi-spaces": ["error", { "ignoreEOLComments": true }],
"no-multiple-empty-lines": ["error", { "max": 1, "maxEOF": 1 }],
"no-undef": "error",
"no-unused-expressions": "error",
"no-unused-vars": "error",
"quotes": ["error", "single"],
"semi": "error",
"valid-jsdoc": "error",
"jsdoc/check-tag-names": 1,
"jsdoc/check-types": 1,
"jsdoc/newline-after-description": 1,
"jsdoc/require-hyphen-before-param-description": 1,
"jsdoc/require-param": 1,
"jsdoc/require-param-type": 1,
"jsdoc/require-returns-type": 1,
"no-restricted-syntax": [2,
{
"selector": "CallExpression[callee.name='getComputedStyle']",
"message": "Do not use `getComputedStyle`, import and use the `computedStyle` helper"
}
]
},
"settings": {
"jsdoc": {
"additionalTagNames": {
"customTags": ["memberOf", "optionName", "optionProp"]
}
}
}
}