forked from serenity-js/serenity-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.yml
120 lines (120 loc) · 2.67 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
---
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
env:
node: true
overrides:
- files: ["packages/**/*.ts"]
rules:
"@typescript-eslint/explicit-module-boundary-types":
- error
- allowHigherOrderFunctions: true
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/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
- GAV
- FS
- HTTP
- JSON
- 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
attrs: true
conf: true
createProp: true
devtools: 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
temp: true
wdio: true