-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.js
More file actions
48 lines (48 loc) · 1.25 KB
/
.eslintrc.js
File metadata and controls
48 lines (48 loc) · 1.25 KB
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
module.exports = {
parser: "@typescript-eslint/parser",
extends: [
"eslint:recommended",
"plugin:import/recommended",
"plugin:import/typescript",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
],
plugins: ["import", "@typescript-eslint"],
parserOptions: {
sourceType: "module",
ecmaVersion: 2018,
},
env: {
es6: true,
node: true,
},
rules: {
"import/no-named-as-default-member": "off",
"import/no-named-as-default": "off",
"@typescript-eslint/no-explicit-any": ["off"],
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"no-duplicate-imports": "error",
"import/no-useless-path-segments": [
"error",
{
noUselessIndex: true,
},
],
"import/order": "error",
"@typescript-eslint/no-unused-vars": ["error", { argsIgnorePattern: "^_" }],
"arrow-body-style": ["error", "as-needed"],
"import/no-unresolved": "off",
},
settings: {
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx"],
},
"import/resolver": {
node: {
extensions: [".ts", ".tsx", ".js", ".jsx", ".vue"],
},
},
},
}