-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc.js
36 lines (36 loc) · 995 Bytes
/
.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
module.exports = {
root: true,
parser: "@typescript-eslint/parser",
plugins: ["@typescript-eslint", "mocha"],
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
ignorePatterns: ["out/*", "*.js"],
overrides: [
{
files: ["*.ts"],
rules: {
"@ts-ignore": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-inferrable-types": "off",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
argsIgnorePattern: "^_",
varsIgnorePattern: "^_",
caughtErrorsIgnorePattern: "^_",
},
],
"@typescript-eslint/no-non-null-assertion": "error",
"guard-for-in": "error",
"no-var": "error",
curly: "error",
"no-useless-escape": "off",
"mocha/no-exclusive-tests": "error",
},
},
],
};