Tags: F3n67u/tools
Tags
feature(rome_cli): distribute the Rome CLI to npm (rome#2304) * feature(rome_cli): distribute the Rome CLI to npm * Apply suggestions from code review Co-authored-by: Emanuele Stoppa <[email protected]> * enable publishing to npm * fix the wrapper script * bump version numbers Co-authored-by: Emanuele Stoppa <[email protected]>
feature(rome_js_parser): JSX Error Recovery (rome#2302) This PR adds diagnostics for invalid JSX syntax and improves the error recovery. This PR further includes: * Splitting fragment into `JsxFragment`, `JsxOpeningFragment` and `JsxClosingFragment`. This simplifies parsing and aligns the structure with `JsxElement` * Change the optionality of `JsxExpressionChild`'s expression to optional ([spec](https://facebook.github.io/jsx/#prod-JSXChild)). * Move JSX to primary expression according to the JSX spec. * Only parse JSX in JSX (because of ambiguity) * Disable parsing of Element type arguments in JSX to get improved error recovery in the case of `<Test <Nested>content</Nested></Test>` * Don't parse `</` as `<` followed by a Regular expression (only if there's no trivia in between) in JSX mode to have improved error recovery in case the `}` of an attribute or child is missing.
fix(rome_cli): Emit error for unknown options (rome#2297) ## Summary Pico's `free_from_...` operation returns any remaining argument, including arguments starting with `--` or `-` that indicate unknown options. This PR checks if any of the remaining arguments is a potential unknown option and emits an error message for it. This PR doesn't address that we shouldn't use panics for printing error messages. ## Test ```bash rome format test.js --skip-error thread 'main' panicked at 'unrecognized option "--skip-error". Type 'cli format --help' for more information.', crates/rome_cli/src/commands/format.rs:69:17 rome format test.js -- // OK ```
feat(rslint_parser): simple jsx parser (rome#2220) * jsx, open/close and self closing elements
feat(js-parser): enable declare TypeScript modifier on a class's field ( rome#1652)
feat(project): avoid validate manifest (rome#1615)
PreviousNext