eslint-config-prettier 10.0.2 → 10.1.0

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