This repository has been archived by the owner on Sep 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
74 lines (74 loc) · 2.32 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
{
"env": {
"commonjs": true,
"es6": true,
"node": true
},
"parserOptions": {
"ecmaVersion": 2020
},
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"extends": [
"plugin:jsonc/auto-config",
"plugin:markdown/recommended",
"plugin:security/recommended",
"plugin:sonarjs/recommended",
"plugin:unicorn/recommended"
],
"rules": {
"arrow-parens": ["error", "as-needed"],
"block-spacing": ["error", "never"],
"brace-style": "off",
"curly": "off",
"complexity": "off",
"eol-last": ["error", "never"],
"eqeqeq": "warn",
"func-call-spacing": ["error", "never"],
"handle-callback-err": "off",
"indent": ["error", "tab", { "SwitchCase": 1, "MemberExpression": "off", "flatTernaryExpressions": true }],
"key-spacing": "off",
"multiline-ternary": "off",
"no-case-declarations": "off",
"no-console": "off",
"no-mixed-spaces-and-tabs": ["error", "smart-tabs"],
"no-multi-spaces": "off",
"no-prototype-builtins": "off",
"no-return-assign": "off",
"no-self-assign": "off",
"no-tabs": "off",
"no-undef": "warn",
"no-unused-expressions": "warn",
"no-unused-vars": "off",
"one-var": "off",
"quote-props": ["error", "as-needed"],
"quotes": ["error", "double", { "allowTemplateLiterals": true }],
"security/detect-non-literal-fs-filename": "off",
"security/detect-non-literal-regexp": "off",
"security/detect-non-literal-require": "off",
"security/detect-object-injection": "off",
"security/detect-unsafe-regex": "off",
"semi-spacing": ["error", { "before": false, "after": true }],
"semi-style": ["error", "last"],
"semi": ["error", "always", { "omitLastInOneLineBlock": true }],
"sonarjs/cognitive-complexity": "off",
"sonarjs/no-duplicate-string": ["error", 5],
"space-before-function-paren": ["off"],
"unicorn/catch-error-name": "off",
"unicorn/filename-case": "off",
"unicorn/no-array-for-each": "off",
"unicorn/no-nested-ternary": "off",
"unicorn/no-null": "off",
"unicorn/no-process-exit": "off",
"unicorn/numeric-separators-style": "off",
"unicorn/prefer-module": "off",
"unicorn/prefer-node-protocol": "off",
"unicorn/prefer-number-properties": "off",
"unicorn/prefer-query-selector": "off",
"unicorn/prevent-abbreviations": "off",
"unicorn/no-static-only-class": "off"
},
"ignorePatterns": ["!.*", "node_modules/*", "*.json"]
}