generated from JS-DevTools/template-node-typescript
-
Notifications
You must be signed in to change notification settings - Fork 74
/
.eslintrc.yaml
58 lines (50 loc) · 1.39 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
52
53
54
55
56
57
58
root: true
extends:
- "eslint:recommended"
- "plugin:@typescript-eslint/strict-type-checked"
- "plugin:@typescript-eslint/stylistic-type-checked"
- "plugin:import/recommended"
- "plugin:import/typescript"
- "plugin:jsdoc/recommended-typescript-error"
- "plugin:n/recommended"
- "plugin:promise/recommended"
- "plugin:sonarjs/recommended-legacy"
- "plugin:unicorn/recommended"
- "prettier"
parserOptions:
project:
- "tsconfig.eslint.json"
settings:
import/resolver:
typescript: true
node: true
env:
es2021: true
node: true
rules:
unicorn/prefer-top-level-await: "off"
jsdoc/tag-lines: "off"
"@typescript-eslint/restrict-template-expressions":
- "error"
- allowAny: false
allowBoolean: false
allowNullish: false
allowNumber: true
allowRegExp: false
allowNever: false
"@typescript-eslint/no-unnecessary-type-parameters": "off"
overrides:
- files: ["**/*.js"]
rules:
"@typescript-eslint/no-var-requires": "off"
unicorn/prefer-module: "off"
- files: ["**/__tests__/**/*"]
rules:
"@typescript-eslint/no-non-null-assertion": "off"
"@typescript-eslint/no-unsafe-argument": "off"
"@typescript-eslint/no-unsafe-assignment": "off"
sonarjs/no-duplicate-string: "off"
unicorn/no-useless-undefined: "off"
- files: ["src/action/**/*"]
rules:
n/no-unpublished-import: "off"