-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.eslintrc.js
22 lines (22 loc) · 880 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
module.exports = {
extends: ["eslint:recommended", "plugin:@typescript-eslint/strict", "prettier"],
parser: "@typescript-eslint/parser",
parserOptions: {
project: `./tsconfig.json`,
},
plugins: ["@typescript-eslint"],
rules: {
"@typescript-eslint/await-thenable": "error",
"@typescript-eslint/dot-notation": "off",
"@typescript-eslint/no-duplicate-enum-values": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-unnecessary-condition": ["warn", { allowConstantLoopConditions: true }],
"@typescript-eslint/prefer-nullish-coalescing": "off",
"@typescript-eslint/require-await": 2,
"@typescript-eslint/switch-exhaustiveness-check": "error",
"no-constant-condition": ["error", { checkLoops: false }],
"no-unused-vars": "off",
},
root: true,
};