-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy path.eslintrc.js
More file actions
64 lines (63 loc) · 2.28 KB
/
Copy path.eslintrc.js
File metadata and controls
64 lines (63 loc) · 2.28 KB
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
/** @type import("eslint").Linter.BaseConfig */
module.exports = {
extends: ["@kachkaev/eslint-config-base"],
rules: {
"@typescript-eslint/no-unused-vars": ["error", { args: "none" }],
"func-style": "error",
"import/no-default-export": "error",
"import/no-unresolved": ["error", { ignore: ["^unist$"] }],
// TODO: Triage (new rules were disabled after updating the collection of ESLint rules)
"@typescript-eslint/naming-convention": "off",
"@typescript-eslint/no-var-requires": "off",
"id-length": "off",
"jest/expect-expect": "off",
"jest/prefer-to-be": "off",
"no-param-reassign": "off",
"unicorn/better-regex": "off",
"unicorn/catch-error-name": "off",
"unicorn/consistent-function-scoping": "off",
"unicorn/error-message": "off",
"unicorn/explicit-length-check": "off",
"unicorn/import-style": "off",
"unicorn/no-array-callback-reference": "off",
"unicorn/no-array-for-each": "off",
"unicorn/text-encoding-identifier-case": "off",
"unicorn/no-array-push-push": "off",
"unicorn/no-for-loop": "off",
"unicorn/no-instanceof-array": "off",
"unicorn/no-lonely-if": "off",
"unicorn/no-negated-condition": "off",
"unicorn/no-null": "off",
"unicorn/no-typeof-undefined": "off",
"unicorn/numeric-separators-style": "off",
"unicorn/prefer-array-flat": "off",
"unicorn/prefer-array-some": "off",
"unicorn/prefer-at": "off",
"unicorn/prefer-date-now": "off",
"unicorn/prefer-includes": "off",
"unicorn/prefer-module": "off",
"unicorn/prefer-node-protocol": "off",
"unicorn/no-useless-undefined": "off",
"unicorn/prefer-number-properties": "off",
"unicorn/no-await-expression-member": "off",
"unicorn/prefer-optional-catch-binding": "off",
"unicorn/prefer-regexp-test": "off",
"unicorn/prefer-string-replace-all": "off",
"unicorn/no-array-reduce": "off",
"unicorn/prefer-string-slice": "off",
"unicorn/no-array-method-this-argument": "off",
"unicorn/prefer-ternary": "off",
"unicorn/prefer-type-error": "off",
"unicorn/switch-case-braces": "off",
},
overrides: [
{
files: "**/*.test.ts",
rules: {
"jest/no-disabled-tests": "off",
"jest/no-export": "off",
"no-restricted-imports": "off",
},
},
],
};