This repository has been archived by the owner on Jan 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
87 lines (85 loc) · 2.32 KB
/
.eslintrc
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
{
"root": true,
"env": {
"node": true,
"es6": true
},
"extends": [
"airbnb",
"typescript",
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"prettier",
"plugin:prettier/recommended"
],
"plugins": ["@typescript-eslint", "prettier"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.esm.json",
"sourceType": "module",
"tsconfigRootDir": "./",
"extraFileExtensions": [".json"],
"import/parsers": {
"@typescript-eslint/parser": [".ts"]
},
"import/resolver": {
"typescript": {}
}
},
"rules": {
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-unused-vars": [
"warn",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_",
"ignoreRestSiblings": true
}
],
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/ban-types": "off",
"max-classes-per-file": "off",
"no-useless-constructor": "off",
"class-methods-use-this": "off",
"eqeqeq": ["warn", "always"],
"import/extensions": [
"error",
{
"js": "never",
"json": "always",
"ts": "never"
}
],
"import/no-extraneous-dependencies": "off",
"import/no-unresolved": "off",
"import/order": "warn",
"import/prefer-default-export": "off",
"lines-between-class-members": "off",
"no-console": [
"warn",
{
"allow": ["warn", "error", "info"]
}
],
"no-continue": "off",
"no-plusplus": "off",
"no-param-reassign": [
"warn",
{
"props": false
}
],
"no-restricted-exports": "off",
"no-restricted-syntax":"off",
"spaced-comment": [
"warn",
"always",
{
"markers": ["/"]
}
],
"prettier/prettier": ["warn"]
}
}