-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.cjs
More file actions
42 lines (42 loc) · 965 Bytes
/
.eslintrc.cjs
File metadata and controls
42 lines (42 loc) · 965 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
module.exports = {
root: true,
env: {
es2022: true,
node: true,
},
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaVersion: "latest",
sourceType: "module",
project: null,
},
plugins: ["@typescript-eslint", "import"],
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
],
rules: {
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": ["error", { argsIgnorePattern: "^_", varsIgnorePattern: "^_" }],
"import/extensions": [
"error",
"ignorePackages",
{
ts: "always",
tsx: "always",
js: "always",
jsx: "always",
mjs: "always",
},
],
"import/no-unresolved": "off",
"@typescript-eslint/consistent-type-imports": ["error", { prefer: "type-imports" }],
},
settings: {
"import/resolver": {
node: {
extensions: [".ts", ".tsx", ".js", ".jsx", ".mjs"],
},
},
},
};