forked from zowe/zowe-explorer-vscode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.yaml
34 lines (33 loc) · 978 Bytes
/
.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
root: true
parser: "@typescript-eslint/parser"
parserOptions:
ecmaVersion: 6
sourceType: module
project:
- "./tsconfig.json"
plugins:
- "@typescript-eslint"
extends:
- eslint:recommended
- plugin:@typescript-eslint/recommended
- plugin:@typescript-eslint/recommended-requiring-type-checking
- prettier
rules:
"@typescript-eslint/no-namespace": off
"@typescript-eslint/explicit-function-return-type": error
"@typescript-eslint/explicit-member-accessibility": error
"@typescript-eslint/no-unsafe-assignment": warn
"@typescript-eslint/no-unsafe-member-access": warn
"@typescript-eslint/no-unsafe-call": warn
no-console: error
array-callback-return: error
complexity:
- error
- max: 15
no-implicit-globals: error
require-await: error
# incompatibility fixes with eslint for javascript
no-shadow: 0
"@typescript-eslint/no-shadow": warn
"no-unused-vars": 0
"@typescript-eslint/no-unused-vars": ["warn", { "args": "none" }]