mirror of
https://github.com/oxc-project/oxc.git
synced 2026-11-04 10:29:58 +00:00
Part of #19704 In Prettier, there are 4 variants for JSON formatting. - json 👈🏻 this - jsonc - json5 - json-stringify Although Prettier calls "JSON", it doesn't strictly adhere to the JSON specification; in practice, it behaves more like JS... To begin with, it uses `babel.parseExpression()`, which makes the input parsing very lenient. The output also doesn't necessarily conform to the specification—for instance, it allows comments and sometimes omits double quotes on keys. Because of this, we are re-implementing it using `oxc_parser`. Since `parse_expression()` cannot capture comments, I've achieved this by wrapping the input in `()`. Also considered adding JSON support to `oxc_formatter`, but I have decided NOT to for now. We may reconsider this once we have bothered on various edge cases.
39 lines
950 B
TOML
39 lines
950 B
TOML
# Configuration file for [cargo release oxc](https://github.com/oxc-project/cargo-release-oxc)
|
|
|
|
# Release `--name crates`
|
|
[[releases]]
|
|
name = "crates"
|
|
root_crate = "oxc"
|
|
versioned_files = [
|
|
"Cargo.toml",
|
|
"napi/parser/package.json",
|
|
"napi/transform/package.json",
|
|
"napi/minify/package.json",
|
|
"npm/oxc-types/package.json",
|
|
"npm/runtime/package.json",
|
|
]
|
|
|
|
[[releases]]
|
|
name = "oxlint"
|
|
scopes_for_breaking_change = ["lint"]
|
|
versioned_files = [
|
|
"apps/oxlint/Cargo.toml",
|
|
"apps/oxlint/package.json",
|
|
"crates/oxc_linter/Cargo.toml",
|
|
"npm/oxlint/package.json",
|
|
"npm/oxlint-plugin-eslint/package.json",
|
|
"npm/oxlint-plugins/package.json",
|
|
]
|
|
|
|
[[releases]]
|
|
name = "oxfmt"
|
|
scopes_for_breaking_change = ["format"]
|
|
versioned_files = [
|
|
"apps/oxfmt/Cargo.toml",
|
|
"apps/oxfmt/package.json",
|
|
"crates/oxc_formatter_core/Cargo.toml",
|
|
"crates/oxc_formatter/Cargo.toml",
|
|
"crates/oxc_formatter_json/Cargo.toml",
|
|
"npm/oxfmt/package.json",
|
|
]
|