-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.eslintrc.yaml
31 lines (31 loc) · 998 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
env:
es6: true
extends:
- "eslint:recommended"
- "prettier"
rules:
eqeqeq: error
new-cap: [error, { newIsCap: true, capIsNew: false }]
no-empty: [error, { allowEmptyCatch: true }]
no-implicit-coercion: [error, { allow: ['!!'] }]
no-undef: [warn, { typeof: true }]
no-unused-vars: [error, { vars: all, args: after-used, ignoreRestSiblings: false, argsIgnorePattern: "^_+$", varsIgnorePattern: "^_+$" }]
prefer-template: error
quotes: [error, double, { avoidEscape: true, allowTemplateLiterals: false }]
semi: [error, always]
strict: [error, global]
overrides:
- files: ["*[Test|UnitTest|IntegrationTest|IT].js","*.test.js"]
rules:
no-undef: off
no-unused-vars: [error, { vars: all, args: after-used, ignoreRestSiblings: false, argsIgnorePattern: "^_+$|^sut$", varsIgnorePattern: "^_+$|^sut$" }]
semi: off
strict: off
globals:
imports: false
log: false
print: false
window: false
parserOptions:
ecmaVersion: 2022
sourceType: module