forked from prettier/prettier
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.yml
124 lines (124 loc) · 2.73 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
root: true
env:
es2020: true
node: true
extends:
- eslint:recommended
- prettier
- prettier/unicorn
plugins:
- import
- unicorn
- prettier-internal-rules
settings:
import/internal-regex: ^linguist-languages/
rules:
prettier-internal-rules/require-json-extensions: error
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:
- "**/*.mjs"
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:
- ".."
- files: src/language-js/needs-parens.js
rules:
prettier-internal-rules/better-parent-property-check-in-needs-parens: error
- files: src/**/*.js
rules:
prettier-internal-rules/prefer-fast-path-each: error
- files:
- src/language-*/**/*.js
rules:
prettier-internal-rules/directly-loc-start-end: error
- files:
- src/language-js/**/*.js
rules:
prettier-internal-rules/no-node-comments:
- error
- file: "src/language-js/utils.js"
functions:
- hasComment
- getComments
- "src/language-js/parse-postprocess.js"
- "src/language-js/parser-babel.js"
- "src/language-js/parser-meriyah.js"
- "src/language-js/pragma.js"