forked from prettier/prettier
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.yml
99 lines (99 loc) · 1.93 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
root: true
env:
es2020: true
node: true
extends:
- eslint:recommended
- prettier
- prettier/unicorn
plugins:
- import
- unicorn
settings:
import/internal-regex: ^linguist-languages/
rules:
curly: error
dot-notation: error
eqeqeq:
- error
- always
- null: ignore
import/no-extraneous-dependencies:
- error
- devDependencies: ["tests*/**", "scripts/**"]
import/order: error
no-else-return: error
no-inner-declarations: error
no-unneeded-ternary: error
no-useless-return: error
no-unused-vars:
- error
- ignoreRestSiblings: true
no-var: error
object-shorthand: error
one-var:
- error
- never
prefer-arrow-callback: error
prefer-const:
- error
- destructuring: all
prefer-destructuring:
- error
- VariableDeclarator:
array: false
object: true
AssignmentExpression:
array: false
object: false
- enforceForRenamedProperties: false
prefer-object-spread: error
prefer-rest-params: error
prefer-spread: error
quotes:
- error
- double
- avoidEscape: true
strict: error
symbol-description: error
yoda:
- error
- never
- exceptRange: true
unicorn/better-regex: error
unicorn/new-for-builtins: error
unicorn/no-useless-undefined: error
unicorn/prefer-includes: error
unicorn/prefer-string-slice: error
overrides:
- files:
- scripts/**/*.js
rules:
no-console: off
- files:
- scripts/build/shims/*.js
parserOptions:
sourceType: module
- files:
- "{tests,tests_config,tests_integration}/**/*.js"
env:
jest: true
plugins:
- jest
rules:
jest/valid-expect:
- error
- alwaysAwait: true
- files:
- tests/**/*.js
rules:
strict: off
globals:
run_spec: false
- files:
- src/cli/**/*.js
rules:
no-restricted-modules:
- error
- patterns:
- ".."