-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
57 lines (57 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
51
52
53
54
55
56
57
{
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:jsdoc/recommended"
],
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "eslint-plugin-jsdoc"],
"root": true,
"rules": {
"jsdoc/require-param-type": "off",
"jsdoc/require-returns-type": "off",
"jsdoc/require-hyphen-before-param-description": "warn",
"jsdoc/require-jsdoc": [
"warn",
{
"require": {
"ArrowFunctionExpression": true,
"ClassDeclaration": true,
"ClassExpression": true,
"FunctionDeclaration": true,
"FunctionExpression": true
},
"contexts": [
"ExportNamedDeclaration",
"PropertyDefinition",
"MethodDefinition:not([accessibility=\"private\"]) > FunctionExpression",
"TSTypeAliasDeclaration",
"TSEnumDeclaration",
"TSInterfaceDeclaration",
"TSMethodSignature",
"TSPropertySignature"
]
}
],
"jsdoc/check-line-alignment": [
"warn",
"always",
{ "tags": ["param", "returns"] }
],
"jsdoc/tag-lines": 0,
"@typescript-eslint/no-unused-vars": [
"warn",
{
"argsIgnorePattern": "^_"
}
]
},
"overrides": [
{
"files": ["*.spec.*"],
"rules": {
"jsdoc/require-jsdoc": "off"
}
}
]
}