-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.js
76 lines (75 loc) · 2.26 KB
/
eslint.config.js
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
75
76
import ts from "@typescript-eslint/eslint-plugin";
import tsParser from "@typescript-eslint/parser";
import eslintConfigPrettier from "eslint-config-prettier";
import functional from "eslint-plugin-functional";
import imprt from "eslint-plugin-import";
export default [
eslintConfigPrettier,
{
files: ["src/**/*.{ts,js,tsx,jsx}"],
plugins: {
functional,
"import": imprt,
"@typescript-eslint": ts,
ts,
},
languageOptions: {
parser: tsParser,
parserOptions: {
ecmaFeatures: { modules: true },
ecmaVersion: "latest",
project: "./tsconfig.json",
},
},
rules: {
...ts.configs["eslint-recommended"].rules,
...ts.configs["recommended"].rules,
"ts/return-await": "off",
"eol-last": "off",
"quotes": "off",
"semi": ["warn", "never"],
"@stylistic/js/no-tabs": "off",
"@stylistic/ts/indent": "off",
"no-constant-binary-expression": "warn",
"no-undef": "off",
"no-console": "off",
"no-debugger": "warn",
"no-sequences": "off",
"no-import-assign": "off",
"no-extend-native": "off",
"no-trailing-spaces": "warn",
"no-case-declarations": "off",
"no-prototype-builtins": "off",
"no-unused-expressions": "off",
"space-before-function-paren": "off",
"antfu/if-newline": "off",
"antfu/top-level-function": "off",
"@stylistic/js/operator-linebreak": "off",
"@stylistic/ts/brace-style": "off",
"@stylistic/js/multiline-ternary": "off",
"n/prefer-global/process": "off",
"@stylistic/js/no-mixed-spaces-and-tabs": "off",
"no-unused-vars": "off",
"unused-imports/no-unused-vars": "off",
"@typescript-eslint/require-await": "off",
"@typescript-eslint/no-unsafe-call": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-invalid-this": "off",
"@typescript-eslint/no-unsafe-return": "off",
"@typescript-eslint/no-unsafe-argument": "off",
"@typescript-eslint/no-misused-promises": "off",
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
"object-curly-newline": [
"warn",
{
consistent: true,
multiline: true,
},
],
"object-curly-spacing": ["warn", "always"],
"array-element-newline": ["warn", "consistent"],
"array-bracket-newline": ["warn", "consistent"],
},
},
];