forked from mittwald/vaulTS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.yml
111 lines (111 loc) · 3.58 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
env:
node: true
jest/globals: true
es6: true
extends:
- plugin:@typescript-eslint/eslint-recommended
- plugin:prettier/recommended
- eslint:recommended
parser: "@typescript-eslint/parser"
plugins:
- "@typescript-eslint"
- jest
rules:
"@typescript-eslint/array-type":
- error
- default: array-simple
"@typescript-eslint/await-thenable": error
# "@typescript-eslint/class-name-casing": error
"@typescript-eslint/consistent-type-assertions": off
"@typescript-eslint/consistent-type-definitions":
- error
- interface
"@typescript-eslint/explicit-function-return-type":
- error
- allowExpressions: true
allowHigherOrderFunctions: true
allowTypedFunctionExpressions: true
"@typescript-eslint/explicit-member-accessibility": error
# "@typescript-eslint/generic-type-naming": error
"@typescript-eslint/member-delimiter-style":
- error
- multiline:
delimiter: semi
requireLast: true
singleline:
delimiter: semi
requireLast: false
"@typescript-eslint/member-ordering":
- error
- default:
- field
- constructor
- method
no-empty-function: off
"@typescript-eslint/no-empty-function": off
"@typescript-eslint/no-empty-interface": off
"@typescript-eslint/no-explicit-any": off
"@typescript-eslint/no-extra-parens": off
"@typescript-eslint/no-extraneous-class": off
"@typescript-eslint/no-floating-promises": error
"@typescript-eslint/no-for-in-array": off
"@typescript-eslint/no-inferrable-types": off
no-magic-numbers: off
"@typescript-eslint/no-magic-numbers": off
"@typescript-eslint/no-misused-new": error
"@typescript-eslint/no-misused-promises": error
"@typescript-eslint/no-namespace": error
"@typescript-eslint/no-non-null-assertion": off
"@typescript-eslint/no-parameter-properties": error
"@typescript-eslint/no-require-imports": off
"@typescript-eslint/no-this-alias": off
"@typescript-eslint/no-type-alias": off
"@typescript-eslint/no-unnecessary-condition": error
"@typescript-eslint/no-unnecessary-qualifier": error
"@typescript-eslint/no-unnecessary-type-arguments": off
"@typescript-eslint/no-unnecessary-type-assertion": error
"@typescript-eslint/no-unused-vars":
- error
- varsIgnorePattern: ^ignored
argsIgnorePattern: ^ignored
caughtErrorsIgnorePattern: ^ignored
"@typescript-eslint/no-use-before-define": error
"@typescript-eslint/no-useless-constructor": error
"@typescript-eslint/no-var-requires": off
"@typescript-eslint/prefer-for-of": error
"@typescript-eslint/prefer-function-type": error
"@typescript-eslint/prefer-includes": error
"@typescript-eslint/prefer-namespace-keyword": error
"@typescript-eslint/prefer-readonly": error
"@typescript-eslint/prefer-regexp-exec": error
"@typescript-eslint/prefer-string-starts-ends-with": error
"@typescript-eslint/promise-function-async": off
"@typescript-eslint/require-array-sort-compare": off
"@typescript-eslint/require-await": error
"@typescript-eslint/restrict-plus-operands": error
"@typescript-eslint/semi": off
"@typescript-eslint/strict-boolean-expressions": off
"@typescript-eslint/typedef": off
"@typescript-eslint/unbound-method":
- error
- ignoreStatic: true
"@typescript-eslint/unified-signatures": error
indent: off
linebreak-style:
- error
- unix
quotes:
- error
- double
- avoidEscape: true
semi:
- error
- always
no-dupe-class-members: off
globals:
Atomics: readonly
SharedArrayBuffer: readonly
parserOptions:
ecmaVersion: 2018
sourceType: module
project: ./tsconfig.eslint.json