prettier-plugin-solidity 1.1.4-dev → 1.3.0

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/README.md CHANGED
@@ -75,7 +75,7 @@ For more details and please have a look at [Prettier's documentation](https://pr
75
75
 
76
76
  ### Creating a package for the Browser
77
77
 
78
- _Added in v1.1.4_
78
+ _Added in v1.2.0_
79
79
 
80
80
  If you are creating your own package to be run in a browser, you might want to import the standalone files directly.
81
81
 
@@ -206,6 +206,21 @@ You might have a multi-version project, where different files are compiled with
206
206
  | ------- | --------------------- | ---------------------- |
207
207
  | None | `--compiler <string>` | `compiler: "<string>"` |
208
208
 
209
+ ### Experimental Ternaries
210
+
211
+ _Added in v1.3.0_
212
+
213
+ Mimicking prettier's [new ternary formatting](https://prettier.io/blog/2023/11/13/curious-ternaries) for the community to try.
214
+
215
+ Valid options:
216
+
217
+ - `true` - Use curious ternaries, with the question mark after the condition.
218
+ - `false` - Retain the default behavior of ternaries; keep question marks on the same line as the consequent.
219
+
220
+ | Default | CLI Override | API Override |
221
+ | ------- | -------------------------- | ------------------------------- |
222
+ | false | `--experimental-ternaries` | `experimentalTernaries: <bool>` |
223
+
209
224
  ## Integrations
210
225
 
211
226
  ### Vim