-
-
Notifications
You must be signed in to change notification settings - Fork 161
/
Copy path.eslintrc.yml
137 lines (137 loc) · 3.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
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
---
root: true
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
ignorePatterns:
- integration/**/examples/**/*.js
env:
node: true
overrides:
- files: ["packages/**/*.ts"]
rules:
"@typescript-eslint/explicit-module-boundary-types":
- error
- allowHigherOrderFunctions: true
"@typescript-eslint/consistent-type-imports":
- error
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
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/switch-case-braces:
- error
- avoid
unicorn/filename-case:
- error
- cases:
kebabCase: true
pascalCase: true
camelCase: true
ignore:
- "[a-z0-9_]+.spec.ts$"
- "[a-z0-9_]+.steps.ts$"
- "configure_serenity.ts"
- API
- AST
- BDD
- CLI
- CSS
- DTO
- FS
- GAV
- HTTP
- JSON
- MDX
- UI
- WebdriverIO
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-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
arg: true
args: true
Args: true
attrs: true
conf: true
createProp: true
devtools: true
doc: true
Doc: true
docString: true
DocString: true
e: true
env: true
fn: true
fnAttrs: true
i: true
params: true
pkg: true
prop: true
Prop: true
Props: true
props: true
Ref: true
Refs: true
ref: true
refs: true
TOC: true
toc: true
temp: true
wdio: true