prettier 3.0.0-alpha.9-for-vscode → 3.0.1

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.
Files changed (46) hide show
  1. package/LICENSE +66 -149
  2. package/README.md +2 -2
  3. package/bin/prettier.cjs +0 -0
  4. package/doc.d.ts +7 -7
  5. package/doc.js +35 -86
  6. package/doc.mjs +48 -94
  7. package/index.cjs +440 -20576
  8. package/index.d.ts +55 -55
  9. package/index.mjs +7272 -6575
  10. package/internal/cli.mjs +52 -45
  11. package/internal/internal.mjs +171 -77
  12. package/package.json +4 -7
  13. package/plugins/acorn.js +12 -12
  14. package/plugins/acorn.mjs +12 -12
  15. package/plugins/angular.d.ts +1 -1
  16. package/plugins/angular.js +2 -2
  17. package/plugins/angular.mjs +2 -2
  18. package/plugins/babel.js +12 -12
  19. package/plugins/babel.mjs +12 -12
  20. package/plugins/estree.d.ts +1 -0
  21. package/plugins/estree.js +30 -30
  22. package/plugins/estree.mjs +30 -30
  23. package/plugins/flow.js +17 -17
  24. package/plugins/flow.mjs +17 -17
  25. package/plugins/glimmer.js +22 -22
  26. package/plugins/glimmer.mjs +22 -22
  27. package/plugins/graphql.js +26 -15
  28. package/plugins/graphql.mjs +26 -15
  29. package/plugins/html.d.ts +2 -2
  30. package/plugins/html.js +16 -16
  31. package/plugins/html.mjs +16 -16
  32. package/plugins/markdown.d.ts +1 -1
  33. package/plugins/markdown.js +49 -49
  34. package/plugins/markdown.mjs +49 -49
  35. package/plugins/meriyah.js +5 -5
  36. package/plugins/meriyah.mjs +5 -5
  37. package/plugins/postcss.js +46 -46
  38. package/plugins/postcss.mjs +46 -46
  39. package/plugins/typescript.js +20 -22
  40. package/plugins/typescript.mjs +20 -22
  41. package/plugins/yaml.js +104 -104
  42. package/plugins/yaml.mjs +104 -104
  43. package/standalone.d.ts +1 -1
  44. package/standalone.js +31 -30
  45. package/standalone.mjs +31 -30
  46. package/internal/internal.cjs +0 -6430
package/LICENSE CHANGED
@@ -13,11 +13,11 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
13
13
  ## Licenses of bundled dependencies
14
14
 
15
15
  The published Prettier artifact additionally contains code with the following licenses:
16
- MIT, ISC, BSD-2-Clause, BSD-3-Clause, 0BSD, Apache-2.0
16
+ MIT, ISC, BSD-2-Clause, BSD-3-Clause, Apache-2.0
17
17
 
18
18
  ## Bundled dependencies
19
19
 
20
- ### @angular/compiler@v15.2.8
20
+ ### @angular/compiler@v16.1.7
21
21
 
22
22
  > Angular - the compiler library
23
23
 
@@ -27,7 +27,7 @@ Author: angular
27
27
 
28
28
  ----------------------------------------
29
29
 
30
- ### @babel/code-frame@v7.21.4
30
+ ### @babel/code-frame@v7.22.5
31
31
 
32
32
  > Generate errors that contain a code frame that point to source locations.
33
33
 
