prettier 3.2.0 → 3.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -1
- data/README.md +8 -6
- data/node_modules/prettier/cli.js +7352 -4602
- data/node_modules/prettier/doc.js +111 -99
- data/node_modules/prettier/index.js +713 -2657
- data/node_modules/prettier/package.json +3 -6
- data/node_modules/prettier/parser-angular.js +1 -1
- data/node_modules/prettier/parser-babel.js +19 -19
- data/node_modules/prettier/parser-espree.js +19 -19
- data/node_modules/prettier/parser-flow.js +30 -21
- data/node_modules/prettier/parser-glimmer.js +15 -15
- data/node_modules/prettier/parser-graphql.js +1 -1
- data/node_modules/prettier/parser-html.js +20 -20
- data/node_modules/prettier/parser-markdown.js +48 -48
- data/node_modules/prettier/parser-meriyah.js +14 -14
- data/node_modules/prettier/parser-postcss.js +42 -42
- data/node_modules/prettier/parser-typescript.js +65 -65
- data/node_modules/prettier/parser-yaml.js +11 -11
- data/node_modules/prettier/third-party.js +1 -1
- data/package.json +2 -2
- data/src/parseSync.js +21 -1
- data/src/plugin.js +3 -1
- data/src/server.rb +10 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5c772ae9c41714e30e74b8d7d832a2efdd939835ada857eeb4ec80e1f036d4d5
|
4
|
+
data.tar.gz: f9895d25d44b055627a3518d13b3c81334bcc9bb13514a8617f3ad49ef0b8114
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9a131aed0b99f4ea445a64c6c9c985931523ad6f5586df6e5d08d263d0ab4f1c40f4a17c685590b726afcae498ece6b34cf2fe9451a8e24bdc22ff8896719ea8
|
7
|
+
data.tar.gz: d3723afae5fdf5547e1f88f2d3443964951fe2faa8931434afa01aa8565643f93282b28bb15064079447022497234b7c28bd1eae0b78c5b6985053f4f498291e
|
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,18 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a
|
|
6
6
|
|
7
7
|
## [Unreleased]
|
8
8
|
|
9
|
+
## [3.2.2] - 2022-09-20
|
10
|
+
|
11
|
+
### Changed
|
12
|
+
|
13
|
+
- [#1276](https://github.com/prettier/plugin-ruby/pull/1276) - kddnewton - Fix the parsing for options being passed to the server process.
|
14
|
+
|
15
|
+
## [3.2.1] - 2022-09-19
|
16
|
+
|
17
|
+
### Changed
|
18
|
+
|
19
|
+
- [#1274](https://github.com/prettier/plugin-ruby/pull/1274) - kddnewton - Support the next version of `syntax_tree-haml`.
|
20
|
+
|
9
21
|
## [3.2.0] - 2022-07-22
|
10
22
|
|
11
23
|
### Added
|
@@ -1255,7 +1267,10 @@ would previously result in `array[]`, but now prints properly.
|
|
1255
1267
|
|
1256
1268
|
- Initial release 🎉
|
1257
1269
|
|
1258
|
-
[unreleased]: https://github.com/prettier/plugin-ruby/compare/v3.
|
1270
|
+
[unreleased]: https://github.com/prettier/plugin-ruby/compare/v3.2.2...HEAD
|
1271
|
+
[3.2.2]: https://github.com/prettier/plugin-ruby/compare/v3.2.1...v3.2.2
|
1272
|
+
[3.2.1]: https://github.com/prettier/plugin-ruby/compare/v3.2.0...v3.2.1
|
1273
|
+
[3.2.0]: https://github.com/prettier/plugin-ruby/compare/v3.1.2...v3.2.0
|
1259
1274
|
[3.1.2]: https://github.com/prettier/plugin-ruby/compare/v3.1.1...v3.1.2
|
1260
1275
|
[3.1.1]: https://github.com/prettier/plugin-ruby/compare/v3.1.0...v3.1.1
|
1261
1276
|
[3.1.0]: https://github.com/prettier/plugin-ruby/compare/v3.0.0...v3.1.0
|
data/README.md
CHANGED
@@ -134,12 +134,14 @@ The `prettier` executable is now installed and ready for use:
|
|
134
134
|
|
135
135
|
Below are the options (from [`src/plugin.js`](src/plugin.js)) that `@prettier/plugin-ruby` currently supports:
|
136
136
|
|
137
|
-
| API Option | CLI Option | Default | Description
|
138
|
-
| --------------- | ------------------ | :-----: |
|
139
|
-
| `printWidth` | `--print-width` | `80` | Same as in Prettier ([see prettier docs](https://prettier.io/docs/en/options.html#print-width)).
|
140
|
-
| `requirePragma` | `--require-pragma` | `false` | Same as in Prettier ([see prettier docs](https://prettier.io/docs/en/options.html#require-pragma)).
|
141
|
-
| `rubyPlugins` | `--ruby-plugins` | `""` | The comma-separated list of plugins to require. See [Syntax Tree](https://github.com/ruby-syntax-tree/syntax_tree#plugins).
|
142
|
-
| `tabWidth` | `--tab-width` | `2` | Same as in Prettier ([see prettier docs](https://prettier.io/docs/en/options.html#tab-width)).
|
137
|
+
| API Option | CLI Option | Default | Description |
|
138
|
+
| --------------- | ------------------ | :-----: | --------------------------------------------------------------------------------------------------------------------------------------------------- |
|
139
|
+
| `printWidth` | `--print-width` | `80` | Same as in Prettier ([see prettier docs](https://prettier.io/docs/en/options.html#print-width)). |
|
140
|
+
| `requirePragma` | `--require-pragma` | `false` | Same as in Prettier ([see prettier docs](https://prettier.io/docs/en/options.html#require-pragma)). |
|
141
|
+
| `rubyPlugins` | `--ruby-plugins` | `""` | The comma-separated list of plugins to require. See [Syntax Tree](https://github.com/ruby-syntax-tree/syntax_tree#plugins). |
|
142
|
+
| `tabWidth` | `--tab-width` | `2` | Same as in Prettier ([see prettier docs](https://prettier.io/docs/en/options.html#tab-width)). |
|
143
|
+
| `singleQuote` | `--single-quote` | `false` | Same as in Prettier ([see prettier docs](https://prettier.io/docs/en/options.html#quotes)). |
|
144
|
+
| `trailingComma` | `--trailing-comma` | `es5` | Almost same as in Prettier ([see prettier docs](https://prettier.io/docs/en/options.html#trailing-commas)). Will be on for any value except `none`. |
|
143
145
|
|
144
146
|
Any of these can be added to your existing [prettier configuration
|
145
147
|
file](https://prettier.io/docs/en/configuration.html). For example:
|