prettier 3.0.0-alpha.0 → 3.0.0-alpha.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.
- package/LICENSE +49 -65
- package/{bin-prettier.js → bin/prettier.cjs} +2 -2
- package/doc.js +438 -221
- package/doc.mjs +1490 -0
- package/index.cjs +532 -0
- package/{index.js → index.mjs} +4335 -5702
- package/{cli.mjs → internal/cli.mjs} +148 -92
- package/{third-party.js → internal/third-party.mjs} +123 -100
- package/package.json +139 -6
- package/plugins/acorn-and-espree.js +13 -0
- package/plugins/acorn-and-espree.mjs +13 -0
- package/{parser-angular.js → plugins/angular.js} +0 -0
- package/{esm/parser-angular.mjs → plugins/angular.mjs} +1 -1
- package/plugins/babel.js +16 -0
- package/plugins/babel.mjs +16 -0
- package/plugins/flow.js +21 -0
- package/plugins/flow.mjs +21 -0
- package/{parser-glimmer.js → plugins/glimmer.js} +9 -9
- package/{esm/parser-glimmer.mjs → plugins/glimmer.mjs} +10 -10
- package/plugins/graphql.js +9 -0
- package/plugins/graphql.mjs +9 -0
- package/plugins/html.js +29 -0
- package/plugins/html.mjs +29 -0
- package/plugins/markdown.js +39 -0
- package/plugins/markdown.mjs +39 -0
- package/plugins/meriyah.js +6 -0
- package/plugins/meriyah.mjs +6 -0
- package/plugins/postcss.js +50 -0
- package/plugins/postcss.mjs +50 -0
- package/plugins/typescript.js +242 -0
- package/plugins/typescript.mjs +242 -0
- package/{parser-yaml.js → plugins/yaml.js} +1 -1
- package/{esm/parser-yaml.mjs → plugins/yaml.mjs} +1 -1
- package/standalone.js +69 -87
- package/standalone.mjs +106 -0
- package/esm/parser-babel.mjs +0 -18
- package/esm/parser-espree.mjs +0 -15
- package/esm/parser-flow.mjs +0 -23
- package/esm/parser-graphql.mjs +0 -9
- package/esm/parser-html.mjs +0 -28
- package/esm/parser-markdown.mjs +0 -60
- package/esm/parser-meriyah.mjs +0 -8
- package/esm/parser-postcss.mjs +0 -53
- package/esm/parser-typescript.mjs +0 -269
- package/esm/standalone.mjs +0 -124
- package/parser-babel.js +0 -18
- package/parser-espree.js +0 -15
- package/parser-flow.js +0 -23
- package/parser-graphql.js +0 -9
- package/parser-html.js +0 -28
- package/parser-markdown.js +0 -60
- package/parser-meriyah.js +0 -8
- package/parser-postcss.js +0 -53
- package/parser-typescript.js +0 -269
package/LICENSE
CHANGED
|
@@ -56,7 +56,7 @@ Repository: <https://github.com/babel/babel.git>
|
|
|
56
56
|
|
|
57
57
|
----------------------------------------
|
|
58
58
|
|
|
59
|
-
### @babel/helper-validator-identifier@v7.
|
|
59
|
+
### @babel/helper-validator-identifier@v7.19.1
|
|
60
60
|
|
|
61
61
|
License: MIT
|
|
62
62
|
By: The Babel Team
|
|
@@ -118,7 +118,7 @@ Repository: <https://github.com/babel/babel.git>
|
|
|
118
118
|
|
|
119
119
|
----------------------------------------
|
|
120
120
|
|
|
121
|
-
### @babel/parser@v7.
|
|
121
|
+
### @babel/parser@v7.19.3
|
|
122
122
|
|
|
123
123
|
License: MIT
|
|
124
124
|
By: The Babel Team
|
|
@@ -337,7 +337,36 @@ License: MIT
|
|
|
337
337
|
|
|
338
338
|
----------------------------------------
|
|
339
339
|
|
|
340
|
-
### @
|
|
340
|
+
### @prettier/parse-srcset@v2.0.1
|
|
341
|
+
|
|
342
|
+
License: MIT
|
|
343
|
+
By: Alex Bell
|
|
344
|
+
|
|
345
|
+
> The MIT License (MIT)
|
|
346
|
+
>
|
|
347
|
+
> Copyright (c) 2014 Alex Bell
|
|
348
|
+
>
|
|
349
|
+
> Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
350
|
+
> of this software and associated documentation files (the "Software"), to deal
|
|
351
|
+
> in the Software without restriction, including without limitation the rights
|
|
352
|
+
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
353
|
+
> copies of the Software, and to permit persons to whom the Software is
|
|
354
|
+
> furnished to do so, subject to the following conditions:
|
|
355
|
+
>
|
|
356
|
+
> The above copyright notice and this permission notice shall be included in all
|
|
357
|
+
> copies or substantial portions of the Software.
|
|
358
|
+
>
|
|
359
|
+
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
360
|
+
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
361
|
+
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
362
|
+
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
363
|
+
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
364
|
+
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
365
|
+
> SOFTWARE.
|
|
366
|
+
|
|
367
|
+
----------------------------------------
|
|
368
|
+
|
|
369
|
+
### @typescript-eslint/types@v5.38.1
|
|
341
370
|
|
|
342
371
|
License: MIT
|
|
343
372
|
Repository: <https://github.com/typescript-eslint/typescript-eslint.git>
|
|
@@ -366,7 +395,7 @@ Repository: <https://github.com/typescript-eslint/typescript-eslint.git>
|
|
|
366
395
|
|
|
367
396
|
----------------------------------------
|
|
368
397
|
|
|
369
|
-
### @typescript-eslint/typescript-estree@v5.
|
|
398
|
+
### @typescript-eslint/typescript-estree@v5.38.1
|
|
370
399
|
|
|
371
400
|
License: BSD-2-Clause
|
|
372
401
|
Repository: <https://github.com/typescript-eslint/typescript-eslint.git>
|
|
@@ -400,7 +429,7 @@ Repository: <https://github.com/typescript-eslint/typescript-eslint.git>
|
|
|
400
429
|
|
|
401
430
|
----------------------------------------
|
|
402
431
|
|
|
403
|
-
### @typescript-eslint/visitor-keys@v5.
|
|
432
|
+
### @typescript-eslint/visitor-keys@v5.38.1
|
|
404
433
|
|
|
405
434
|
License: MIT
|
|
406
435
|
Repository: <https://github.com/typescript-eslint/typescript-eslint.git>
|
|
@@ -514,7 +543,7 @@ By: Ika
|
|
|
514
543
|
|
|
515
544
|
----------------------------------------
|
|
516
545
|
|
|
517
|
-
### angular-html-parser@
|
|
546
|
+
### angular-html-parser@v2.0.0
|
|
518
547
|
|
|
519
548
|
License: MIT
|
|
520
549
|
By: Ika
|
|
@@ -865,7 +894,7 @@ By: Titus Wormer
|
|
|
865
894
|
|
|
866
895
|
----------------------------------------
|
|
867
896
|
|
|
868
|
-
### ci-info@v3.
|
|
897
|
+
### ci-info@v3.4.0
|
|
869
898
|
|
|
870
899
|
License: MIT
|
|
871
900
|
By: Thomas Watson Steen
|
|
@@ -1145,23 +1174,6 @@ Repository: <git://github.com/tmpvar/defaults.git>
|
|
|
1145
1174
|
|
|
1146
1175
|
----------------------------------------
|
|
1147
1176
|
|
|
1148
|
-
### detect-newline@v3.1.0
|
|
1149
|
-
|
|
1150
|
-
License: MIT
|
|
1151
|
-
By: Sindre Sorhus
|
|
1152
|
-
|
|
1153
|
-
> MIT License
|
|
1154
|
-
>
|
|
1155
|
-
> Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
|
|
1156
|
-
>
|
|
1157
|
-
> 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:
|
|
1158
|
-
>
|
|
1159
|
-
> The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
1160
|
-
>
|
|
1161
|
-
> 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.
|
|
1162
|
-
|
|
1163
|
-
----------------------------------------
|
|
1164
|
-
|
|
1165
1177
|
### diff@v5.1.0
|
|
1166
1178
|
|
|
1167
1179
|
License: BSD-3-Clause
|
|
@@ -1549,7 +1561,7 @@ By: Toru Nagashima
|
|
|
1549
1561
|
|
|
1550
1562
|
----------------------------------------
|
|
1551
1563
|
|
|
1552
|
-
### espree@v9.
|
|
1564
|
+
### espree@v9.4.0
|
|
1553
1565
|
|
|
1554
1566
|
License: BSD-2-Clause
|
|
1555
1567
|
By: Nicholas C. Zakas
|
|
@@ -1640,7 +1652,7 @@ Repository: <https://github.com/justmoon/node-extend.git>
|
|
|
1640
1652
|
|
|
1641
1653
|
----------------------------------------
|
|
1642
1654
|
|
|
1643
|
-
### fast-glob@v3.2.
|
|
1655
|
+
### fast-glob@v3.2.12
|
|
1644
1656
|
|
|
1645
1657
|
License: MIT
|
|
1646
1658
|
By: Denis Malinochkin
|
|
@@ -1873,7 +1885,7 @@ By: Roy Riojas
|
|
|
1873
1885
|
|
|
1874
1886
|
----------------------------------------
|
|
1875
1887
|
|
|
1876
|
-
### flatted@v3.2.
|
|
1888
|
+
### flatted@v3.2.7
|
|
1877
1889
|
|
|
1878
1890
|
License: ISC
|
|
1879
1891
|
By: Andrea Giammarchi
|
|
@@ -1927,7 +1939,7 @@ Repository: <git+https://github.com/mk-pmb/flatten-js.git>
|
|
|
1927
1939
|
|
|
1928
1940
|
----------------------------------------
|
|
1929
1941
|
|
|
1930
|
-
### flow-parser@v0.
|
|
1942
|
+
### flow-parser@v0.188.1
|
|
1931
1943
|
|
|
1932
1944
|
License: MIT
|
|
1933
1945
|
By: Flow Team
|
|
@@ -2057,7 +2069,7 @@ By: Gulp Team
|
|
|
2057
2069
|
|
|
2058
2070
|
----------------------------------------
|
|
2059
2071
|
|
|
2060
|
-
### graphql@v16.
|
|
2072
|
+
### graphql@v16.6.0
|
|
2061
2073
|
|
|
2062
2074
|
License: MIT
|
|
2063
2075
|
Repository: <https://github.com/graphql/graphql-js.git>
|
|
@@ -2760,7 +2772,7 @@ By: Titus Wormer
|
|
|
2760
2772
|
|
|
2761
2773
|
----------------------------------------
|
|
2762
2774
|
|
|
2763
|
-
### jest-docblock@
|
|
2775
|
+
### jest-docblock@v29.0.0
|
|
2764
2776
|
|
|
2765
2777
|
License: MIT
|
|
2766
2778
|
Repository: <https://github.com/facebook/jest.git>
|
|
@@ -3162,7 +3174,7 @@ Repository: <git@github.com:teambition/merge2.git>
|
|
|
3162
3174
|
|
|
3163
3175
|
----------------------------------------
|
|
3164
3176
|
|
|
3165
|
-
### meriyah@v4.3.
|
|
3177
|
+
### meriyah@v4.3.2
|
|
3166
3178
|
|
|
3167
3179
|
License: ISC
|
|
3168
3180
|
By: Kenny F.
|
|
@@ -3513,36 +3525,6 @@ By: Sindre Sorhus
|
|
|
3513
3525
|
|
|
3514
3526
|
----------------------------------------
|
|
3515
3527
|
|
|
3516
|
-
### parse-srcset@v1.0.2
|
|
3517
|
-
|
|
3518
|
-
License: MIT
|
|
3519
|
-
By: Alex Bell
|
|
3520
|
-
Repository: <git+https://github.com/albell/parse-srcset.git>
|
|
3521
|
-
|
|
3522
|
-
> The MIT License (MIT)
|
|
3523
|
-
>
|
|
3524
|
-
> Copyright (c) 2014 Alex Bell
|
|
3525
|
-
>
|
|
3526
|
-
> Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
3527
|
-
> of this software and associated documentation files (the "Software"), to deal
|
|
3528
|
-
> in the Software without restriction, including without limitation the rights
|
|
3529
|
-
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
3530
|
-
> copies of the Software, and to permit persons to whom the Software is
|
|
3531
|
-
> furnished to do so, subject to the following conditions:
|
|
3532
|
-
>
|
|
3533
|
-
> The above copyright notice and this permission notice shall be included in all
|
|
3534
|
-
> copies or substantial portions of the Software.
|
|
3535
|
-
>
|
|
3536
|
-
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
3537
|
-
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
3538
|
-
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
3539
|
-
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
3540
|
-
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
3541
|
-
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
3542
|
-
> SOFTWARE.
|
|
3543
|
-
|
|
3544
|
-
----------------------------------------
|
|
3545
|
-
|
|
3546
3528
|
### path-exists@v4.0.0
|
|
3547
3529
|
|
|
3548
3530
|
License: MIT
|
|
@@ -3705,7 +3687,7 @@ Repository: <git+https://github.com/typicode/please-upgrade-node.git>
|
|
|
3705
3687
|
|
|
3706
3688
|
----------------------------------------
|
|
3707
3689
|
|
|
3708
|
-
### postcss@v8.4.
|
|
3690
|
+
### postcss@v8.4.17
|
|
3709
3691
|
|
|
3710
3692
|
License: MIT
|
|
3711
3693
|
By: Andrey Sitnik
|
|
@@ -3773,7 +3755,7 @@ Repository: <git+https://github.com/dryoma/postcss-media-query-parser.git>
|
|
|
3773
3755
|
|
|
3774
3756
|
----------------------------------------
|
|
3775
3757
|
|
|
3776
|
-
### postcss-scss@v4.0.
|
|
3758
|
+
### postcss-scss@v4.0.5
|
|
3777
3759
|
|
|
3778
3760
|
License: MIT
|
|
3779
3761
|
By: Andrey Sitnik
|
|
@@ -4374,9 +4356,11 @@ By: Jon Schlinkert
|
|
|
4374
4356
|
|
|
4375
4357
|
----------------------------------------
|
|
4376
4358
|
|
|
4377
|
-
### trim@
|
|
4359
|
+
### trim@v1.0.1
|
|
4378
4360
|
|
|
4361
|
+
License: MIT
|
|
4379
4362
|
By: TJ Holowaychuk
|
|
4363
|
+
Repository: <https://github.com/Trott/trim.git>
|
|
4380
4364
|
|
|
4381
4365
|
----------------------------------------
|
|
4382
4366
|
|
|
@@ -4490,7 +4474,7 @@ Repository: <https://github.com/ajafff/tsutils>
|
|
|
4490
4474
|
|
|
4491
4475
|
----------------------------------------
|
|
4492
4476
|
|
|
4493
|
-
### typescript@v4.
|
|
4477
|
+
### typescript@v4.8.4
|
|
4494
4478
|
|
|
4495
4479
|
License: Apache-2.0
|
|
4496
4480
|
By: Microsoft Corp.
|
|
@@ -58,10 +58,10 @@ var require_please_upgrade_node = __commonJS({
|
|
|
58
58
|
|
|
59
59
|
// bin/prettier.cjs
|
|
60
60
|
var pleaseUpgradeNode = require_please_upgrade_node();
|
|
61
|
-
var packageJson = require("
|
|
61
|
+
var packageJson = require("../package.json");
|
|
62
62
|
pleaseUpgradeNode(packageJson);
|
|
63
63
|
function runCli(cli) {
|
|
64
64
|
return cli.run(process.argv.slice(2));
|
|
65
65
|
}
|
|
66
66
|
var dynamicImport = new Function("module", "return import(module)");
|
|
67
|
-
module.exports.promise = dynamicImport("
|
|
67
|
+
module.exports.promise = dynamicImport("../internal/cli.mjs").then(runCli);
|