-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.eslintrc.js
56 lines (55 loc) · 1.51 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
module.exports = {
root: true,
env: {
node: true,
},
extends: [
"plugin:vue/vue3-essential",
"eslint:recommended",
"@vue/typescript/recommended",
"plugin:jsdoc/recommended",
"plugin:regexp/recommended",
"plugin:promise/recommended",
"plugin:sonarjs/recommended",
"plugin:vue/essential"
],
plugins: [
"jsdoc",
// "write-good-comments",
"regexp",
"promise",
"sonarjs",
],
parserOptions: {
ecmaVersion: 2020,
},
rules: {
"no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
"@typescript-eslint/no-explicit-any": "off",
// "write-good-comments/write-good-comments": "warn",
"sonarjs/no-redundant-jump": "off",
"sonarjs/no-duplicate-string": "off",
"sonarjs/cognitive-complexity": "off",
"jsdoc/require-jsdoc": [
1,
{
require: {
FunctionExpression: true,
ClassDeclaration: true,
ClassExpression: true,
MethodDefinition: true,
},
},
],
"jsdoc/check-tag-names": "off",
},
ignorePatterns: [
"**/node_modules/*",
"**/dist/*",
"**/public/*",
"**/docker_compiling/*",
"**/docs/*",
"**/wasm-compile/*",
],
};