-
Notifications
You must be signed in to change notification settings - Fork 5
/
.eslintrc.js
56 lines (56 loc) · 1.63 KB
/
.eslintrc.js
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
module.exports = {
root: true,
env: {
es2020: true,
node: true
},
ignorePatterns: [
"**/.*.js",
"**/*.d.ts",
"out",
"dist",
"lib",
"webpack",
"node_modules/**/*",
".vscode/**/*",
".vscode-test/**/*",
"packages/vscode-extension/build",
"jest.config.ts",
"**/*/jest.config.ts"
],
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
parser: "@typescript-eslint/parser",
parserOptions: {
tsconfigRootDir: __dirname,
project: [
'packages/**/tsconfig.json'
]
},
plugins: [
"@typescript-eslint"
],
rules: {
// Allow `any` to be used for now
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/no-unsafe-return": 0,
"@typescript-eslint/no-unsafe-member-access": 0,
"@typescript-eslint/no-unsafe-call": 0,
"@typescript-eslint/no-unsafe-assignment": 0,
"@typescript-eslint/no-unsafe-argument": 0,
// To many false-posetives on this rule
"@typescript-eslint/restrict-template-expressions": 0,
"@typescript-eslint/no-unused-expressions": 0,
"@typescript-eslint/unbound-method": 1,
"@typescript-eslint/no-inferrable-types": 0,
"@typescript-eslint/no-non-null-assertion": 0,
"@typescript-eslint/ban-ts-comment": 0,
"@typescript-eslint/no-namespace": 0,
"no-cond-assign": 1,
"prefer-spread": 1,
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": [ "error" ]
}
};