-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.yaml
51 lines (44 loc) · 1.42 KB
/
.eslintrc.yaml
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
root: true
parser: "@typescript-eslint/parser"
parserOptions:
sourceType: module
plugins:
- import
- "@typescript-eslint"
extends:
- problems
- "plugin:@typescript-eslint/eslint-recommended"
- "plugin:@typescript-eslint/recommended"
- plugin:prettier/recommended
- plugin:import/recommended
- plugin:import/typescript # this line does the trick
env:
jest: true
browser: true
settings:
import/parsers:
"@typescript-eslint/parser":
- .ts
import/resolver:
typescript:
alwaysTryTypes: true
rules:
no-fallthrough: off
no-undef-init: off
prefer-rest-params: off
no-constructor-return: off
eqeqeq: [2, "smart"]
"@typescript-eslint/explicit-function-return-type": off
"@typescript-eslint/no-explicit-any": off
"@typescript-eslint/no-var-requires": off
"@typescript-eslint/no-this-alias": off
"@typescript-eslint/ban-ts-ignore": off
"@typescript-eslint/ban-ts-comment": off
"@typescript-eslint/ban-types": off
"@typescript-eslint/interface-name-prefix": off
"@typescript-eslint/no-empty-interface": off
"@typescript-eslint/no-empty-function": off
"no-use-before-define": off
"@typescript-eslint/no-use-before-define": [2, {"functions": false}]
"@typescript-eslint/no-unused-vars": [2, {vars: "all", args: "after-used", argsIgnorePattern: "^_"}]
"@typescript-eslint/consistent-type-assertions": [2, {assertionStyle: "as", objectLiteralTypeAssertions: "allow-as-parameter"}]