-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
60 lines (60 loc) · 2 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
module.exports = {
plugins: ["jsdoc"],
extends: ["@lusito/eslint-config", "plugin:jest/recommended", "plugin:jsdoc/recommended"],
rules: {
"import/no-unresolved": ["error", { ignore: ["typed-ecstasy"] }],
"no-bitwise": "off",
"jest/no-conditional-expect": "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,
},
},
overrides: [
{
files: ["sample/**/*.ts"],
rules: {
"jsdoc/require-jsdoc": "off",
},
},
{
files: ["*.spec.ts", "src/testUtils.ts"],
rules: {
"max-classes-per-file": "off",
},
},
],
env: {
"jest/globals": true,
},
};