-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
85 lines (84 loc) · 2.68 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
{
"extends": [
"airbnb-base",
"plugin:jest/recommended",
"plugin:jsdoc/recommended",
],
"plugins": ["jsdoc", "disable"],
"env": {
"browser": false,
"node": true,
"jest": true,
},
"rules": {
"max-len": ["error", 150, 2, {
"ignoreUrls": true,
"ignoreComments": false,
"ignoreStrings": true,
"ignoreTemplateLiterals": true,
}],
"no-param-reassign": ["error", { "props": true }],
"no-use-before-define": ["error", { "functions": false, "classes": false }],
"jest/consistent-test-it": ["error", { "fn": "test" }],
"arrow-body-style": "off",
"jest/valid-expect": "off",
"no-plusplus": "off",
"consistent-return": "off",
"jsdoc/check-access": "warn",
"jsdoc/check-alignment": "warn",
"jsdoc/check-examples": "warn",
"jsdoc/check-indentation": "warn",
"jsdoc/check-line-alignment": "warn",
"jsdoc/check-param-names": "warn",
"jsdoc/check-property-names": "warn",
"jsdoc/check-syntax": "error",
"jsdoc/check-tag-names": "warn",
"jsdoc/check-types": "warn",
"jsdoc/check-values": "warn",
"jsdoc/empty-tags": "warn",
"jsdoc/implements-on-classes": "warn",
"jsdoc/match-description": "warn",
"jsdoc/newline-after-description": "warn",
"jsdoc/no-bad-blocks": "warn",
"jsdoc/no-defaults": "off",
"jsdoc/no-types": "off",
"jsdoc/no-undefined-types": "warn",
"jsdoc/require-description": "warn",
"jsdoc/require-description-complete-sentence": "warn",
"jsdoc/require-example": ["warn", {
"contexts": [
"ClassDeclaration:not([accessibility=\"private\"])",
],
}],
"jsdoc/require-file-overview": "off",
"jsdoc/require-hyphen-before-param-description": "off",
"jsdoc/require-jsdoc": ["warn", {
"publicOnly": true,
require: {
ClassDeclaration: true,
ClassExpression: true,
FunctionDeclaration: true,
FunctionExpression: true,
ArrowFunctionExpression: true,
MethodDefinition: true,
},
"enableFixer": true,
}],
"jsdoc/require-param": "warn",
"jsdoc/require-param-description": "warn",
"jsdoc/require-param-name": "warn",
"jsdoc/require-param-type": "warn",
"jsdoc/require-property": "warn",
"jsdoc/require-property-description": "warn",
"jsdoc/require-property-name": "warn",
"jsdoc/require-property-type": "warn",
"jsdoc/require-returns": "warn",
"jsdoc/require-returns-check": "warn",
"jsdoc/require-returns-description": "warn",
"jsdoc/require-returns-type": "warn",
"jsdoc/require-throws": "warn",
"jsdoc/require-yields": "warn",
"jsdoc/require-yields-check": "warn",
"jsdoc/valid-types": "warn",
},
}