-
Notifications
You must be signed in to change notification settings - Fork 5
/
eslint.config.mjs
49 lines (48 loc) · 1.76 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
import esLintJs from "@eslint/js";
import eslintTs from "typescript-eslint";
export default [
esLintJs.configs.recommended,
...eslintTs.configs.strictTypeChecked,
...eslintTs.configs.stylisticTypeChecked,
{
files: ["**/*.ts"],
languageOptions: {
parserOptions: {
projectService: true,
tsconfigRootDir: import.meta.dirname,
},
},
rules: {
"@typescript-eslint/consistent-type-imports": "warn",
"@typescript-eslint/explicit-member-accessibility": "warn",
"@typescript-eslint/no-confusing-void-expression": "off", // Temporary.
"@typescript-eslint/no-floating-promises": "off", // Temporary.
"@typescript-eslint/no-invalid-void-type": "off", // Temporary.
"@typescript-eslint/no-misused-promises": "off", // Temporary.
"@typescript-eslint/no-unnecessary-condition": "off", // Temporary.
"@typescript-eslint/require-await": "off", // Temporary.
"@typescript-eslint/restrict-plus-operands": "off", // Temporary.
"@typescript-eslint/restrict-template-expressions": "off", // Temporary.
eqeqeq: "warn",
"no-duplicate-imports": "warn",
"no-multi-spaces": "warn",
"no-multiple-empty-lines": [
"warn",
{
max: 1,
},
],
"padded-blocks": ["warn", "never"],
quotes: [
"warn",
"double",
{
avoidEscape: true,
},
],
semi: "warn",
"sort-imports": "warn",
"no-useless-assignment": "warn",
},
},
];