-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
.eslintrc.yml
84 lines (84 loc) · 2.02 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
---
root: true
ignorePatterns:
- "**/lib/**"
parser: "@typescript-eslint/parser"
parserOptions:
ecmaVersion: 6
sourceType: module
project:
- "./tsconfig.eslint.json"
plugins:
- "@typescript-eslint"
- import
- mocha
- simple-import-sort
- unused-imports
extends:
- eslint:recommended
- plugin:@typescript-eslint/eslint-recommended
- plugin:@typescript-eslint/recommended
- plugin:mocha/recommended
- plugin:unicorn/recommended
rules:
simple-import-sort/imports: error
simple-import-sort/exports: error
sort-imports: 'off'
import/order: 'off'
unused-imports/no-unused-imports: error
no-multiple-empty-lines:
- warn
- max: 1
"@typescript-eslint/explicit-module-boundary-types":
- error
- allowHigherOrderFunctions: true
indent: 'off'
"@typescript-eslint/indent":
- error
- 4
- MemberExpression: 'off'
SwitchCase: 1
quotes: 'off'
"@typescript-eslint/quotes":
- error
- single
- allowTemplateLiterals: true
avoidEscape: true
"@typescript-eslint/no-explicit-any": 'off'
"@typescript-eslint/no-unused-vars":
- warn
- args: none
vars: all
varsIgnorePattern: "^.*_$"
mocha/no-exclusive-tests: 'error'
mocha/no-mocha-arrows: 'off'
mocha/no-setup-in-describe: 'off'
unicorn/empty-brace-spaces: 'off'
unicorn/filename-case:
- error
- cases:
kebabCase: true
pascalCase: true
camelCase: true
unicorn/import-style:
- error
- styles:
path: false
unicorn/no-array-for-each: 'off'
unicorn/no-array-reduce: 'off'
unicorn/no-array-callback-reference: 'off'
unicorn/no-null: 'off'
unicorn/no-static-only-class: 'off'
unicorn/numeric-separators-style: 'off'
unicorn/prefer-array-flat: 'off'
unicorn/prefer-object-from-entries: 'off'
unicorn/prefer-module: 'off'
unicorn/prefer-node-protocol: 'off'
unicorn/prefer-spread: 'off'
unicorn/prevent-abbreviations:
- error
- allowList:
acc: true
args: true
i: true
unicorn/switch-case-braces: 'off'