mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 20:32:10 +00:00
For #634. This PR prepares for the fix of #634, adding an option to formatter to control whether to quote object properties. After this PR, the rulegen script can use oxc-formatter to output JSON-like object literal. The `Quote Props` option is from Prettier. For detail: https://prettier.io/docs/en/options.html#quote-props > Change when properties in objects are quoted. > Valid options: > "as-needed" - Only add quotes around object properties where required. > "consistent" - If at least one property in an object requires quotes, quote all properties. > "preserve" - Respect the input use of quotes in object properties. --------- Co-authored-by: Don Isaac <donald.isaac@gmail.com> |
||
|---|---|---|
| .. | ||
| oxc | ||
| oxc_allocator | ||
| oxc_ast | ||
| oxc_ast_lower | ||
| oxc_cli | ||
| oxc_diagnostics | ||
| oxc_formatter | ||
| oxc_hir | ||
| oxc_index | ||
| oxc_linter | ||
| oxc_macros | ||
| oxc_minifier | ||
| oxc_napi | ||
| oxc_parser | ||
| oxc_query | ||
| oxc_resolver | ||
| oxc_semantic | ||
| oxc_span | ||
| oxc_syntax | ||
| oxc_type_synthesis | ||
| oxc_wasm | ||