-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
executable file
·41 lines (41 loc) · 1.5 KB
/
.eslintrc.js
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
module.exports = {
plugins: ["jsdoc"],
extends: ["@lusito/eslint-config", "plugin:jsdoc/recommended"],
rules: {
"no-bitwise": "off",
"lines-between-class-members": ["error", "always", { exceptAfterSingleLine: true }],
"@typescript-eslint/explicit-member-accessibility": ["error"],
"jsdoc/require-param-type": "off",
"jsdoc/require-returns-type": "off",
"jsdoc/no-types": "warn",
"jsdoc/require-asterisk-prefix": "warn",
"jsdoc/require-throws": "warn",
"jsdoc/require-jsdoc": [
"warn",
{
publicOnly: {
ancestorsOnly: true,
esm: true,
cjs: true,
window: false,
},
require: {
ArrowFunctionExpression: true,
ClassDeclaration: true,
ClassExpression: true,
FunctionDeclaration: true,
FunctionExpression: true,
MethodDefinition: false,
},
contexts: ['MethodDefinition:not([accessibility="private"]):not([override=true]) > FunctionExpression'],
},
],
"jsdoc/check-tag-names": ["warn", { definedTags: ["internal"] }],
"jsdoc/require-description-complete-sentence": ["warn", { tags: ["template"], abbreviations: ["i.e."] }],
},
settings: {
jsdoc: {
ignorePrivate: true,
},
},
};