-
-
Notifications
You must be signed in to change notification settings - Fork 43
Expand file tree
/
Copy patheslint.config.ts
More file actions
44 lines (42 loc) · 1018 Bytes
/
eslint.config.ts
File metadata and controls
44 lines (42 loc) · 1018 Bytes
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
import eslintJs from "@eslint/js";
import eslintPrettier from "eslint-config-prettier/flat";
import eslintTs from "typescript-eslint";
export default eslintTs.config(
eslintJs.configs.recommended,
eslintTs.configs.recommendedTypeChecked,
eslintPrettier,
{
languageOptions: {
parser: eslintTs.parser,
ecmaVersion: "latest",
sourceType: "module",
parserOptions: {
projectService: true,
},
},
rules: {
"@typescript-eslint/consistent-type-imports": "error",
"@typescript-eslint/naming-convention": "error",
"@typescript-eslint/no-unused-vars": [
"warn",
{
argsIgnorePattern: "^_",
caughtErrorsIgnorePattern: "^_",
},
],
"no-warning-comments": "warn",
curly: "error",
eqeqeq: [
"error",
"always",
{
null: "never",
},
],
},
},
{
files: ["eslint.config.ts"],
extends: [eslintTs.configs.disableTypeChecked],
},
);