@@ -61,7 +61,7 @@ Author: The Babel Team (https://babel.dev/team)
61
61
 
62
62
  ----------------------------------------
63
63
 
64
- ### @babel/helper-validator-identifier@v7.19.1
64
+ ### @babel/helper-validator-identifier@v7.22.5
65
65
 
66
66
  > Validate identifier/keywords name
67
67
 
@@ -94,7 +94,7 @@ Author: The Babel Team (https://babel.dev/team)
94
94
 
95
95
  ----------------------------------------
96
96
 
97
- ### @babel/highlight@v7.18.6
97
+ ### @babel/highlight@v7.22.5
98
98
 
99
99
  > Syntax highlight JavaScript strings for output in terminals.
100
100
 
@@ -128,7 +128,7 @@ Author: The Babel Team (https://babel.dev/team)
128
128
 
129
129
  ----------------------------------------
130
130
 
131
- ### @babel/parser@v7.21.4
131
+ ### @babel/parser@v7.22.7
132
132
 
133
133
  > A JavaScript parser
134
134
 
@@ -366,7 +366,7 @@ License: MIT
366
366
 
367
367
  ----------------------------------------
368
368
 
369
- ### @prettier/is-es5-identifier-name@v0.1.0
369
+ ### @prettier/is-es5-identifier-name@v0.2.0
370
370
 
371
371
  > Check if provided string is an `IdentifierName` as specified in ECMA262 edition 5.1 section 7.6.
372
372
 
@@ -429,7 +429,7 @@ Author: Alex Bell <alex@bellandwhistle.net>
429
429
 
430
430
  ----------------------------------------
431
431
 
432
- ### @typescript-eslint/types@v5.58.0
432
+ ### @typescript-eslint/types@v6.2.0
433
433
 
434
434
  > Types for the TypeScript-ESTree AST spec
435
435
 
@@ -460,7 +460,7 @@ Repository: <https://github.com/typescript-eslint/typescript-eslint.git>
460
460
 
461
461
  ----------------------------------------
462
462
 
463
- ### @typescript-eslint/typescript-estree@v5.58.0
463
+ ### @typescript-eslint/typescript-estree@v6.2.0
464
464
 
465
465
  > A parser that converts TypeScript source code into an ESTree compatible form
466
466
 
@@ -496,7 +496,7 @@ Repository: <https://github.com/typescript-eslint/typescript-eslint.git>
496
496
 
497
497
  ----------------------------------------
498
498
 
499
- ### acorn@v8.8.2
499
+ ### acorn@v8.10.0
500
500
 
501
501
  > ECMAScript parser
502
502
 
@@ -558,7 +558,7 @@ Repository: <https://github.com/acornjs/acorn-jsx>
558
558
 
559
559
  ----------------------------------------
560
560
 
561
- ### angular-estree-parser@v6.2.0
561
+ ### angular-estree-parser@v7.0.0
562
562
 
563
563
  > A parser that converts Angular source code into an ESTree-compatible form
564
564
 
@@ -869,7 +869,7 @@ License: MIT
869
869
 
870
870
  ----------------------------------------
871
871
 
872
- ### chalk@v5.2.0
872
+ ### chalk@v5.3.0
873
873
 
874
874
  > Terminal string styling done right
875
875
 
@@ -1206,15 +1206,16 @@ Author: James Halliday <mail@substack.net> (http://substack.net)
1206
1206
 
1207
1207
  ----------------------------------------
1208
1208
 
1209
- ### cosmiconfig@v8.0.0
1209
+ ### cosmiconfig@v8.2.0
1210
1210
 
1211
1211
  > Find and load configuration from a package.json property, rc file, or CommonJS module
1212
1212
 
1213
1213
  License: MIT
1214
- Homepage: <https://github.com/davidtheclark/cosmiconfig#readme>
1215
- Repository: <git+https://github.com/davidtheclark/cosmiconfig.git>
1216
- Author: David Clark <david.dave.clark@gmail.com>
1214
+ Homepage: <https://github.com/cosmiconfig/cosmiconfig#readme>
1215
+ Repository: <git+https://github.com/cosmiconfig/cosmiconfig.git>
1216
+ Author: Daniel Fischer <daniel@d-fischer.dev>
1217
1217
  Contributors:
1218
+ - David Clark <david.dave.clark@gmail.com>
1218
1219
  - Bogdan Chadkin <trysound@yandex.ru>
1219
1220
  - Suhas Karanth <sudo.suhas@gmail.com>
1220
1221
 
@@ -1278,16 +1279,17 @@ Contributors:
1278
1279
 
1279
1280
  ----------------------------------------
1280
1281
 
1281
- ### defaults@v1.0.3
1282
+ ### defaults@v1.0.4
1282
1283
 
1283
1284
  > merge single level defaults over a config object
1284
1285
 
1285
1286
  License: MIT
1286
- Repository: <git://github.com/tmpvar/defaults.git>
1287
+ Repository: <git://github.com/sindresorhus/node-defaults.git>
1287
1288
  Author: Elijah Insua <tmpvar@gmail.com>
1288
1289
 
1289
1290
  > The MIT License (MIT)
1290
1291
  >
1292
+ > Copyright (c) 2022 Sindre Sorhus
1291
1293
  > Copyright (c) 2015 Elijah Insua
1292
1294
  >
1293
1295
  > Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1351,6 +1353,15 @@ Repository: <git://github.com/kpdecker/jsdiff.git>
1351
1353
 
1352
1354
  ----------------------------------------
1353
1355
 
1356
+ ### eastasianwidth@v0.2.0
1357
+
1358
+ > Get East Asian Width from a character.
1359
+
1360
+ License: MIT
1361
+ Author: Masaki Komagata
1362
+
1363
+ ----------------------------------------
1364
+
1354
1365
  ### editorconfig@v0.15.3
1355
1366
 
1356
1367
  > EditorConfig File Locator and Interpreter for Node.js
@@ -1396,7 +1407,7 @@ Author: Joseph Frazier <1212jtraceur@gmail.com>
1396
1407
 
1397
1408
  ----------------------------------------
1398
1409
 
1399
- ### emoji-regex@v9.2.2
1410
+ ### emoji-regex@v10.2.1
1400
1411
 
1401
1412
  > A regular expression to match all Emoji-only symbols as per the Unicode Standard.
1402
1413
 
@@ -1508,7 +1519,7 @@ Author: Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
1508
1519
 
1509
1520
  ----------------------------------------
1510
1521
 
1511
- ### espree@v9.5.1
1522
+ ### espree@v9.6.1
1512
1523
 
1513
1524
  > An Esprima-compatible JavaScript parser built on Acorn
1514
1525
 
@@ -1643,7 +1654,7 @@ Author: James Halliday <mail@substack.net> (http://substack.net)
1643
1654
 
1644
1655
  ----------------------------------------
1645
1656
 
1646
- ### fastq@v1.13.0
1657
+ ### fastq@v1.15.0
1647
1658
 
1648
1659
  > Fast, in memory work queue
1649
1660
 
@@ -1904,7 +1915,7 @@ Contributors:
1904
1915
 
1905
1916
  ----------------------------------------
1906
1917
 
1907
- ### flow-parser@v0.204.0
1918
+ ### flow-parser@v0.213.1
1908
1919
 
1909
1920
  > JavaScript parser written in OCaml. Produces ESTree AST
1910
1921
 
@@ -2048,7 +2059,7 @@ Contributors:
2048
2059
 
2049
2060
  ----------------------------------------
2050
2061
 
2051
- ### graphql@v16.6.0
2062
+ ### graphql@v16.7.1
2052
2063
 
2053
2064
  > A Query Language and Runtime which can target any service.
2054
2065
 
@@ -2150,7 +2161,7 @@ Author: Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
2150
2161
 
2151
2162
  ----------------------------------------
2152
2163
 
2153
- ### import-meta-resolve@v2.2.2
2164
+ ### import-meta-resolve@v3.0.0
2154
2165
 
2155
2166
  > Resolve things like Node.js — ponyfill for `import.meta.resolve`
2156
2167
 
@@ -2519,25 +2530,6 @@ Author: Jon Schlinkert (https://github.com/jonschlinkert)
2519
2530
 
2520
2531
  ----------------------------------------
2521
2532
 
2522
- ### is-fullwidth-code-point@v4.0.0
2523
-
2524
- > Check if the character represented by a given Unicode code point is fullwidth
2525
-
2526
- License: MIT
2527
- Author: Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
2528
-
2529
- > MIT License
2530
- >
2531
- > Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
2532
- >
2533
- > Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
2534
- >
2535
- > The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
2536
- >
2537
- > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2538
-
2539
- ----------------------------------------
2540
-
2541
2533
  ### is-glob@v4.0.3
2542
2534
 
2543
2535
  > Returns `true` if the given string looks like a glob pattern or an extglob pattern. This makes it easy to create code that only uses external modules like node-glob when necessary, resulting in much faster code execution and initialization time, and a better user experience.
@@ -2900,37 +2892,6 @@ Contributors:
2900
2892
 
2901
2893
  ----------------------------------------
2902
2894
 
2903
- ### leven@v2.1.0
2904
-
2905
- > Measure the difference between two strings using the fastest JS implementation of the Levenshtein distance algorithm
2906
-
2907
- License: MIT
2908
- Author: Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
2909
-
2910
- > The MIT License (MIT)
2911
- >
2912
- > Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
2913
- >
2914
- > Permission is hereby granted, free of charge, to any person obtaining a copy
2915
- > of this software and associated documentation files (the "Software"), to deal
2916
- > in the Software without restriction, including without limitation the rights
2917
- > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
2918
- > copies of the Software, and to permit persons to whom the Software is
2919
- > furnished to do so, subject to the following conditions:
2920
- >
2921
- > The above copyright notice and this permission notice shall be included in
2922
- > all copies or substantial portions of the Software.
2923
- >
2924
- > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
2925
- > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
2926
- > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
2927
- > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
2928
- > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2929
- > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2930
- > THE SOFTWARE.
2931
-
2932
- ----------------------------------------
2933
-
2934
2895
  ### leven@v4.0.0
2935
2896
 
2936
2897
  > Measure the difference between two strings using the Levenshtein distance algorithm
@@ -3016,7 +2977,7 @@ Author: Brian Donovan <brian@donovans.cc>
3016
2977
 
3017
2978
  ----------------------------------------
3018
2979
 
3019
- ### locate-path@v7.1.1
2980
+ ### locate-path@v7.2.0
3020
2981
 
3021
2982
  > Get the first path that exists on disk of multiple paths
3022
2983
 
@@ -3164,7 +3125,7 @@ Repository: <git@github.com:teambition/merge2.git>
3164
3125
 
3165
3126
  ----------------------------------------
3166
3127
 
3167
- ### meriyah@v4.3.5
3128
+ ### meriyah@v4.3.7
3168
3129
 
3169
3130
  > A 100% compliant, self-hosted javascript parser with high focus on both performance and stability
3170
3131
 
@@ -3695,7 +3656,7 @@ Author: typicode
3695
3656
 
3696
3657
  ----------------------------------------
3697
3658
 
3698
- ### postcss@v8.4.23
3659
+ ### postcss@v8.4.27
3699
3660
 
3700
3661
  > Tool for transforming styles with JS plugins
3701
3662
 
@@ -4152,7 +4113,7 @@ Author: Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
4152
4113
 
4153
4114
  ----------------------------------------
4154
4115
 
4155
- ### semver@v7.3.8
4116
+ ### semver@v7.5.4
4156
4117
 
4157
4118
  > The semantic version parser used by npm.
4158
4119
 
@@ -4297,26 +4258,7 @@ Contributors:
4297
4258
 
4298
4259
  ----------------------------------------
4299
4260
 
4300
- ### string-width@v5.0.1
4301
-
4302
- > Get the visual width of a string - the number of columns required to display it
4303
-
4304
- License: MIT
4305
- Author: Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
4306
-
4307
- > MIT License
4308
- >
4309
- > Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
4310
- >
4311
- > Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4312
- >
4313
- > The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
4314
- >
4315
- > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
4316
-
4317
- ----------------------------------------
4318
-
4319
- ### strip-ansi@v7.0.1
4261
+ ### strip-ansi@v7.1.0
4320
4262
 
4321
4263
  > Strip ANSI escape codes from a string
4322
4264
 
@@ -4488,63 +4430,38 @@ Contributors:
4488
4430
 
4489
4431
  ----------------------------------------
4490
4432
 
4491
- ### tslib@v1.14.1
4492
-
4493
- > Runtime library for TypeScript helper functions
4494
-
4495
- License: 0BSD
4496
- Homepage: <https://www.typescriptlang.org/>
4497
- Repository: <https://github.com/Microsoft/tslib.git>
4498
- Author: Microsoft Corp.
4499
-
4500
- > Copyright (c) Microsoft Corporation.
4501
- >
4502
- > Permission to use, copy, modify, and/or distribute this software for any
4503
- > purpose with or without fee is hereby granted.
4504
- >
4505
- > THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
4506
- > REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
4507
- > AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
4508
- > INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
4509
- > LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
4510
- > OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
4511
- > PERFORMANCE OF THIS SOFTWARE.
4512
-
4513
- ----------------------------------------
4514
-
4515
- ### tsutils@v3.21.0
4433
+ ### ts-api-utils@v1.0.1
4516
4434
 
4517
- > utilities for working with typescript's AST
4435
+ > Utility functions for working with TypeScript's API. Successor to the wonderful tsutils.
4518
4436
 
4519
4437
  License: MIT
4520
- Repository: <https://github.com/ajafff/tsutils>
4521
- Author: Klaus Meinhardt
4438
+ Repository: <https://github.com/JoshuaKGoldberg/ts-api-utils>
4439
+ Author: Josh Goldberg <npm@joshuakgoldberg.com>
4522
4440
 
4523
- > The MIT License (MIT)
4524
- >
4525
- > Copyright (c) 2017 Klaus Meinhardt
4526
- >
4527
- > Permission is hereby granted, free of charge, to any person obtaining a copy
4528
- > of this software and associated documentation files (the "Software"), to deal
4529
- > in the Software without restriction, including without limitation the rights
4530
- > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
4531
- > copies of the Software, and to permit persons to whom the Software is
4532
- > furnished to do so, subject to the following conditions:
4533
- >
4534
- > The above copyright notice and this permission notice shall be included in all
4535
- > copies or substantial portions of the Software.
4536
- >
4537
- > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
4538
- > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
4539
- > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
4540
- > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
4541
- > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
4542
- > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
4543
- > SOFTWARE.
4441
+ > # MIT License
4442
+ >
4443
+ > Permission is hereby granted, free of charge, to any person obtaining
4444
+ > a copy of this software and associated documentation files (the
4445
+ > 'Software'), to deal in the Software without restriction, including
4446
+ > without limitation the rights to use, copy, modify, merge, publish,
4447
+ > distribute, sublicense, and/or sell copies of the Software, and to
4448
+ > permit persons to whom the Software is furnished to do so, subject to
4449
+ > the following conditions:
4450
+ >
4451
+ > The above copyright notice and this permission notice shall be
4452
+ > included in all copies or substantial portions of the Software.
4453
+ >
4454
+ > THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
4455
+ > EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
4456
+ > MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
4457
+ > IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
4458
+ > CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
4459
+ > TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
4460
+ > SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
4544
4461
 
4545
4462
  ----------------------------------------
4546
4463
 
4547
- ### typescript@v5.0.4
4464
+ ### typescript@v5.1.6
4548
4465
 
4549
4466
  > TypeScript is a language for application scale JavaScript development
4550
4467
 
@@ -4996,7 +4913,7 @@ Contributors:
4996
4913
 
4997
4914
  ----------------------------------------
4998
4915
 
4999
- ### vnopts@v1.0.2
4916
+ ### vnopts@v2.0.0
5000
4917
 
5001
4918
  > validate and normalize options
5002
4919
 
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ![Prettier Banner](https://unpkg.com/prettier-logo@1.0.3/images/prettier-banner-light.svg)
1
+ [![Prettier Banner](https://unpkg.com/prettier-logo@1.0.3/images/prettier-banner-light.svg)](https://prettier.io)
2
2
 
3
3
  <h2 align="center">Opinionated Code Formatter</h2>
4
4
 
@@ -76,7 +76,7 @@ foo(
76
76
  reallyLongArg(),
77
77
  omgSoManyParameters(),
78
78
  IShouldRefactorThis(),
79
- isThereSeriouslyAnotherOne()
79
+ isThereSeriouslyAnotherOne(),
80
80
  );
81
81
  ```
82
82
 
package/bin/prettier.cjs CHANGED
File without changes
package/doc.d.ts CHANGED
@@ -137,7 +137,7 @@ export namespace builders {
137
137
  function ifBreak(
138
138
  ifBreak: Doc,
139
139
  noBreak?: Doc,
140
- options?: { groupId?: symbol | undefined }
140
+ options?: { groupId?: symbol | undefined },
141
141
  ): IfBreak;
142
142
 
143
143
  /** @see [indent](https://github.com/prettier/prettier/blob/main/commands.md#indent) */
@@ -146,7 +146,7 @@ export namespace builders {
146
146
  /** @see [indentIfBreak](https://github.com/prettier/prettier/blob/main/commands.md#indentifbreak) */
147
147
  function indentIfBreak(
148
148
  doc: Doc,
149
- opts: { groupId: symbol; negate?: boolean | undefined }
149
+ opts: { groupId: symbol; negate?: boolean | undefined },
150
150
  ): IndentIfBreak;
151
151
 
152
152
  /** @see [join](https://github.com/prettier/prettier/blob/main/commands.md#join) */
@@ -186,7 +186,7 @@ export namespace builders {
186
186
  export namespace printer {
187
187
  function printDocToString(
188
188
  doc: builders.Doc,
189
- options: Options
189
+ options: Options,
190
190
  ): {
191
191
  formatted: string;
192
192
  cursorNodeStart?: number | undefined;
@@ -219,22 +219,22 @@ export namespace utils {
219
219
  doc: builders.Doc,
220
220
  onEnter?: (doc: builders.Doc) => void | boolean,
221
221
  onExit?: (doc: builders.Doc) => void,
222
- shouldTraverseConditionalGroups?: boolean
222
+ shouldTraverseConditionalGroups?: boolean,
223
223
  ): void;
224
224
  function findInDoc<T = builders.Doc>(
225
225
  doc: builders.Doc,
226
226
  callback: (doc: builders.Doc) => T,
227
- defaultValue: T
227
+ defaultValue: T,
228
228
  ): T;
229
229
  function mapDoc<T = builders.Doc>(
230
230
  doc: builders.Doc,
231
- callback: (doc: builders.Doc) => T
231
+ callback: (doc: builders.Doc) => T,
232
232
  ): T;
233
233
  function removeLines(doc: builders.Doc): builders.Doc;
234
234
  function stripTrailingHardline(doc: builders.Doc): builders.Doc;
235
235
  function replaceEndOfLine(
236
236
  doc: builders.Doc,
237
- replacement?: builders.Doc
237
+ replacement?: builders.Doc,
238
238
  ): builders.Doc;
239
239
  function canBreak(doc: builders.Doc): boolean;
240
240
  }