-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.cjs
39 lines (39 loc) · 1.01 KB
/
.eslintrc.cjs
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
module.exports = {
root: true,
extends: ["@antfu", "plugin:prettier/recommended"],
rules: {
"jsonc/indent": ["error", "tab"],
"@typescript-eslint/consistent-type-imports": [
"error",
{
prefer: "type-imports",
fixStyle: "inline-type-imports",
disallowTypeAnnotations: false,
},
],
"@typescript-eslint/consistent-type-definitions": "off",
"@typescript-eslint/explicit-module-boundary-types": "error",
"@typescript-eslint/no-explicit-any": "error",
"@typescript-eslint/no-non-null-assertion": "error",
"@typescript-eslint/no-unused-vars": [
"error",
{ argsIgnorePattern: "^_", varsIgnorePattern: "^_" },
],
"antfu/top-level-function": "off",
"n/prefer-global/process": "off",
"no-cond-assign": ["error", "except-parens"],
"no-fallthrough": "off",
"padding-line-between-statements": [
"error",
{ blankLine: "always", prev: "*", next: "return" },
],
},
overrides: [
{
files: "*.cjs",
rules: {
"@typescript-eslint/no-var-requires": "off",
},
},
],
};