prettier 4.0.2 → 4.0.4
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -1
- data/README.md +12 -1
- data/node_modules/prettier/LICENSE +227 -408
- data/node_modules/prettier/README.md +3 -3
- data/node_modules/prettier/bin/prettier.cjs +3 -2
- data/node_modules/prettier/doc.d.ts +10 -7
- data/node_modules/prettier/doc.js +17 -29
- data/node_modules/prettier/doc.mjs +12 -24
- data/node_modules/prettier/index.cjs +22 -29
- data/node_modules/prettier/index.d.ts +76 -68
- data/node_modules/prettier/index.mjs +16274 -13541
- data/node_modules/prettier/internal/cli.mjs +388 -79
- data/node_modules/prettier/package.json +7 -3
- data/node_modules/prettier/plugins/acorn.js +12 -12
- data/node_modules/prettier/plugins/acorn.mjs +12 -12
- data/node_modules/prettier/plugins/angular.js +1 -2
- data/node_modules/prettier/plugins/angular.mjs +1 -2
- data/node_modules/prettier/plugins/babel.js +11 -11
- data/node_modules/prettier/plugins/babel.mjs +11 -11
- data/node_modules/prettier/plugins/estree.d.ts +1 -0
- data/node_modules/prettier/plugins/estree.js +26 -26
- data/node_modules/prettier/plugins/estree.mjs +26 -26
- data/node_modules/prettier/plugins/flow.js +17 -17
- data/node_modules/prettier/plugins/flow.mjs +17 -17
- data/node_modules/prettier/plugins/glimmer.js +22 -22
- data/node_modules/prettier/plugins/glimmer.mjs +22 -22
- data/node_modules/prettier/plugins/graphql.js +9 -9
- data/node_modules/prettier/plugins/graphql.mjs +9 -9
- data/node_modules/prettier/plugins/html.js +17 -17
- data/node_modules/prettier/plugins/html.mjs +17 -17
- data/node_modules/prettier/plugins/markdown.js +46 -46
- data/node_modules/prettier/plugins/markdown.mjs +46 -46
- data/node_modules/prettier/plugins/meriyah.js +5 -5
- data/node_modules/prettier/plugins/meriyah.mjs +5 -5
- data/node_modules/prettier/plugins/postcss.js +28 -28
- data/node_modules/prettier/plugins/postcss.mjs +28 -28
- data/node_modules/prettier/plugins/typescript.js +20 -22
- data/node_modules/prettier/plugins/typescript.mjs +20 -22
- data/node_modules/prettier/plugins/yaml.js +38 -38
- data/node_modules/prettier/plugins/yaml.mjs +39 -39
- data/node_modules/prettier/standalone.d.ts +2 -2
- data/node_modules/prettier/standalone.js +31 -31
- data/node_modules/prettier/standalone.mjs +31 -31
- data/package.json +4 -4
- data/src/plugin.js +13 -5
- data/src/server.rb +8 -3
- metadata +2 -3
- data/node_modules/prettier/internal/internal.mjs +0 -6531
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e23318c4ecbba93027a77783c06a53a824c84f9d28bffaa959d1aa2ebdffe842
|
4
|
+
data.tar.gz: 0d26d619f830e9516e493efa6d3264315a9af728707bc3869d5d67fe659546e2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 311de395f7a33b53f0c57764473984006988f6225f565bf4ea84bcc65c803ad34fcfd19ab02f20d500952879c1b4d3d725b35492de7117271b17285160949389
|
7
|
+
data.tar.gz: ca32227c84bc54c62852ceb885e6997f88f04fa4bbd61b0fa00229b860900d894f9c2ceb65a2d6e8d5c10dabccd190e0719b582fea6264775de156be1abff574
|
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,19 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a
|
|
6
6
|
|
7
7
|
## [Unreleased]
|
8
8
|
|
9
|
+
## [4.0.4] - 2023-12-12
|
10
|
+
|
11
|
+
### Changed
|
12
|
+
|
13
|
+
- [#1413](https://github.com/prettier/plugin-ruby/pull/1413) - hrabe - Fix the cwd detection for mono-repos.
|
14
|
+
|
15
|
+
## [4.0.3] - 2023-11-27
|
16
|
+
|
17
|
+
### Changed
|
18
|
+
|
19
|
+
- [#1406](https://github.com/prettier/plugin-ruby/pull/1406) - mikesea - Support running without the RBS or Haml plugins loaded.
|
20
|
+
- [#1407](https://github.com/prettier/plugin-ruby/pull/1407) - hrabe - Support shimmed Ruby versions.
|
21
|
+
|
9
22
|
## [4.0.2] - 2023-07-14
|
10
23
|
|
11
24
|
### Changed
|
@@ -1291,7 +1304,9 @@ would previously result in `array[]`, but now prints properly.
|
|
1291
1304
|
|
1292
1305
|
- Initial release 🎉
|
1293
1306
|
|
1294
|
-
[unreleased]: https://github.com/prettier/plugin-ruby/compare/v4.0.
|
1307
|
+
[unreleased]: https://github.com/prettier/plugin-ruby/compare/v4.0.4...HEAD
|
1308
|
+
[4.0.4]: https://github.com/prettier/plugin-ruby/compare/v4.0.3...v4.0.4
|
1309
|
+
[4.0.3]: https://github.com/prettier/plugin-ruby/compare/v4.0.2...v4.0.3
|
1295
1310
|
[4.0.2]: https://github.com/prettier/plugin-ruby/compare/v4.0.1...v4.0.2
|
1296
1311
|
[4.0.1]: https://github.com/prettier/plugin-ruby/compare/v4.0.0...v4.0.1
|
1297
1312
|
[4.0.0]: https://github.com/prettier/plugin-ruby/compare/v3.2.2...v4.0.0
|
data/README.md
CHANGED
@@ -97,7 +97,18 @@ gem install bundler prettier_print syntax_tree syntax_tree-haml syntax_tree-rbs
|
|
97
97
|
The `prettier` executable is now installed and ready for use:
|
98
98
|
|
99
99
|
```bash
|
100
|
-
./node_modules/.bin/prettier --write '**/*'
|
100
|
+
./node_modules/.bin/prettier --plugin=@prettier/plugin-ruby --write '**/*'
|
101
|
+
```
|
102
|
+
|
103
|
+
### Using Prettier >= 3.0
|
104
|
+
|
105
|
+
You need to tell Prettier to use the plugin, add the following to your existing [prettier configuration
|
106
|
+
file](https://prettier.io/docs/en/configuration.html).
|
107
|
+
|
108
|
+
```json
|
109
|
+
{
|
110
|
+
"plugins": ["@prettier/plugin-ruby"]
|
111
|
+
}
|
101
112
|
```
|
102
113
|
|
103
114
|
## Configuration
|