generated from tarnishablec/mono-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
84 lines (84 loc) · 2.04 KB
/
.eslintrc.json
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
{
"env": {
"browser": true,
"es6": true,
"node": true,
"jest": true,
"worker": true
},
"extends": [
"eslint:recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:@typescript-eslint/recommended"
],
"settings": {
"import/resolver": {
"typescript": {}
}
},
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module"
},
"plugins": ["@typescript-eslint", "jsdoc", "import"],
"rules": {
"no-unused-vars": "off",
"no-debugger": "warn",
// "no-console": "warn",
"no-empty": "warn",
"prefer-const": "warn",
"max-params": ["warn", { "max": 5 }],
///
"import/default": "off",
"import/extensions": [
"error",
"ignorePackages",
{ "ts": "never", "tsx": "never" }
],
"import/no-unresolved": "off",
"import/no-duplicates": ["error", { "considerQueryString": true }],
///
"@typescript-eslint/no-unused-vars": [
"warn",
{ "vars": "all", "args": "after-used", "ignoreRestSiblings": false }
],
"@typescript-eslint/no-explicit-any": [
"off",
{
"ignoreRestArgs": true
}
],
"@typescript-eslint/ban-types": [
"warn",
{
"types": { "object": false, "{}": false, "Object": false }
}
],
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/no-empty-interface": "off",
"@typescript-eslint/no-inferrable-types": "off",
"@typescript-eslint/no-namespace": "off"
},
"overrides": [
{
"files": [
"**.js",
"packages/sandbox/**",
"scripts/**",
"instruments/**",
"packages/real/**"
],
"rules": { "no-console": "off" }
}
]
}