prettier 2.8.1 → 2.8.2
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 +73 -18
- package/README.md +3 -3
- package/bin-prettier.js +3 -1
- package/cli.js +413 -185
- package/esm/parser-angular.mjs +1 -1
- package/esm/parser-babel.mjs +20 -20
- package/esm/parser-espree.mjs +18 -18
- package/esm/parser-flow.mjs +26 -26
- package/esm/parser-glimmer.mjs +4 -4
- package/esm/parser-graphql.mjs +1 -1
- package/esm/parser-html.mjs +16 -16
- package/esm/parser-markdown.mjs +48 -48
- package/esm/parser-meriyah.mjs +13 -13
- package/esm/parser-postcss.mjs +57 -57
- package/esm/parser-typescript.mjs +36 -36
- package/esm/parser-yaml.mjs +13 -13
- package/esm/standalone.mjs +75 -75
- package/index.js +630 -297
- package/package.json +1 -1
- package/parser-babel.js +16 -16
- package/parser-espree.js +17 -17
- package/parser-flow.js +26 -26
- package/parser-glimmer.js +3 -3
- package/parser-html.js +20 -20
- package/parser-markdown.js +47 -47
- package/parser-meriyah.js +13 -13
- package/parser-postcss.js +56 -56
- package/parser-typescript.js +36 -36
- package/parser-yaml.js +13 -13
- package/standalone.js +72 -72
- package/third-party.js +5 -5
package/LICENSE
CHANGED
|
@@ -25,7 +25,7 @@ Repository: <https://github.com/angular/angular.git>
|
|
|
25
25
|
|
|
26
26
|
----------------------------------------
|
|
27
27
|
|
|
28
|
-
### @babel/code-frame@v7.
|
|
28
|
+
### @babel/code-frame@v7.18.6
|
|
29
29
|
|
|
30
30
|
License: MIT
|
|
31
31
|
By: The Babel Team
|
|
@@ -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
|
|
@@ -87,7 +87,7 @@ Repository: <https://github.com/babel/babel.git>
|
|
|
87
87
|
|
|
88
88
|
----------------------------------------
|
|
89
89
|
|
|
90
|
-
### @babel/highlight@v7.
|
|
90
|
+
### @babel/highlight@v7.18.6
|
|
91
91
|
|
|
92
92
|
License: MIT
|
|
93
93
|
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.20.
|
|
121
|
+
### @babel/parser@v7.20.7
|
|
122
122
|
|
|
123
123
|
License: MIT
|
|
124
124
|
By: The Babel Team
|
|
@@ -429,7 +429,7 @@ Repository: <https://github.com/typescript-eslint/typescript-eslint.git>
|
|
|
429
429
|
|
|
430
430
|
----------------------------------------
|
|
431
431
|
|
|
432
|
-
### acorn@v8.8.
|
|
432
|
+
### acorn@v8.8.1
|
|
433
433
|
|
|
434
434
|
License: MIT
|
|
435
435
|
Repository: <https://github.com/acornjs/acorn.git>
|
|
@@ -1243,14 +1243,15 @@ By: Jon Schlinkert
|
|
|
1243
1243
|
|
|
1244
1244
|
----------------------------------------
|
|
1245
1245
|
|
|
1246
|
-
### defaults@v1.0.
|
|
1246
|
+
### defaults@v1.0.4
|
|
1247
1247
|
|
|
1248
1248
|
License: MIT
|
|
1249
1249
|
By: Elijah Insua
|
|
1250
|
-
Repository: <git://github.com/
|
|
1250
|
+
Repository: <git://github.com/sindresorhus/node-defaults.git>
|
|
1251
1251
|
|
|
1252
1252
|
> The MIT License (MIT)
|
|
1253
1253
|
>
|
|
1254
|
+
> Copyright (c) 2022 Sindre Sorhus
|
|
1254
1255
|
> Copyright (c) 2015 Elijah Insua
|
|
1255
1256
|
>
|
|
1256
1257
|
> Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -1273,7 +1274,7 @@ Repository: <git://github.com/tmpvar/defaults.git>
|
|
|
1273
1274
|
|
|
1274
1275
|
----------------------------------------
|
|
1275
1276
|
|
|
1276
|
-
### del@v6.
|
|
1277
|
+
### del@v6.1.1
|
|
1277
1278
|
|
|
1278
1279
|
License: MIT
|
|
1279
1280
|
By: Sindre Sorhus
|
|
@@ -1711,7 +1712,7 @@ By: Toru Nagashima
|
|
|
1711
1712
|
|
|
1712
1713
|
----------------------------------------
|
|
1713
1714
|
|
|
1714
|
-
### espree@v9.4.
|
|
1715
|
+
### espree@v9.4.1
|
|
1715
1716
|
|
|
1716
1717
|
License: BSD-2-Clause
|
|
1717
1718
|
By: Nicholas C. Zakas
|
|
@@ -1819,7 +1820,7 @@ Repository: <https://github.com/justmoon/node-extend.git>
|
|
|
1819
1820
|
|
|
1820
1821
|
----------------------------------------
|
|
1821
1822
|
|
|
1822
|
-
### fast-glob@v3.2.
|
|
1823
|
+
### fast-glob@v3.2.12
|
|
1823
1824
|
|
|
1824
1825
|
License: MIT
|
|
1825
1826
|
By: Denis Malinochkin
|
|
@@ -1878,7 +1879,7 @@ Repository: <git://github.com/epoberezkin/fast-json-stable-stringify.git>
|
|
|
1878
1879
|
|
|
1879
1880
|
----------------------------------------
|
|
1880
1881
|
|
|
1881
|
-
### fastq@v1.
|
|
1882
|
+
### fastq@v1.14.0
|
|
1882
1883
|
|
|
1883
1884
|
License: ISC
|
|
1884
1885
|
By: Matteo Collina
|
|
@@ -2052,7 +2053,7 @@ By: Roy Riojas
|
|
|
2052
2053
|
|
|
2053
2054
|
----------------------------------------
|
|
2054
2055
|
|
|
2055
|
-
### flatted@v3.2.
|
|
2056
|
+
### flatted@v3.2.7
|
|
2056
2057
|
|
|
2057
2058
|
License: ISC
|
|
2058
2059
|
By: Andrea Giammarchi
|
|
@@ -2227,7 +2228,7 @@ By: Sindre Sorhus
|
|
|
2227
2228
|
|
|
2228
2229
|
----------------------------------------
|
|
2229
2230
|
|
|
2230
|
-
### glob@v7.2.
|
|
2231
|
+
### glob@v7.2.3
|
|
2231
2232
|
|
|
2232
2233
|
License: ISC
|
|
2233
2234
|
By: Isaac Z. Schlueter
|
|
@@ -2297,14 +2298,14 @@ By: Sindre Sorhus
|
|
|
2297
2298
|
|
|
2298
2299
|
----------------------------------------
|
|
2299
2300
|
|
|
2300
|
-
### graceful-fs@v4.2.
|
|
2301
|
+
### graceful-fs@v4.2.10
|
|
2301
2302
|
|
|
2302
2303
|
License: ISC
|
|
2303
2304
|
Repository: <https://github.com/isaacs/node-graceful-fs>
|
|
2304
2305
|
|
|
2305
2306
|
> The ISC License
|
|
2306
2307
|
>
|
|
2307
|
-
> Copyright (c) Isaac Z. Schlueter, Ben Noordhuis, and Contributors
|
|
2308
|
+
> Copyright (c) 2011-2022 Isaac Z. Schlueter, Ben Noordhuis, and Contributors
|
|
2308
2309
|
>
|
|
2309
2310
|
> Permission to use, copy, modify, and/or distribute this software for any
|
|
2310
2311
|
> purpose with or without fee is hereby granted, provided that the above
|
|
@@ -2726,6 +2727,36 @@ Repository: <git@github.com:kaelzhang/node-ignore.git>
|
|
|
2726
2727
|
|
|
2727
2728
|
----------------------------------------
|
|
2728
2729
|
|
|
2730
|
+
### ignore@v5.2.4
|
|
2731
|
+
|
|
2732
|
+
License: MIT
|
|
2733
|
+
By: kael
|
|
2734
|
+
Repository: <git@github.com:kaelzhang/node-ignore.git>
|
|
2735
|
+
|
|
2736
|
+
> Copyright (c) 2013 Kael Zhang <i@kael.me>, contributors
|
|
2737
|
+
> http://kael.me/
|
|
2738
|
+
>
|
|
2739
|
+
> Permission is hereby granted, free of charge, to any person obtaining
|
|
2740
|
+
> a copy of this software and associated documentation files (the
|
|
2741
|
+
> "Software"), to deal in the Software without restriction, including
|
|
2742
|
+
> without limitation the rights to use, copy, modify, merge, publish,
|
|
2743
|
+
> distribute, sublicense, and/or sell copies of the Software, and to
|
|
2744
|
+
> permit persons to whom the Software is furnished to do so, subject to
|
|
2745
|
+
> the following conditions:
|
|
2746
|
+
>
|
|
2747
|
+
> The above copyright notice and this permission notice shall be
|
|
2748
|
+
> included in all copies or substantial portions of the Software.
|
|
2749
|
+
>
|
|
2750
|
+
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
2751
|
+
> EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
2752
|
+
> MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
2753
|
+
> NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
2754
|
+
> LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
2755
|
+
> OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
2756
|
+
> WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
2757
|
+
|
|
2758
|
+
----------------------------------------
|
|
2759
|
+
|
|
2729
2760
|
### import-fresh@v3.3.0
|
|
2730
2761
|
|
|
2731
2762
|
License: MIT
|
|
@@ -2957,7 +2988,7 @@ Repository: <git://github.com/feross/is-buffer.git>
|
|
|
2957
2988
|
|
|
2958
2989
|
----------------------------------------
|
|
2959
2990
|
|
|
2960
|
-
### is-core-module@v2.
|
|
2991
|
+
### is-core-module@v2.11.0
|
|
2961
2992
|
|
|
2962
2993
|
License: MIT
|
|
2963
2994
|
By: Jordan Harband
|
|
@@ -3393,7 +3424,7 @@ By: Kat Marchán
|
|
|
3393
3424
|
|
|
3394
3425
|
----------------------------------------
|
|
3395
3426
|
|
|
3396
|
-
### json5@v2.2.
|
|
3427
|
+
### json5@v2.2.2
|
|
3397
3428
|
|
|
3398
3429
|
License: MIT
|
|
3399
3430
|
By: Aseem Kishore
|
|
@@ -4657,7 +4688,7 @@ By: Jon Schlinkert
|
|
|
4657
4688
|
|
|
4658
4689
|
----------------------------------------
|
|
4659
4690
|
|
|
4660
|
-
### resolve@v1.22.
|
|
4691
|
+
### resolve@v1.22.1
|
|
4661
4692
|
|
|
4662
4693
|
License: MIT
|
|
4663
4694
|
By: James Halliday
|
|
@@ -4866,6 +4897,30 @@ Repository: <https://github.com/npm/node-semver.git>
|
|
|
4866
4897
|
|
|
4867
4898
|
----------------------------------------
|
|
4868
4899
|
|
|
4900
|
+
### semver@v7.3.8
|
|
4901
|
+
|
|
4902
|
+
License: ISC
|
|
4903
|
+
By: GitHub Inc.
|
|
4904
|
+
Repository: <https://github.com/npm/node-semver.git>
|
|
4905
|
+
|
|
4906
|
+
> The ISC License
|
|
4907
|
+
>
|
|
4908
|
+
> Copyright (c) Isaac Z. Schlueter and Contributors
|
|
4909
|
+
>
|
|
4910
|
+
> Permission to use, copy, modify, and/or distribute this software for any
|
|
4911
|
+
> purpose with or without fee is hereby granted, provided that the above
|
|
4912
|
+
> copyright notice and this permission notice appear in all copies.
|
|
4913
|
+
>
|
|
4914
|
+
> THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
4915
|
+
> WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
4916
|
+
> MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
4917
|
+
> ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
4918
|
+
> WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
4919
|
+
> ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
|
|
4920
|
+
> IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
4921
|
+
|
|
4922
|
+
----------------------------------------
|
|
4923
|
+
|
|
4869
4924
|
### semver-compare@v1.0.0
|
|
4870
4925
|
|
|
4871
4926
|
License: MIT
|
package/README.md
CHANGED
|
@@ -38,11 +38,11 @@
|
|
|
38
38
|
|
|
39
39
|
<p align="center">
|
|
40
40
|
<a href="https://github.com/prettier/prettier/actions?query=workflow%3AProd+branch%3Amain">
|
|
41
|
-
<img alt="Github Actions Build Status" src="https://img.shields.io/github/workflow/status/prettier/prettier/
|
|
41
|
+
<img alt="Github Actions Build Status" src="https://img.shields.io/github/actions/workflow/status/prettier/prettier/prod-test.yml?label=Prod&style=flat-square"></a>
|
|
42
42
|
<a href="https://github.com/prettier/prettier/actions?query=workflow%3ADev+branch%3Amain">
|
|
43
|
-
<img alt="Github Actions Build Status" src="https://img.shields.io/github/workflow/status/prettier/prettier/
|
|
43
|
+
<img alt="Github Actions Build Status" src="https://img.shields.io/github/actions/workflow/status/prettier/prettier/dev-test.yml?label=Dev&style=flat-square"></a>
|
|
44
44
|
<a href="https://github.com/prettier/prettier/actions?query=workflow%3ALint+branch%3Amain">
|
|
45
|
-
<img alt="Github Actions Build Status" src="https://img.shields.io/github/workflow/status/prettier/prettier/
|
|
45
|
+
<img alt="Github Actions Build Status" src="https://img.shields.io/github/actions/workflow/status/prettier/prettier/lint.yml?label=Lint&style=flat-square"></a>
|
|
46
46
|
<a href="https://codecov.io/gh/prettier/prettier">
|
|
47
47
|
<img alt="Codecov Coverage Status" src="https://img.shields.io/codecov/c/github/prettier/prettier.svg?style=flat-square"></a>
|
|
48
48
|
<a href="https://twitter.com/acdlite/status/974390255393505280">
|
package/bin-prettier.js
CHANGED
|
@@ -42,7 +42,9 @@ var require_please_upgrade_node = __commonJS({
|
|
|
42
42
|
if (opts.message) {
|
|
43
43
|
console.error(opts.message(requiredVersion));
|
|
44
44
|
} else {
|
|
45
|
-
console.error(
|
|
45
|
+
console.error(
|
|
46
|
+
pkg.name + " requires at least version " + requiredVersion + " of Node, please upgrade"
|
|
47
|
+
);
|
|
46
48
|
}
|
|
47
49
|
if (opts.hasOwnProperty("exitCode")) {
|
|
48
50
|
process.exit(opts.exitCode);
|