-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy patheslintrc.config.mjs
More file actions
41 lines (37 loc) · 964 Bytes
/
Copy patheslintrc.config.mjs
File metadata and controls
41 lines (37 loc) · 964 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
import eslint from "@eslint/js";
import { defineConfig, globalIgnores } from "eslint/config";
import globals from "globals";
import tseslint from "typescript-eslint";
export default defineConfig(
globalIgnores([".yarn/*"]),
eslint.configs.recommended,
tseslint.configs.recommendedTypeChecked,
{
languageOptions: {
globals: {
...globals.node
},
parserOptions: {
projectService: {
allowDefaultProject: [
"eslint.config.mjs",
"prettier.config.mjs",
"test/jest.config.cjs"
]
},
}
}
},
{
rules: {
"@typescript-eslint/no-unnecessary-type-arguments": "error",
"@typescript-eslint/no-unused-vars": [
"error",
{ varsIgnorePattern: "^_", argsIgnorePattern: "^_" }
],
"linebreak-style": ["error", "unix"],
quotes: ["warn", "double", { avoidEscape: true }],
"no-shadow": "error"
}
}
);