prettier-plugin-solidity 1.2.0 → 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
@@ -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