-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.json
50 lines (50 loc) · 1.38 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
{
"extends": ["airbnb-base", "plugin:jsdoc/recommended"],
"plugins": ["jsdoc"],
"rules": {
"no-plusplus": "off",
"no-cond-assign": ["error", "except-parens"],
"no-unused-expressions": ["error", { "allowShortCircuit": true }],
"jsdoc/require-jsdoc": ["warn", {
"publicOnly": true
}],
"jsdoc/no-undefined-types": ["warn", {
"definedTypes": [
"UnionReplacer",
"UnionReplacer.ReplacementBuilder",
"RegExpExecArray",
"true",
"false",
"T"
]
}],
"jsdoc/check-tag-names": ["warn", {
"definedTags": ["template"]
}],
"jsdoc/check-examples": 1,
"jsdoc/check-syntax": 1,
"jsdoc/match-description": 1,
"jsdoc/require-description": ["warn", {
"exemptedBy": ["inheritdoc", "private", "deprecated", "hideconstructor"]
}],
"jsdoc/require-description-complete-sentence": 1,
"jsdoc/require-param": ["warn", {
"exemptedBy": ["inheritdoc", "hideconstructor"]
}],
"jsdoc/require-example": ["warn", {
"contexts" : [
"ClassDeclaration[id.name='UnionReplacer'] > ClassBody > MethodDefinition"
],
"exemptedBy": ["inheritdoc", "private", "deprecated"]
}],
"jsdoc/require-hyphen-before-param-description": 1
},
"settings": {
"jsdoc": {
"mode": "jsdoc",
"tagNamePreference": {
"function": "method"
}
}
}
}