-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.eslintrc.yaml
40 lines (40 loc) · 1.24 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
---
extends:
- plugin:zillow/recommended
- plugin:zillow/jest
- plugin:node/recommended
env:
browser: false
node: true
plugins:
- node
rules:
no-restricted-syntax:
- error
- ForInStatement
# allows ForOfStatement
- LabeledStatement
- WithStatement
node/no-unsupported-features:
- error
# version controlled by "engines" field in package.json
padding-line-between-statements:
- error
# blank line before return statements
- { blankLine: "always", prev: "*", next: "return" }
# blank line after const/let statement(s)
- { blankLine: "always", prev: ["const", "let"], next: "*" }
- { blankLine: "any", prev: ["const", "let"], next: ["const", "let"] }
# blank line before and after multi-line block-like statements
- { blankLine: "always", prev: "*", next: "multiline-block-like" }
- { blankLine: "always", prev: "multiline-block-like", next: "*" }
prefer-object-spread: "off"
strict: "off"
root: true
overrides:
- files:
- "packages/*/test/**"
rules:
# dev dependencies are hoisted to the root
zillow/import/no-extraneous-dependencies: off
node/no-extraneous-require: off