-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy patheslint.config.js
More file actions
64 lines (63 loc) · 2.1 KB
/
eslint.config.js
File metadata and controls
64 lines (63 loc) · 2.1 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
import eslint from "@eslint/js";
import importPlugin from "eslint-plugin-import";
import nPlugin from "eslint-plugin-n";
import unicornPlugin from "eslint-plugin-unicorn";
import tseslint from "typescript-eslint";
import globals from "globals";
export default [
eslint.configs.recommended,
nPlugin.configs["flat/recommended-module"],
unicornPlugin.configs["flat/recommended"],
importPlugin.flatConfigs.recommended,
...tseslint.configs.recommended,
{
ignores: ["coverage/", "libs/", "tool/*.js"],
},
{
languageOptions: {
ecmaVersion: 2020,
globals: globals.node,
},
rules: {
"no-unused-vars": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
argsIgnorePattern: "^_",
varsIgnorePattern: "^_",
},
],
"import/named": "off",
"import/no-duplicates": "off",
"import/no-unresolved": "off",
"n/hashbang": "off",
"n/no-missing-import": "off",
"one-var": ["error", "never"],
"unicorn/catch-error-name": "off",
"unicorn/consistent-function-scoping": "off",
"unicorn/filename-case": "off",
"unicorn/import-style": "off",
"unicorn/new-for-builtins": "off",
"unicorn/no-array-for-each": "off",
"unicorn/no-await-expression-member": "off",
"unicorn/no-negated-condition": "off",
"unicorn/no-negation-in-equality-check": "off",
"unicorn/no-nested-ternary": "off",
"unicorn/no-null": "off",
"unicorn/numeric-separators-style": "off",
"unicorn/prefer-at": "off",
"unicorn/prefer-native-coercion-functions": "off",
"unicorn/prefer-node-protocol": "error",
"unicorn/prefer-string-replace-all": "off",
"unicorn/prefer-string-slice": "off",
"unicorn/prefer-ternary": "off",
"unicorn/prefer-top-level-await": "off",
"unicorn/prevent-abbreviations": "off",
"unicorn/switch-case-braces": "off",
"unicorn/template-indent": "off",
"unicorn/text-encoding-identifier-case": "off",
"unicorn/throw-new-error": "off",
},
},
];