-
-
Notifications
You must be signed in to change notification settings - Fork 169
/
eslint.config.mjs
73 lines (70 loc) · 2.13 KB
/
eslint.config.mjs
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
import tsParser from "@typescript-eslint/parser"
import tsPlugin from "@typescript-eslint/eslint-plugin"
/** @type {import('eslint').Linter.Config[]} */
export default [
{
languageOptions: {
parser: tsParser,
globals: {
node: true,
},
},
plugins: {
"@typescript-eslint": tsPlugin,
},
files: ["**/*.ts", "**/*.tsx"],
ignores: ["dist", "node_modules", "coverage", ".next", "build", "examples/vue-ts", "plop-templates", "**/*.d.ts"],
rules: {
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"no-param-reassign": "off",
"prefer-spread": "off",
"no-console": "off",
"prefer-const": "off",
"jsx-a11y/no-autofocus": "off",
"import/named": "off",
"import/prefer-default-export": "off",
"no-underscore-dangle": "off",
"no-shadow": "off",
"no-plusplus": "off",
"spaced-comment": "off",
"guard-for-in": "off",
"operator-assignment": "off",
"prefer-destructuring": "off",
"consistent-return": "off",
"no-restricted-syntax": "off",
"no-continue": "off",
eqeqeq: "off",
"@typescript-eslint/dot-notation": "off",
"no-bitwise": "off",
"no-redeclare": "off",
"@typescript-eslint/naming-convention": "off",
"import/no-extraneous-dependencies": "off",
"@typescript-eslint/lines-between-class-members": "off",
"no-alert": "off",
"@typescript-eslint/no-shadow": "off",
"import/no-named-as-default": "off",
"prefer-object-spread": "off",
"arrow-body-style": "off",
"import/namespace": "off",
"jsx-a11y/label-has-associated-control": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
varsIgnorePattern: "^_",
argsIgnorePattern: "^_",
ignoreRestSiblings: true,
},
],
"default-case": "off",
},
},
{
files: ["*.js", "*.jsx"],
parserOptions: {
project: "tsconfig.eslint.json",
},
},
]