-
-
Notifications
You must be signed in to change notification settings - Fork 19
/
.eslintrc.json
55 lines (55 loc) · 1.53 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
{
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/strict",
"plugin:@typescript-eslint/stylistic",
"plugin:jsdoc/recommended-typescript"
],
"plugins": ["@typescript-eslint", "prefer-arrow", "jsdoc", "unicorn"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2022,
"sourceType": "module"
},
"rules": {
"curly": ["error", "all"],
"max-len": "off",
"indent": "off",
"jsdoc/check-param-names": "error",
"jsdoc/require-description": "warn",
"jsdoc/require-jsdoc": [
"warn",
{
"require": {
"ArrowFunctionExpression": true,
"ClassDeclaration": true,
"ClassExpression": true,
"FunctionDeclaration": true,
"FunctionExpression": true,
"MethodDefinition": true
}
}
],
"jsdoc/require-param-type": "off",
"jsdoc/require-returns": "error",
"jsdoc/require-returns-type": "off",
"jsdoc/no-undefined-types": "error",
"jsdoc/require-yields": "error",
"no-else-return": "error",
"no-unused-vars": "off",
"prefer-arrow/prefer-arrow-functions": "error",
"quotes": "off",
"quote-props": ["error", "as-needed"],
"require-jsdoc": "off",
"space-before-function-paren": "off",
"unicorn/prefer-node-protocol": "error",
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-empty-function": "off"
},
"env": {
"es6": true,
"mocha": true,
"node": true
}
}