-
Notifications
You must be signed in to change notification settings - Fork 16
/
.eslintrc.ts
44 lines (41 loc) · 1.46 KB
/
.eslintrc.ts
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
import { ParserOptions } from "@typescript-eslint/parser";
import { ESLint } from "eslint";
module.exports = {
root: true,
parser: "@typescript-eslint/parser",
parserOptions: {
tsconfigRootDir: __dirname,
project: ["./tsconfig.json", "src/tsconfig.json"],
} as ParserOptions,
plugins: [
"@typescript-eslint",
],
extends: [
// use all recommended rules as base
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
],
rules: {
// eslint
"comma-dangle": ["warn", "always-multiline"],
"quotes": ["warn", "double", { avoidEscape: true }],
"no-constant-condition": ["warn", { checkLoops: false }],
"no-cond-assign": ["off"],
// typescript-eslint
"@typescript-eslint/no-explicit-any": ["off"],
"@typescript-eslint/await-thenable": ["off"],
"@typescript-eslint/restrict-template-expressions": ["off"],
"@typescript-eslint/no-non-null-assertion": ["off"],
"@typescript-eslint/no-namespace": ["off"],
"@typescript-eslint/explicit-module-boundary-types": ["off"],
"@typescript-eslint/no-unsafe-member-access": ["off"],
"@typescript-eslint/ban-types": ["off"],
"@typescript-eslint/no-empty-interface": ["off"],
"@typescript-eslint/no-unsafe-assignment": ["off"],
"@typescript-eslint/no-unsafe-return": ["off"],
"@typescript-eslint/unbound-method": ["off"],
"no-prototype-builtins": ["off"],
"@typescript-eslint/no-unused-vars": ["off"],
},
} as ESLint.Options;