-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.yml
41 lines (41 loc) · 1.01 KB
/
.eslintrc.yml
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
env:
node: true
es2021: true
extends:
- eslint:recommended
- plugin:@typescript-eslint/recommended
- prettier
parser: '@typescript-eslint/parser'
parserOptions:
ecmaVersion: 13
sourceType: module
project:
- "tsconfig.json"
plugins:
- '@typescript-eslint'
rules:
indent:
- off
linebreak-style:
- error
- unix
quotes:
- error
- double
require-await: off
no-unused-vars: off
"@typescript-eslint/explicit-function-return-type":
- error
- allowExpressions: true
"@typescript-eslint/no-unused-vars": error
"@typescript-eslint/prefer-optional-chain": error
"@typescript-eslint/array-type": error
"@typescript-eslint/no-explicit-any": error
"@typescript-eslint/no-redundant-type-constituents": error
"@typescript-eslint/no-throw-literal": error
"@typescript-eslint/prefer-as-const": error
"@typescript-eslint/require-await": error
"@typescript-eslint/switch-exhaustiveness-check": warn
"@typescript-eslint/consistent-type-definitions":
- error
- type