eslint-config-prettier 10.0.1 → 10.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -2
- package/build/index.d.ts +3 -0
- package/build/index.js +386 -382
- package/package.json +5 -3
package/README.md
CHANGED
|
@@ -12,8 +12,20 @@ Note that this config _only_ turns rules _off,_ so it only makes sense using it
|
|
|
12
12
|
|
|
13
13
|
1. Install eslint-config-prettier:
|
|
14
14
|
|
|
15
|
+
```shell
|
|
16
|
+
npm i -D eslint-config-prettier
|
|
15
17
|
```
|
|
16
|
-
|
|
18
|
+
|
|
19
|
+
```shell
|
|
20
|
+
yarn add -D eslint-config-prettier
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
```shell
|
|
24
|
+
pnpm add -D eslint-config-prettier
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
```shell
|
|
28
|
+
bun add -D eslint-config-prettier
|
|
17
29
|
```
|
|
18
30
|
|
|
19
31
|
2. Add eslint-config-prettier to your ESLint configuration – either to [eslintrc] or to [eslint.config.js (flat config)].
|
|
@@ -51,8 +63,9 @@ Note that this config _only_ turns rules _off,_ so it only makes sense using it
|
|
|
51
63
|
|
|
52
64
|
eslint-config-prettier not only turns off _core_ rules, but also some from these plugins automatically:
|
|
53
65
|
|
|
54
|
-
- [@typescript-eslint/eslint-plugin]
|
|
55
66
|
- [@babel/eslint-plugin]
|
|
67
|
+
- [@stylistic/eslint-plugin]
|
|
68
|
+
- [@typescript-eslint/eslint-plugin]
|
|
56
69
|
- [eslint-plugin-babel]
|
|
57
70
|
- [eslint-plugin-flowtype]
|
|
58
71
|
- [eslint-plugin-react]
|
|
@@ -859,6 +872,7 @@ When you’re done, run `npm test` to verify that you got it all right. It runs
|
|
|
859
872
|
[MIT](LICENSE).
|
|
860
873
|
|
|
861
874
|
[@babel/eslint-plugin]: https://github.com/babel/babel/tree/main/eslint/babel-eslint-plugin
|
|
875
|
+
[@stylistic/eslint-plugin]: https://github.com/eslint-stylistic/eslint-stylistic
|
|
862
876
|
[@stylistic/lines-around-comment]: https://eslint.style/rules/default/lines-around-comment
|
|
863
877
|
[@stylistic/js/lines-around-comment]: https://eslint.style/rules/js/lines-around-comment
|
|
864
878
|
[@stylistic/ts/lines-around-comment]: https://eslint.style/rules/ts/lines-around-comment
|
package/build/index.d.ts
ADDED
package/build/index.js
CHANGED
|
@@ -1,397 +1,401 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
const { version } = require("eslint/package.json");
|
|
4
|
+
|
|
3
5
|
const includeDeprecated = !process.env.ESLINT_CONFIG_PRETTIER_NO_DEPRECATED;
|
|
4
6
|
|
|
5
7
|
const specialRule = 0;
|
|
6
8
|
|
|
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
|
-
|
|
9
|
+
if (+version.split(".")[0] >= 9) {
|
|
10
|
+
exports.name = "config-prettier";
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
exports.rules = {
|
|
14
|
+
// The following rules can be used in some cases. See the README for more
|
|
15
|
+
// information. These are marked with `0` instead of `"off"` so that a
|
|
16
|
+
// script can distinguish them. Note that there are a few more of these
|
|
17
|
+
// in the deprecated section below.
|
|
18
|
+
"curly": specialRule,
|
|
19
|
+
"no-unexpected-multiline": specialRule,
|
|
20
|
+
"@stylistic/lines-around-comment": specialRule,
|
|
21
|
+
"@stylistic/max-len": specialRule,
|
|
22
|
+
"@stylistic/no-confusing-arrow": specialRule,
|
|
23
|
+
"@stylistic/no-mixed-operators": specialRule,
|
|
24
|
+
"@stylistic/no-tabs": specialRule,
|
|
25
|
+
"@stylistic/quotes": specialRule,
|
|
26
|
+
"@stylistic/js/lines-around-comment": specialRule,
|
|
27
|
+
"@stylistic/js/max-len": specialRule,
|
|
28
|
+
"@stylistic/js/no-confusing-arrow": specialRule,
|
|
29
|
+
"@stylistic/js/no-mixed-operators": specialRule,
|
|
30
|
+
"@stylistic/js/no-tabs": specialRule,
|
|
31
|
+
"@stylistic/js/quotes": specialRule,
|
|
32
|
+
"@stylistic/ts/lines-around-comment": specialRule,
|
|
33
|
+
"@stylistic/ts/quotes": specialRule,
|
|
34
|
+
"@typescript-eslint/lines-around-comment": specialRule,
|
|
35
|
+
"@typescript-eslint/quotes": specialRule,
|
|
36
|
+
"babel/quotes": specialRule,
|
|
37
|
+
"unicorn/template-indent": specialRule,
|
|
38
|
+
"vue/html-self-closing": specialRule,
|
|
39
|
+
"vue/max-len": specialRule,
|
|
35
40
|
|
|
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
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
41
|
+
// The rest are rules that you never need to enable when using Prettier.
|
|
42
|
+
"@babel/object-curly-spacing": "off",
|
|
43
|
+
"@babel/semi": "off",
|
|
44
|
+
"@stylistic/array-bracket-newline": "off",
|
|
45
|
+
"@stylistic/array-bracket-spacing": "off",
|
|
46
|
+
"@stylistic/array-element-newline": "off",
|
|
47
|
+
"@stylistic/arrow-parens": "off",
|
|
48
|
+
"@stylistic/arrow-spacing": "off",
|
|
49
|
+
"@stylistic/block-spacing": "off",
|
|
50
|
+
"@stylistic/brace-style": "off",
|
|
51
|
+
"@stylistic/comma-dangle": "off",
|
|
52
|
+
"@stylistic/comma-spacing": "off",
|
|
53
|
+
"@stylistic/comma-style": "off",
|
|
54
|
+
"@stylistic/computed-property-spacing": "off",
|
|
55
|
+
"@stylistic/dot-location": "off",
|
|
56
|
+
"@stylistic/eol-last": "off",
|
|
57
|
+
"@stylistic/func-call-spacing": "off",
|
|
58
|
+
"@stylistic/function-call-argument-newline": "off",
|
|
59
|
+
"@stylistic/function-call-spacing": "off",
|
|
60
|
+
"@stylistic/function-paren-newline": "off",
|
|
61
|
+
"@stylistic/generator-star-spacing": "off",
|
|
62
|
+
"@stylistic/implicit-arrow-linebreak": "off",
|
|
63
|
+
"@stylistic/indent": "off",
|
|
64
|
+
"@stylistic/jsx-quotes": "off",
|
|
65
|
+
"@stylistic/key-spacing": "off",
|
|
66
|
+
"@stylistic/keyword-spacing": "off",
|
|
67
|
+
"@stylistic/linebreak-style": "off",
|
|
68
|
+
"@stylistic/max-statements-per-line": "off",
|
|
69
|
+
"@stylistic/multiline-ternary": "off",
|
|
70
|
+
"@stylistic/new-parens": "off",
|
|
71
|
+
"@stylistic/newline-per-chained-call": "off",
|
|
72
|
+
"@stylistic/no-extra-parens": "off",
|
|
73
|
+
"@stylistic/no-extra-semi": "off",
|
|
74
|
+
"@stylistic/no-floating-decimal": "off",
|
|
75
|
+
"@stylistic/no-mixed-spaces-and-tabs": "off",
|
|
76
|
+
"@stylistic/no-multi-spaces": "off",
|
|
77
|
+
"@stylistic/no-multiple-empty-lines": "off",
|
|
78
|
+
"@stylistic/no-trailing-spaces": "off",
|
|
79
|
+
"@stylistic/no-whitespace-before-property": "off",
|
|
80
|
+
"@stylistic/nonblock-statement-body-position": "off",
|
|
81
|
+
"@stylistic/object-curly-newline": "off",
|
|
82
|
+
"@stylistic/object-curly-spacing": "off",
|
|
83
|
+
"@stylistic/object-property-newline": "off",
|
|
84
|
+
"@stylistic/one-var-declaration-per-line": "off",
|
|
85
|
+
"@stylistic/operator-linebreak": "off",
|
|
86
|
+
"@stylistic/padded-blocks": "off",
|
|
87
|
+
"@stylistic/quote-props": "off",
|
|
88
|
+
"@stylistic/rest-spread-spacing": "off",
|
|
89
|
+
"@stylistic/semi": "off",
|
|
90
|
+
"@stylistic/semi-spacing": "off",
|
|
91
|
+
"@stylistic/semi-style": "off",
|
|
92
|
+
"@stylistic/space-before-blocks": "off",
|
|
93
|
+
"@stylistic/space-before-function-paren": "off",
|
|
94
|
+
"@stylistic/space-in-parens": "off",
|
|
95
|
+
"@stylistic/space-infix-ops": "off",
|
|
96
|
+
"@stylistic/space-unary-ops": "off",
|
|
97
|
+
"@stylistic/switch-colon-spacing": "off",
|
|
98
|
+
"@stylistic/template-curly-spacing": "off",
|
|
99
|
+
"@stylistic/template-tag-spacing": "off",
|
|
100
|
+
"@stylistic/wrap-iife": "off",
|
|
101
|
+
"@stylistic/wrap-regex": "off",
|
|
102
|
+
"@stylistic/yield-star-spacing": "off",
|
|
103
|
+
"@stylistic/member-delimiter-style": "off",
|
|
104
|
+
"@stylistic/type-annotation-spacing": "off",
|
|
105
|
+
"@stylistic/jsx-child-element-spacing": "off",
|
|
106
|
+
"@stylistic/jsx-closing-bracket-location": "off",
|
|
107
|
+
"@stylistic/jsx-closing-tag-location": "off",
|
|
108
|
+
"@stylistic/jsx-curly-newline": "off",
|
|
109
|
+
"@stylistic/jsx-curly-spacing": "off",
|
|
110
|
+
"@stylistic/jsx-equals-spacing": "off",
|
|
111
|
+
"@stylistic/jsx-first-prop-new-line": "off",
|
|
112
|
+
"@stylistic/jsx-indent": "off",
|
|
113
|
+
"@stylistic/jsx-indent-props": "off",
|
|
114
|
+
"@stylistic/jsx-max-props-per-line": "off",
|
|
115
|
+
"@stylistic/jsx-newline": "off",
|
|
116
|
+
"@stylistic/jsx-one-expression-per-line": "off",
|
|
117
|
+
"@stylistic/jsx-props-no-multi-spaces": "off",
|
|
118
|
+
"@stylistic/jsx-tag-spacing": "off",
|
|
119
|
+
"@stylistic/jsx-wrap-multilines": "off",
|
|
120
|
+
"@stylistic/indent-binary-ops": "off",
|
|
121
|
+
"@stylistic/type-generic-spacing": "off",
|
|
122
|
+
"@stylistic/type-named-tuple-spacing": "off",
|
|
123
|
+
"@stylistic/js/array-bracket-newline": "off",
|
|
124
|
+
"@stylistic/js/array-bracket-spacing": "off",
|
|
125
|
+
"@stylistic/js/array-element-newline": "off",
|
|
126
|
+
"@stylistic/js/arrow-parens": "off",
|
|
127
|
+
"@stylistic/js/arrow-spacing": "off",
|
|
128
|
+
"@stylistic/js/block-spacing": "off",
|
|
129
|
+
"@stylistic/js/brace-style": "off",
|
|
130
|
+
"@stylistic/js/comma-dangle": "off",
|
|
131
|
+
"@stylistic/js/comma-spacing": "off",
|
|
132
|
+
"@stylistic/js/comma-style": "off",
|
|
133
|
+
"@stylistic/js/computed-property-spacing": "off",
|
|
134
|
+
"@stylistic/js/dot-location": "off",
|
|
135
|
+
"@stylistic/js/eol-last": "off",
|
|
136
|
+
"@stylistic/js/func-call-spacing": "off",
|
|
137
|
+
"@stylistic/js/function-call-argument-newline": "off",
|
|
138
|
+
"@stylistic/js/function-call-spacing": "off",
|
|
139
|
+
"@stylistic/js/function-paren-newline": "off",
|
|
140
|
+
"@stylistic/js/generator-star-spacing": "off",
|
|
141
|
+
"@stylistic/js/implicit-arrow-linebreak": "off",
|
|
142
|
+
"@stylistic/js/indent": "off",
|
|
143
|
+
"@stylistic/js/jsx-quotes": "off",
|
|
144
|
+
"@stylistic/js/key-spacing": "off",
|
|
145
|
+
"@stylistic/js/keyword-spacing": "off",
|
|
146
|
+
"@stylistic/js/linebreak-style": "off",
|
|
147
|
+
"@stylistic/js/max-statements-per-line": "off",
|
|
148
|
+
"@stylistic/js/multiline-ternary": "off",
|
|
149
|
+
"@stylistic/js/new-parens": "off",
|
|
150
|
+
"@stylistic/js/newline-per-chained-call": "off",
|
|
151
|
+
"@stylistic/js/no-extra-parens": "off",
|
|
152
|
+
"@stylistic/js/no-extra-semi": "off",
|
|
153
|
+
"@stylistic/js/no-floating-decimal": "off",
|
|
154
|
+
"@stylistic/js/no-mixed-spaces-and-tabs": "off",
|
|
155
|
+
"@stylistic/js/no-multi-spaces": "off",
|
|
156
|
+
"@stylistic/js/no-multiple-empty-lines": "off",
|
|
157
|
+
"@stylistic/js/no-trailing-spaces": "off",
|
|
158
|
+
"@stylistic/js/no-whitespace-before-property": "off",
|
|
159
|
+
"@stylistic/js/nonblock-statement-body-position": "off",
|
|
160
|
+
"@stylistic/js/object-curly-newline": "off",
|
|
161
|
+
"@stylistic/js/object-curly-spacing": "off",
|
|
162
|
+
"@stylistic/js/object-property-newline": "off",
|
|
163
|
+
"@stylistic/js/one-var-declaration-per-line": "off",
|
|
164
|
+
"@stylistic/js/operator-linebreak": "off",
|
|
165
|
+
"@stylistic/js/padded-blocks": "off",
|
|
166
|
+
"@stylistic/js/quote-props": "off",
|
|
167
|
+
"@stylistic/js/rest-spread-spacing": "off",
|
|
168
|
+
"@stylistic/js/semi": "off",
|
|
169
|
+
"@stylistic/js/semi-spacing": "off",
|
|
170
|
+
"@stylistic/js/semi-style": "off",
|
|
171
|
+
"@stylistic/js/space-before-blocks": "off",
|
|
172
|
+
"@stylistic/js/space-before-function-paren": "off",
|
|
173
|
+
"@stylistic/js/space-in-parens": "off",
|
|
174
|
+
"@stylistic/js/space-infix-ops": "off",
|
|
175
|
+
"@stylistic/js/space-unary-ops": "off",
|
|
176
|
+
"@stylistic/js/switch-colon-spacing": "off",
|
|
177
|
+
"@stylistic/js/template-curly-spacing": "off",
|
|
178
|
+
"@stylistic/js/template-tag-spacing": "off",
|
|
179
|
+
"@stylistic/js/wrap-iife": "off",
|
|
180
|
+
"@stylistic/js/wrap-regex": "off",
|
|
181
|
+
"@stylistic/js/yield-star-spacing": "off",
|
|
182
|
+
"@stylistic/ts/block-spacing": "off",
|
|
183
|
+
"@stylistic/ts/brace-style": "off",
|
|
184
|
+
"@stylistic/ts/comma-dangle": "off",
|
|
185
|
+
"@stylistic/ts/comma-spacing": "off",
|
|
186
|
+
"@stylistic/ts/func-call-spacing": "off",
|
|
187
|
+
"@stylistic/ts/function-call-spacing": "off",
|
|
188
|
+
"@stylistic/ts/indent": "off",
|
|
189
|
+
"@stylistic/ts/key-spacing": "off",
|
|
190
|
+
"@stylistic/ts/keyword-spacing": "off",
|
|
191
|
+
"@stylistic/ts/member-delimiter-style": "off",
|
|
192
|
+
"@stylistic/ts/no-extra-parens": "off",
|
|
193
|
+
"@stylistic/ts/no-extra-semi": "off",
|
|
194
|
+
"@stylistic/ts/object-curly-spacing": "off",
|
|
195
|
+
"@stylistic/ts/semi": "off",
|
|
196
|
+
"@stylistic/ts/space-before-blocks": "off",
|
|
197
|
+
"@stylistic/ts/space-before-function-paren": "off",
|
|
198
|
+
"@stylistic/ts/space-infix-ops": "off",
|
|
199
|
+
"@stylistic/ts/type-annotation-spacing": "off",
|
|
200
|
+
"@stylistic/jsx/jsx-child-element-spacing": "off",
|
|
201
|
+
"@stylistic/jsx/jsx-closing-bracket-location": "off",
|
|
202
|
+
"@stylistic/jsx/jsx-closing-tag-location": "off",
|
|
203
|
+
"@stylistic/jsx/jsx-curly-newline": "off",
|
|
204
|
+
"@stylistic/jsx/jsx-curly-spacing": "off",
|
|
205
|
+
"@stylistic/jsx/jsx-equals-spacing": "off",
|
|
206
|
+
"@stylistic/jsx/jsx-first-prop-new-line": "off",
|
|
207
|
+
"@stylistic/jsx/jsx-indent": "off",
|
|
208
|
+
"@stylistic/jsx/jsx-indent-props": "off",
|
|
209
|
+
"@stylistic/jsx/jsx-max-props-per-line": "off",
|
|
210
|
+
"@typescript-eslint/block-spacing": "off",
|
|
211
|
+
"@typescript-eslint/brace-style": "off",
|
|
212
|
+
"@typescript-eslint/comma-dangle": "off",
|
|
213
|
+
"@typescript-eslint/comma-spacing": "off",
|
|
214
|
+
"@typescript-eslint/func-call-spacing": "off",
|
|
215
|
+
"@typescript-eslint/indent": "off",
|
|
216
|
+
"@typescript-eslint/key-spacing": "off",
|
|
217
|
+
"@typescript-eslint/keyword-spacing": "off",
|
|
218
|
+
"@typescript-eslint/member-delimiter-style": "off",
|
|
219
|
+
"@typescript-eslint/no-extra-parens": "off",
|
|
220
|
+
"@typescript-eslint/no-extra-semi": "off",
|
|
221
|
+
"@typescript-eslint/object-curly-spacing": "off",
|
|
222
|
+
"@typescript-eslint/semi": "off",
|
|
223
|
+
"@typescript-eslint/space-before-blocks": "off",
|
|
224
|
+
"@typescript-eslint/space-before-function-paren": "off",
|
|
225
|
+
"@typescript-eslint/space-infix-ops": "off",
|
|
226
|
+
"@typescript-eslint/type-annotation-spacing": "off",
|
|
227
|
+
"babel/object-curly-spacing": "off",
|
|
228
|
+
"babel/semi": "off",
|
|
229
|
+
"flowtype/boolean-style": "off",
|
|
230
|
+
"flowtype/delimiter-dangle": "off",
|
|
231
|
+
"flowtype/generic-spacing": "off",
|
|
232
|
+
"flowtype/object-type-curly-spacing": "off",
|
|
233
|
+
"flowtype/object-type-delimiter": "off",
|
|
234
|
+
"flowtype/quotes": "off",
|
|
235
|
+
"flowtype/semi": "off",
|
|
236
|
+
"flowtype/space-after-type-colon": "off",
|
|
237
|
+
"flowtype/space-before-generic-bracket": "off",
|
|
238
|
+
"flowtype/space-before-type-colon": "off",
|
|
239
|
+
"flowtype/union-intersection-spacing": "off",
|
|
240
|
+
"react/jsx-child-element-spacing": "off",
|
|
241
|
+
"react/jsx-closing-bracket-location": "off",
|
|
242
|
+
"react/jsx-closing-tag-location": "off",
|
|
243
|
+
"react/jsx-curly-newline": "off",
|
|
244
|
+
"react/jsx-curly-spacing": "off",
|
|
245
|
+
"react/jsx-equals-spacing": "off",
|
|
246
|
+
"react/jsx-first-prop-new-line": "off",
|
|
247
|
+
"react/jsx-indent": "off",
|
|
248
|
+
"react/jsx-indent-props": "off",
|
|
249
|
+
"react/jsx-max-props-per-line": "off",
|
|
250
|
+
"react/jsx-newline": "off",
|
|
251
|
+
"react/jsx-one-expression-per-line": "off",
|
|
252
|
+
"react/jsx-props-no-multi-spaces": "off",
|
|
253
|
+
"react/jsx-tag-spacing": "off",
|
|
254
|
+
"react/jsx-wrap-multilines": "off",
|
|
255
|
+
"standard/array-bracket-even-spacing": "off",
|
|
256
|
+
"standard/computed-property-even-spacing": "off",
|
|
257
|
+
"standard/object-curly-even-spacing": "off",
|
|
258
|
+
"unicorn/empty-brace-spaces": "off",
|
|
259
|
+
"unicorn/no-nested-ternary": "off",
|
|
260
|
+
"unicorn/number-literal-case": "off",
|
|
261
|
+
"vue/array-bracket-newline": "off",
|
|
262
|
+
"vue/array-bracket-spacing": "off",
|
|
263
|
+
"vue/array-element-newline": "off",
|
|
264
|
+
"vue/arrow-spacing": "off",
|
|
265
|
+
"vue/block-spacing": "off",
|
|
266
|
+
"vue/block-tag-newline": "off",
|
|
267
|
+
"vue/brace-style": "off",
|
|
268
|
+
"vue/comma-dangle": "off",
|
|
269
|
+
"vue/comma-spacing": "off",
|
|
270
|
+
"vue/comma-style": "off",
|
|
271
|
+
"vue/dot-location": "off",
|
|
272
|
+
"vue/func-call-spacing": "off",
|
|
273
|
+
"vue/html-closing-bracket-newline": "off",
|
|
274
|
+
"vue/html-closing-bracket-spacing": "off",
|
|
275
|
+
"vue/html-end-tags": "off",
|
|
276
|
+
"vue/html-indent": "off",
|
|
277
|
+
"vue/html-quotes": "off",
|
|
278
|
+
"vue/key-spacing": "off",
|
|
279
|
+
"vue/keyword-spacing": "off",
|
|
280
|
+
"vue/max-attributes-per-line": "off",
|
|
281
|
+
"vue/multiline-html-element-content-newline": "off",
|
|
282
|
+
"vue/multiline-ternary": "off",
|
|
283
|
+
"vue/mustache-interpolation-spacing": "off",
|
|
284
|
+
"vue/no-extra-parens": "off",
|
|
285
|
+
"vue/no-multi-spaces": "off",
|
|
286
|
+
"vue/no-spaces-around-equal-signs-in-attribute": "off",
|
|
287
|
+
"vue/object-curly-newline": "off",
|
|
288
|
+
"vue/object-curly-spacing": "off",
|
|
289
|
+
"vue/object-property-newline": "off",
|
|
290
|
+
"vue/operator-linebreak": "off",
|
|
291
|
+
"vue/quote-props": "off",
|
|
292
|
+
"vue/script-indent": "off",
|
|
293
|
+
"vue/singleline-html-element-content-newline": "off",
|
|
294
|
+
"vue/space-in-parens": "off",
|
|
295
|
+
"vue/space-infix-ops": "off",
|
|
296
|
+
"vue/space-unary-ops": "off",
|
|
297
|
+
"vue/template-curly-spacing": "off",
|
|
293
298
|
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
299
|
+
...(includeDeprecated && {
|
|
300
|
+
// Removed in version 0.10.0.
|
|
301
|
+
// https://eslint.org/docs/latest/rules/space-unary-word-ops
|
|
302
|
+
"space-unary-word-ops": "off",
|
|
298
303
|
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
304
|
+
// Removed in version 1.0.0.
|
|
305
|
+
// https://github.com/eslint/eslint/issues/1898
|
|
306
|
+
"generator-star": "off",
|
|
307
|
+
"no-comma-dangle": "off",
|
|
308
|
+
"no-reserved-keys": "off",
|
|
309
|
+
"no-space-before-semi": "off",
|
|
310
|
+
"no-wrap-func": "off",
|
|
311
|
+
"space-after-function-name": "off",
|
|
312
|
+
"space-before-function-parentheses": "off",
|
|
313
|
+
"space-in-brackets": "off",
|
|
309
314
|
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
315
|
+
// Removed in version 2.0.0.
|
|
316
|
+
// https://github.com/eslint/eslint/issues/5032
|
|
317
|
+
"no-arrow-condition": "off",
|
|
318
|
+
"space-after-keywords": "off",
|
|
319
|
+
"space-before-keywords": "off",
|
|
320
|
+
"space-return-throw-case": "off",
|
|
316
321
|
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
322
|
+
// Deprecated since version 3.3.0.
|
|
323
|
+
// https://eslint.org/docs/rules/no-spaced-func
|
|
324
|
+
"no-spaced-func": "off",
|
|
320
325
|
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
326
|
+
// Deprecated since version 4.0.0.
|
|
327
|
+
// https://github.com/eslint/eslint/pull/8286
|
|
328
|
+
"indent-legacy": "off",
|
|
324
329
|
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
330
|
+
// Deprecated since version 8.53.0.
|
|
331
|
+
// https://eslint.org/blog/2023/10/deprecating-formatting-rules/
|
|
332
|
+
"array-bracket-newline": "off",
|
|
333
|
+
"array-bracket-spacing": "off",
|
|
334
|
+
"array-element-newline": "off",
|
|
335
|
+
"arrow-parens": "off",
|
|
336
|
+
"arrow-spacing": "off",
|
|
337
|
+
"block-spacing": "off",
|
|
338
|
+
"brace-style": "off",
|
|
339
|
+
"comma-dangle": "off",
|
|
340
|
+
"comma-spacing": "off",
|
|
341
|
+
"comma-style": "off",
|
|
342
|
+
"computed-property-spacing": "off",
|
|
343
|
+
"dot-location": "off",
|
|
344
|
+
"eol-last": "off",
|
|
345
|
+
"func-call-spacing": "off",
|
|
346
|
+
"function-call-argument-newline": "off",
|
|
347
|
+
"function-paren-newline": "off",
|
|
348
|
+
"generator-star-spacing": "off",
|
|
349
|
+
"implicit-arrow-linebreak": "off",
|
|
350
|
+
"indent": "off",
|
|
351
|
+
"jsx-quotes": "off",
|
|
352
|
+
"key-spacing": "off",
|
|
353
|
+
"keyword-spacing": "off",
|
|
354
|
+
"linebreak-style": "off",
|
|
355
|
+
"lines-around-comment": specialRule,
|
|
356
|
+
"max-len": specialRule,
|
|
357
|
+
"max-statements-per-line": "off",
|
|
358
|
+
"multiline-ternary": "off",
|
|
359
|
+
"new-parens": "off",
|
|
360
|
+
"newline-per-chained-call": "off",
|
|
361
|
+
"no-confusing-arrow": specialRule,
|
|
362
|
+
"no-extra-parens": "off",
|
|
363
|
+
"no-extra-semi": "off",
|
|
364
|
+
"no-floating-decimal": "off",
|
|
365
|
+
"no-mixed-operators": specialRule,
|
|
366
|
+
"no-mixed-spaces-and-tabs": "off",
|
|
367
|
+
"no-multi-spaces": "off",
|
|
368
|
+
"no-multiple-empty-lines": "off",
|
|
369
|
+
"no-tabs": specialRule,
|
|
370
|
+
"no-trailing-spaces": "off",
|
|
371
|
+
"no-whitespace-before-property": "off",
|
|
372
|
+
"nonblock-statement-body-position": "off",
|
|
373
|
+
"object-curly-newline": "off",
|
|
374
|
+
"object-curly-spacing": "off",
|
|
375
|
+
"object-property-newline": "off",
|
|
376
|
+
"one-var-declaration-per-line": "off",
|
|
377
|
+
"operator-linebreak": "off",
|
|
378
|
+
"padded-blocks": "off",
|
|
379
|
+
"quote-props": "off",
|
|
380
|
+
"quotes": specialRule,
|
|
381
|
+
"rest-spread-spacing": "off",
|
|
382
|
+
"semi": "off",
|
|
383
|
+
"semi-spacing": "off",
|
|
384
|
+
"semi-style": "off",
|
|
385
|
+
"space-before-blocks": "off",
|
|
386
|
+
"space-before-function-paren": "off",
|
|
387
|
+
"space-in-parens": "off",
|
|
388
|
+
"space-infix-ops": "off",
|
|
389
|
+
"space-unary-ops": "off",
|
|
390
|
+
"switch-colon-spacing": "off",
|
|
391
|
+
"template-curly-spacing": "off",
|
|
392
|
+
"template-tag-spacing": "off",
|
|
393
|
+
"wrap-iife": "off",
|
|
394
|
+
"wrap-regex": "off",
|
|
395
|
+
"yield-star-spacing": "off",
|
|
391
396
|
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
},
|
|
397
|
+
// Deprecated since version 7.0.0.
|
|
398
|
+
// https://github.com/yannickcr/eslint-plugin-react/blob/master/CHANGELOG.md#700---2017-05-06
|
|
399
|
+
"react/jsx-space-before-closing": "off",
|
|
400
|
+
}),
|
|
397
401
|
};
|
package/package.json
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-prettier",
|
|
3
|
-
"version": "10.0.
|
|
4
|
-
"
|
|
5
|
-
"author": "Simon Lydell",
|
|
3
|
+
"version": "10.0.3",
|
|
4
|
+
"type": "commonjs",
|
|
6
5
|
"description": "Turns off all rules that are unnecessary or might conflict with Prettier.",
|
|
7
6
|
"repository": "prettier/eslint-config-prettier",
|
|
7
|
+
"author": "Simon Lydell",
|
|
8
|
+
"license": "MIT",
|
|
8
9
|
"bin": "build/bin/cli.js",
|
|
9
10
|
"main": "build/index.js",
|
|
11
|
+
"types": "build/index.d.ts",
|
|
10
12
|
"files": [
|
|
11
13
|
"build"
|
|
12
14
|
],
|