SHA256
7
0
forked from pool/biome
2023-10-21 19:54:29 +00:00
committed by Git OBS Bridge
commit c69815894c
7 changed files with 595 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

3
biome-1.3.1.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3bfb37cb0df4517f7d8f3b8962834f529301f4a5501515bccd61572e45b75190
size 10626406

503
biome.changes Normal file
View File

@@ -0,0 +1,503 @@
-------------------------------------------------------------------
Thu Oct 19 21:43:01 UTC 2023 - Avindra Goolcharan <avindra@opensuse.org>
- project renamed from "rome" to "biome"
- continue from cli version 1.3.1
-------------------------------------------------------------------
Sun Jun 4 02:49:06 UTC 2023 - Avindra Goolcharan <avindra@opensuse.org>
- update to 12.1.3:
* chore: Bump pnpm/action-setup and jetli/wasm-pack-action to latest #4506
* chore: update snapshot #4509
* feat: Add noUselessTypeConstraint #4484
* chore: Resolve set-output deprecations #4507
* fix(rome_service): treat nursery rules differently #4511
* chore: upgrade bpaf #4522
* Dockerised benchmark tool #4494
* Workspace internal deps #4525
* fix(website): update codemirror packages #4537
* Revert "feat(rome_js_parser, rome_js_formatter): import
attribute (#4359)" #4496
* release: 12.1.3 #4544
-------------------------------------------------------------------
Thu May 18 20:53:28 UTC 2023 - Avindra Goolcharan <avindra@opensuse.org>
- update to 12.1.2:
* fix(rome_js_analyze): allow nested func declarations in esm #4500
* fix(rome_js_analyze): noInvalidConstructorSuper recognize
extends mod… #4501
* fix(rome_service): rules to disable and enable #4503
* release: 12.1.2 #4508
- includes 12.1.1:
* perf: improve rome benchmark performance in formatting by removing di… #4475
* fix: benchmark tooling failing calling node modules bin dir directly #4474
* fix(rome_js_analyze): Files with fn(() => (aborted = true));
cause -entered unreachable code - when --apply-unsafe #4464 #4473
* perf: improve clone speed of benchmark tool with sparse-checkout #4476
* fix(rome_js_semantic): correct the export determination when
a variable and an interface had the same name #4468
* fix(rome_cli): fix regression for rome lsp-proxy command #4491
* fix(rome_service): correctly load recommended rules #4490
* release: v12.1.1 #4497
- includes 12.1.0:
* fix(rome_js_analyze): useSimpleNumberKeys #4457 handle
shortand/spread object props #4459
* ci: fix error on pull-request #4465
* fix(rome_service): correctly send file source to workspace #4466
* fix(rome_js_analyze): fix false positive diagnostics that
useHookAtTopLevel caused to as or satisfies expressions #4467
* release: 12.1.0 #4344
-------------------------------------------------------------------
Tue Mar 28 22:17:44 UTC 2023 - Avindra Goolcharan <avindra@opensuse.org>
- update to 12.0.0:
* Replace unsafe rome_diagnostics::Error implementation with double-Box
* fix(rome_formatter): format range for sub tree #4149 (#4241)
* fix: accessor must appear after abstract and override (#4242)
* feat(rome_js_analyzer): implement rule noRedeclaration, no-redeclare
* fix: mis-formatting of comments in closing JSX element (#4244)
* feat(rome_js_analyzer): promote nursery rules (#4239)
* fix(rome_js_formatter): Incorrect formatting of interfaces declared
* fix(rome_js_semantic): add TsTypeParameterName to bindings (#4259)
* fix(rome_js_formatter): Parity with prettier for many function arg
* feat(rome_service): add all configuration to linter (#4258)
* docs(rome_js_analyze): improve noDuplicateParameters docs (#4257)
* docs(rome_js_analyze): improve noCatchAssign docs (#4262)
* Fix Linux executable's path in the standalone docs (#4251)
* fix(rome_fs): Allow to ignore patterns to symbolic links (symlinks)
* fix(rome_cli): don't add newline when formatting from std (#4263)
* feat(rome_js_analyzer): read globals from analyzer options (#4261)
* feat(rome_js_analyze): noParameterAssign (#4264)
* docs(rome_js_analyze): noParameterAssign in release 12.0.0 (#4271)
* feat(rome_js_parser): Support optional variance annotation (#4250)
* feat(rome_js_analyze): useNamespaceKeyword (#4266)
* chore: update dependencies (#4277)
* docs(rome_js_analyze): improve CONTRIBUTING and code gen (#4278)
* refactor(rome_js_analyze): rename noSelfAssignment to noSelfAssign
* docs(rome_js_analyze): improve CONTRIBUTING (#4280)
* fix(rome_cli): prevent exploration of ignored directories (#4276)
* docs: Changing the yarn command (#4273)
* refactor(rome_js_analyze): noDelete (#4272)
* fix(rome_cli): exit with error code while applying fixes (#4270)
* fix(rome_service): correctly parse enums (#4286)
* ci: add automatic labels on PRs
* feat(rome_js_analyze): noNamespace (#4283)
* feat(rome_lsp): pull diagnostics for rome.json (#4296)
* chore: add missing license to generated packages (#4301)
* chore: update website info (#4303)
* fix(rome_js_analyze): noRedeclaration declaration merging (#4288)
* fix(rome_formatter): fix format range (#4295)
* feat(rome_js_parser): Support const modifier in type parameters (#4275)
* fix(xtask): just new-lintrule document generation error (#4306)
* fix(rome_ci): apply import sorting (#4305)
* chore(rome_deserialize): use correct category
* fix(rome_lsp): utf encoding (#4308)
* fix: keep quotes in the case of keys that are octal literals (#4309)
* fix(rome_js_analyze): keep comments noUnnecessaryContinue (#4315)
* refactor(rome_js_analyze): rename noRedeclarations to noRedeclare (#4319)
* test(rome_js_analyze): every rule has its folder (#4318)
* fix(rome_lsp): handle untitled files (#4327)
* release: 12.0.0 (#4002)
-------------------------------------------------------------------
Mon Feb 27 00:18:33 UTC 2023 - Avindra Goolcharan <avindra@opensuse.org>
- update to 979d302e9d0360c1108f56c5ff6ccd2d3b9ef3d6
* fix(rome_js_formatter): mapped type formatting (#4226)
* feat(rome_js_parser): support property init in ambient context (new node) (#4225)
* feat(rome_service): traverse upwards the fs to discover the config file (#4224)
* chore: Update fs_extra to fix future incompatibility warning (#4232)
* fix(website): Associate labels with the right controls (#4233)
* feat(rome_js_parser): TS 5.0 export type * (#4228)
* Remove unsafe from rome_diagnostics::display::frame (#4235)
* chore: toolchain upgrade (#4237)
* ci: fix clippy
* feat(rome_js_analyze): noSvgWithoutTitle (#4220)
* Fix more nightly Clippy lints (#4238)
* feat(rome_js_analyze): noUselessCatch (#4236)
-------------------------------------------------------------------
Tue Feb 21 01:40:05 UTC 2023 - Avindra Goolcharan <avindra@opensuse.org>
- update to 71400238d22e2b7eae10d89769d81a4ee5314219
* chore: correctly bump extension version (#3997)
* chore: add import sorting
* fix(rome_js_analyzer): correctly delegate unresolved references to it
* docs: Add default for indentSize (#4000)
* fix(ci): fix the release workflow for the JS API (#4009)
* feat(rome_js_analyze): implement noRedundantAlt rule (#3964)
* fix(rome_js_analyze): use exhaustive deps considering external const
* chore: release version 0.2.0 of the JS API
* feat(rome_service): internal errors as diagnostics (#3921)
* fix(rome_js_analyze): fix useConst suggestion when some bindings cann
* docs(noConstructorReturn): fix rule description (#4015)
* feat(playground): Add JSON support (#3968)
* fix(rome_js_analyze): fix ts const assertion on noUndeclaredVariables (
* feat(rome_js_analyze): lint rule to check if react hooks are at top l
* feat(rome_js_analyze): noAssignInExpressions (#3928)
* feat(rome_cli): Add JS runtime and package manager information to `ra
* feat(rome_js_analyze): noUselessSwitchCase (#3912)
* fix(vscode): ignore incompatible versions of the binary and improve t
* feat(editors/vscode): Add requiresConfiguration option
* Revert "feat(editors/vscode): Add requiresConfiguration option"
* feat(rome_js_analyze): complete useAriaPropTypes rule (#3959)
* docs: fix typo in configuration.mdx (#4034)
* feat(rome_js_analyze): add module and classes support for noRedundant
* chore(xtask): update the coverage submodules (#4041)
* feat(rome_js_analyzer): add noWith rule (#4025)
* chore: update contribution guidelines (#3996)
* refactor(rome_lsp): refactor the initialization and configuration loa
* fix(rome_lsp): improve the pattern matching logic for ignored files (#
* fix(rome_lsp): fix the merge conflict of #4042 and #4044 (#4051)
* feat: Support Auto Accessors (#3956)
* feat(rome_json_formatter): JSON Formatting object #2570 (#4040)
* feat(rome_js_analyze): noCommaOperator (#4019)
* chore(codegen): fix codegen for new lint rule (#4057)
* refactor(rome_formatter): Extract shared separated logic (#4056)
* feat(rome_js_analyze): noSelfCompare rule (#4031)
* feat(rome_js_analyze): noClassAssign rule (#4033)
* fix(rome_js_analyze): should handle read-only arrays (#3954)
* feat(rome_json_formatter): Fallback to Verbatim for nodes with syntax
* feat(rome_js_analyzer): rule useValidLang (#4045)
* feat(rome_js_analyzer): noExtraSemicolons, noExtraSemi (#4061)
* feat(rome_js_parser): instantiation expressions #3147 (#4035)
* feat(rome_js_analyze): noDuplicateCase, no-duplicate-case #3969 (#4039)
* chore(rome_analyze): add groups
* chore(rome_js_analyze): simplify comparison operator check (#4076)
* feat(rome_js_analyze): useIsNan rule (#4059)
* feat(rome_js_analyze): useMediaCaption rule (#4032)
* refactor(rome_analyze): refactor how Visitors, Queryables and QueryMa
* feat(rome_js_analyzer): rule useAriaProps (#4048)
* feat(rome_js_analyze): useIframeTitle (#4067)
* feat(rome_js_analyze): implement the noUnreachableSuper rule (#4017)
* feat(rome_js_analyzer): partial implementation for rule `noNoninterac
* feat(rome_cli): termination as diagnostic (#4058)
* feat(rome_js_analyzer): rule useHtmlLang (#4052)
* fix(rome_js_semantic): semantic model considering static init block a
* feat(rome_cli): rename --apply-suggested to --apply-unsafe (#4078)
* feat(rome_json_formatter): implement JSON array formatting (#4064)
* fix(rome_js_analyze): noPrecisionLoss correctly handle 1 digit ints (
* docs(noExplicitAny): add a diagnostic note and info in docs (#4089)
* docs(rome_analyze): complete custom visitor example (#4098)
* chore(.github): add feature request link
* refactor(rome_js_anallyze): noConstEnum better trivia handling (#4085)
* feat(rome_js_analyze): noInnerDeclarations (#4079)
* feat(rome_json_formatter): JSON Formatting number #2570 (#4090)
* feat(editors/vscode): Add requiresConfiguration option (#4023)
* fix(rome_js_formatter): Union in mapped type (#4100)
* feat(rome_json_formatter): JSON Formatting string #2570 (#4105)
* test(rome_js_formatter): update prettier tests (#4104)
* feat(rome_js_analyzer): no duplicate jsx props rule (#4095)
* fix(rome_js_parser): parse "async" as class member property correctly (
* chore: Upgrade to Rust 1.66.0 (#4120)
* feat: Support extends constraints on infer type (#4018)
* docs(rome_analyze): fix typos and improve docs (#4122)
* chore(rome_js_analyze): fix typo in no-const-enum rule (#4127)
* feat(rome_lsp): add link to LSP diagnostic (#4099)
* feat(rome_service): parse configuration via JSON parser (#4043)
* refactor(rome_js_parser): Inroduce TypeContext (#4123)
* feat(rome_js_analyze): noUnusedLabels (#4096)
* feat(rome_lsp): add a replace_range method to Document (#4135)
* feat(rome_js_analyze): useYield rule (#4037)
* chore: remove FileId from the codebase (#4134)
* docs(useIsNan): promote Number.isNaN instead of isNaN (#4088)
* feat(rome_js_analyze): noGlobalObjectCalls, no-obj-calls #3977 (#4103)
* feat(rome_js_analyze): noPrototypeBuiltins (#4101)
* docs(linter): minor fixes and improvements (#4128)
* feat(rome_cli): Enable JSON formatting (#4133)
* feat(vscode): enable JSON formatting (#4146)
* chore: Add root rome script for development (#4147)
* chore: Remove unnecessary .nojekyll file (#4148)
* feat(rome_service): deserialize configuration using internal parser (#
* refactor(js_ungram): normalize BigInt to Bigint (#4139)
* chore: update rust and dependencies (#4152)
* feat(rome_js_analyze): noDuplicateClassMembers (#4137)
* chore: remove stale bot
* feat(rome_js_analyze): noExtraLabels (#4126)
* feat(rome_js_analyze): noUselessRename (#4116)
* feat(rome_js_analyze): noConfusingLabels (#4114)
* feat(rome_service): recycle the node cache across parsing sessions (#
* fix: remove macro
* feat(rome_js_analyze): noInferrableTypes (#4083)
* docs(linter): fix the linter cli options (#4204)
* feat(rome_cli): Add a new option --config-path to set the path to rom
* feat(rome_js_analyze): noSwitchDeclarations (#3917)
* feat(rome_js_analyze): noParameterProperties (#3874)
* chore: remove CODEOWNERS
* feat(rome_js_analyzer): noSelfAssignment rule (#4091)
* ci: fix redact snapshot (#4207)
* feat(rome_js_analyze): noDuplicatePrivateClassMembers (#4144)
* fix(js_semantic):handle exported modules and their members (#4205)
* fix(syntax): add missing assignment operator /= (#4213)
* fix: identify any declaration of type parameter (#4211)
* fix(noVar): suggest fixes for re-assigned var (#4212)
* chore: Update dependencies (#4121)
* fix(rome_js_analyze): handle default clause in `useSingleCaseStetemen
* fix(noUnusedVariables): ignore TypeScript property parameters (#4214)
* ci: fix redact snapshot (#4209)
* feat(rome_js_analyze): noUnsafeOptionalChain, no-unsafe-optional-chai
* fix(useOptionalChain): ignore expr ending with a bin expr (#4217)
* feat(rome_cli): enable organize imports via CLI/configuration (#4191)
-------------------------------------------------------------------
Sun Jan 29 05:03:02 UTC 2023 - Avindra Goolcharan <avindra@opensuse.org>
- update to 11.0
* 573 commits, see https://github.com/rome/tools/compare/cli/v0.8.0-next.ff4153b...cli/v11.0.0
- remove unneeded _service file
-------------------------------------------------------------------
Sun Aug 21 20:24:41 UTC 2022 - Avindra Goolcharan <avindra@opensuse.org>
- update to 0.8.0
* for changes, see https://github.com/rome/tools/compare/cli/v0.6.1-next...cli/v0.8.0-next.ff4153b
-------------------------------------------------------------------
Mon Jun 20 22:12:36 UTC 2022 - Avindra Goolcharan <avindra@opensuse.org>
- update to 0.6.1
* Fixes a regression introduced in the rome format command (#2670)
* chore: Reformat JS files with Rome 0.6.0 by @MichaReiser in #2669
* chore(coverage): better panic log for coverage by @xunilrj in #2668
* fix(rome_cli): do not print lint warnings for the format command by @leops in #2680
* fix(rome_analyze): fix the find_diff_range function by @leops in #2679
* refactor(formatter): Rename FormatError::MissingRequiredChild to
SyntaxError by @MichaReiser in #2681
* chore(rome_formatter): remove unused FormatError variants by
@MichaReiser in #2684
* chore(coverage): Disable coverage tests for formatter/linter changes
by @MichaReiser in #2682
* fix(rome_js_parser): remove use strict check by @NicholasLYang in #2677
* fix(rome_formatter): measure first variant of BestFitting in flat
mode by @yassere in #2675
- includes 0.6.0
* BREAKING CHANGES: the command rome format --ci has been removed,
use rome ci instead.
* chore: update readme by @ematipico in #2523
* fix(ci): Deploy playground only on main Rome repo by @NicholasLYang in #2522
* fix(rome_js_formatter): break computed expressions like prettier by @ematipico in #2517
* fix(playground): Update pnpm requirement to 7.0.0. by @cpojer in #2528
* refactor: Split out JsFormatter by @MichaReiser in #2526
* feat(rome_js_parser): quick cast methods for nodes by @xunilrj in #2535
* fix(rome_js_formatter): number with trailing whitespace by @mrkldshv in #2519
* fix(rome_js_formatter): elide quotes inside members by @ematipico in #2502
* Fix(rome_js_formatter): guitar Switch-case block body placement
by @IWANABETHATGUY in #2514
* fix(playground): update lock file by @ematipico in #2539
* Revert "fix(rome_js_formatter): elide quotes inside members" by @ematipico in #2544
* chore: Fix deploy playground on main by @MichaReiser in #2545
* fix(rome_js_formatter): Put closing curly on new line for empty
blocks. by @IWANABETHATGUY in #2540
* fix(formatter): Stack overflow in formatting computed member expressions
by @MichaReiser in #2548
* feat(rome_js_formatter): JSXFragment by @ematipico in #2484
* feature(formatter): Clean JSX Text by @NicholasLYang in #2527
* feature: AST Serialization by @NicholasLYang in #2509
* fix(cargo.toml): bug fix repo link by @IWANABETHATGUY in #2551
* chore(website): Added careers link by @NicholasLYang in #2560
* fix(rome_js_formatter): bug wrap some string expression stmt by @IWANABETHATGUY in #2547
* feat(rome_js_parser): check for missing children in parser tests by @leops in #2176
* refactor(rome_analyze): syntax mutation and factories API by @leops in #2491
* feature(playground): Prettier IR tab by @NicholasLYang in #2543
* refactor(Formatter): formatted Macro by @MichaReiser in #2557
* Fix(rome_js_formatter):bug fix parenthesis expression bad case
by @IWANABETHATGUY in #2564
* fix: Countme overflow in tests by @MichaReiser in #2575
* format(rome_*): format rust doc comments by @IWANABETHATGUY in #2573
* feat(lsp): improve the user experience of the analyzer in the editor by @leops in #2576
* refactor(Formatter): Move Format, Formatter, to rome_formatter by @MichaReiser in #2559
* feature(website): Toggle Tree Style by @NicholasLYang in #2563
* feat(rome_js_formatter): bulb Prettier Compatibility Metric by @IWANABETHATGUY in #2574
* feat(rome_diagnostic): refactor diagnostics to use markup by @leops in #2580
* fix(formatter): Tighten has_line_breaks method by @MichaReiser in #2581
* fix(formatter): Stable member chain printing by @MichaReiser in #2582
* ci: ferris_wheel fix broken ci by @IWANABETHATGUY in #2584
* refactor(formatter): Extract language specific options by @MichaReiser in #2578
* feat(rome_cli): implement the check and ci CLI commands by @leops in #2583
* refactor(formatter): Refactor try_print_flat to fits_on_line by @MichaReiser in #2589
* feature(formatter): LineSuffixBoundary and ExpandParent IR by @MichaReiser in #2590
* chore(playground): Display cleaned prettier IR by @MichaReiser in #2592
* fix(rome_rowan): fix the next_token and prev_token methods on SyntaxToken
by @leops in #2595
* fix(playground): state not persisting properly in url by @NicholasLYang in #2594
* chore: Upgrade to Rust 1.61.0 by @Boshen in #2599
* feature(formatter): Add BestFitting IR element by @MichaReiser in #2591
* (website): robot remove package lock json by @IWANABETHATGUY in #2596
* fix(repo): Update .gitignore. by @cpojer in #2605
* feat(rome_js_formatter): Hard line breaks in object expressions. by @cpojer in #2458
* refactor: Stabilize formatter by @MichaReiser in #2597
* refactor: Printer "fits" definition by @MichaReiser in #2598
* feat(rome_rowan): cast and parent to help SyntaxNode and AstNode
navigation by @xunilrj in #2601
* fix(rome_js_formatter): empty statements in if/else and do/while by @ematipico in #2549
* fix(rome_js_formatter): correctly format sequence expressions by @ematipico in #2541
* fix(rome_formatter): improve the compatibility of range formatting
with Prettier by @leops in #2602
* refactor: move SourceType inside rome_js_syntax by @ematipico in #2608
* (npm/rome): remove node: prefix for builtin module by @IWANABETHATGUY in #2607
* feat(rome_service): introduce a cross-language Workspace abstraction by @leops in #2593
* perf(rowan): Speedup next_token and prev_token implementations by @MichaReiser in #2612
* fix(playground): JSX and TypeScript not persisted in URL by @NicholasLYang in #2610
* feat(rome_cli): disable markup formatting when unsupported by @leops in #2613
* feature(rome_js_parser): coverage test suite for ts symbols file by @xunilrj in #2588
* feat(playground): add a button to copy rome_ir to clipboard by @IWANABETHATGUY in #2604
* fix(parser): Fix JSX parser dropping content by @MichaReiser in #2630
* feat(rome_formatter): make formatter language aware by @ematipico in #2629
* fix(rome_js_formatter): choose preferred quotes and reduce escaping
by @ematipico in #2624
* chore(rome_js_formatter): apply alias by @ematipico in #2633
* feature(rome_js_parser): Extraction of variable declarations by @xunilrj in #2628
* docs(formatter): fix some mistakes in doc comments by @yassere in #2637
* perf(formatter): Remove prev_token traversal from format leading
trivia by @MichaReiser in #2638
* feature(formatter): Fill separators by @NicholasLYang in #2609
* refactor(rome_js_formatter): format static member expressions using
loop by @ematipico in #2635
* feature(rome_js_semantic): Extraction of scope (simple cases) by @xunilrj in #2639
* feat(rome_js_formatter): elide quotes in object/class members by @ematipico in #2536
* fix(rome_formatter): handle groups correctly when measuring fit by @yassere in #2645
* feat(rome_js_formatter): Break long object literal members over
two lines #2425 by @Dominionys in #2627
* refactor(formatter): Introduce write, format, and format_args macros
by @MichaReiser in #2634
* refactor(formatter): Member chain: left to right formatting by @MichaReiser in #2641
* Fix(rome_js_formatter): named import by @IWANABETHATGUY in #2498
* fix(rome_js_formatter): prevent some unnecessary trailing commas by @yassere in #2663
* refactor(formatter): Change binary like expression to format left
to right by @MichaReiser in #2640
* fix(syntax): Remove quotes from tokens in JsSyntaxKind::to_string by @MichaReiser in #2665
* release: 0.6.0 by @ematipico in #2662
- includes 0.5.0
* BREAKING CHANGES: the format command doesn't write on disk by
default. Now the command prints to stdout. Now users should
call `rome format --write` to use the old behavior
* Added a new option called --quote-style to the formatter. This
option is also available on VSCode.
* Update README.md by @darrow-olykos in #2348
* chore(rome_cli): move ending message after diagnostics by @ematipico in #2349
* feat(rome_diagnostics): print diagnostics as markup by @leops in #2346
* chore(website): Getting Started copy by @NicholasLYang in #2343
* chore: use npm 8 across projects by @ematipico in #2352
* feat(rome_playground): add support for source type by @ematipico in #2353
* fix(website): added illustrator credit and alt text by @NicholasLYang in #2355
* fix(rome_js_parser): Fix TS Decorator with arrow param parsing by @MichaReiser in #2364
* chore: Move playground to website directory by @MichaReiser in #2335
* chore: Fix playground build by @MichaReiser in #2365
* feat(rome_cli): CLI Improvements by @leops in #2361
* refactor(rome_diagnostics): refactoring / cleanup of diagnostics by @leops in #2354
* docs(website): update pnpm commands by @sachinraja in #2367
* fix(playground): Prettier TS formatting by @MichaReiser in #2368
* feat(rome_css_syntax): codegen for CSS grammar by @ematipico in #2363
* fix(rome_css_syntax): updated nodes by @ematipico in #2371
* fix(playground): checkbox bug by @NicholasLYang in #2366
* chore: Upgrade to Rust 1.60.0 by @Boshen in #2373
* refactor: Move AST types to rome_rowan by @MichaReiser in #2372
* feature(playground): Deploy every commit to subdomain by @NicholasLYang in #2357
* perf(build): improve compile times by @leops in #2374
* fix: Outdated path crates/rome_playground -> website/playground
by @NicholasLYang in #2377
* refactor(rome_js_formatter): Support arbitrarily deep binary expressions
by @MichaReiser in #2376
* fix(rome_js_parser): Assignment error recovery by @MichaReiser in #2382
* perf(rome_rowan): SyntaxTriviaPiece.text() by @MichaReiser in #2381
* fix(rome_js_parser): Assignment in decorator by @MichaReiser in #2386
* feature(rome_js_formatter): Add support for printing single quotes by @cpojer in #2380
* chore: Document binary like expression formatting by @MichaReiser in #2388
* feat(rome_console): redact Unicode control characters by @leops in #2384
* fix(rome_js_formatter): Insert Space after type for import equals
declaration by @MichaReiser in #2391
* feature: Added formatting for self-closing JSX element by @NicholasLYang in #2273
* chore: Switch to pnpm. by @cpojer in #2387
* fix(rome_js_parser): Parsing of parenthesized in expression in
for initializer by @MichaReiser in #2396
* chore: update submodules by @MichaReiser in #2399
* chore: Fix syntax error in deploy playground workflow by @MichaReiser in #2401
* fix(rome_js_formatter): Use semicolons instead of commas for separating
keys in a type member list by @cpojer in #2412
* ci(website): fix deploy playground workflow by @NicholasLYang in #2392
* feature(rome_js_formatter): JSX Attributes by @NicholasLYang in #2393
* fix(rome_js_parser): Rewind at EOF by @MichaReiser in #2435
* feat(playground): align options horizontally by @jer3m01 in #2434
* chore: Fix the expected Prettier output of the binarish test by @MichaReiser in #2422
* feat(xtask): Check for sub unions overlap by @loginn in #2385
* ci(playground): Trying, yet again, to fix deploy_playground workflow
trigger by @NicholasLYang in #2433
* fix(playground): base url not propagated to vite by @NicholasLYang in #2452
* docs: fix contributing link by @jer3m01 in #2457
* chore: Print lines exceeding line widths by @MichaReiser in #2429
* Update GitHub Actions version by @Gumichocopengin8 in #2461
* fix(rome_js_parser): fix lexer panicking on unterminated unicode
escape at EOF by @Boshen in #2438
* feature(playground): Mobile playground by @NicholasLYang in #2432
* Feat(json): finish json ungram by @IWANABETHATGUY in #2466
* chore(ci): add conditions to workflow runs by @jer3m01 in #2459
* fix(rome_js_parser): consume ... in import expression by @Boshen in #2468
* refactor(rome_rowan): Use associated types for Ast* traits by @MichaReiser in #2463
* fix(rome_js_formatter): Fix stackoverflow on Windows for nested
seque… by @MichaReiser in #2469
* fix(rome_json_syntax): Update JSON AST Facade by @MichaReiser in #2470
* feat(rome_rowan): add has_comments API by @ematipico in #2464
* perf(rome_js_formatter): Reduce FormatElement size by @MichaReiser in #2456
* perf(rome_js_formatter): Reduce the String allocations for Tokens
by @MichaReiser in #2462
* normalize big int literals by @xunilrj in #2467
* docs: use dark and light logo by @jer3m01 in #2472
* fix(rome_rowan): fix syntaxtokentext display infinite recursion by @xunilrj in #2477
* refactor(rome_js_formatter): Move node formatting into its own
trait by @MichaReiser in #2476
* Update github actions version to v3 by @Gumichocopengin8 in #2480
* refactor(rome_js_formatter): Remove format_root from Formatter by @MichaReiser in #2478
* refactor(rome_js_formatter): Track token offsets instead of tokens
by @MichaReiser in #2481
* chore(rome_lsp): migration to tower_lsp crate by @IWANABETHATGUY in #2485
* feature(rome_js_parser): better handle of unicode for string literals,
templates and regex by @xunilrj in #2378
* chore(xtask): choose language when generating grammar by @IWANABETHATGUY in #2473
* feat: add rome_flags crate for feature flags by @yassere in #2487
* chore(xtask): robot fix typo by @IWANABETHATGUY in #2496
* fix(rome_js_formatter): bug preserve new-lines after directives
by @IWANABETHATGUY in #2500
* chore(ci): split the release workflow between the vscode extension
and CLI package by @leops in #2495
-------------------------------------------------------------------
Tue Apr 5 17:06:14 UTC 2022 - Avindra Goolcharan <avindra@opensuse.org>
- update to 0.4.2
* fix(rome_js_parser): Fix directive parsing #2323
* feat(vscode): add Show syntax tree command for supported documents #2309
* docs(website): add 'Getting Started' section #2320
* docs: add diff and migration against other formatters #2312
* docs: enhancements, add documentation for playground #2319
* docs(website): add link to binaries #2326
* chore(website): Grammar and style fixes #2329
* refactor(rome_rowan): Split API/Cursor files #2330
* feat(rome_console): Display trait and diff printing #2328
* fix(rome_playground): Unicode Support #2332
* fix(rome_formatter): add empty line after interpreter #2336
* feat(npm): add a postinstall script to the cli package #2333
* refactor(rome_js_parser): Streamline parser events #2327
* chore: rename rome_formatter to rome_js_formatter #2334
* feat(rome_cli): integrate the new diff printing with CI mode #2337
* chore: add CHANGELOG.md and README.md to npm #2340
* refactor(rome_js_formatter): move language agnostic code into
rome_formatter #2342
* feat(rome_console): add a Codespan utility struct to display annotated
code fragments #2341
* chore(ci): enable changelog generation and bump the version numbers
for the extension and CLI by @leops in #2345
* fix(rome_js_parser): correctly parse regex with unicode chars #2344
* fix(vscode): update the format of the npm lockfile in #2347
-------------------------------------------------------------------
Tue Mar 29 20:45:59 UTC 2022 - Avindra Goolcharan <avindra@opensuse.org>
- bump version to v0.4.0
-------------------------------------------------------------------
Sun Mar 27 21:43:27 UTC 2022 - Avindra Goolcharan <avindra@opensuse.org>
- initialize @rev 76bf61e5f8c4a279c1bb7fb640710b521aac1b10

56
biome.spec Normal file
View File

@@ -0,0 +1,56 @@
#
# spec file for package biome
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2022-2023 Avindra Goolcharan <avindra@opensuse.org>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define ver 1.3.1
%define rev 7d9080cf3084085d8a5a8bc1a00de6c0d294b6a2
Name: biome
Version: %{ver}
Release: 0
Summary: A JavaScript and TypeScript toolchain
License: MIT
Group: Productivity/Other
URL: https://github.com/biomejs/biome
Source0: https://github.com/biomejs/biome/archive/%{rev}.tar.gz#/%{name}-%{version}.tar.gz
Source1: vendor.tar.xz
Source2: cargo_config
BuildRequires: cargo-packaging
BuildRequires: rust >= 1.53.0
%description
A JavaScript and TypeScript toolchain.
%prep
%autosetup -a1 -p1 -n biome-%{rev}
cp %{SOURCE2} .cargo/config.toml
%build
export BIOME_VERSION=%{ver}-%{rev}
# auditable build fails
cargo build %{?__rustflags} %{?_smp_mflags} --release
%install
mkdir -p %{buildroot}%{_bindir}
cp target/release/%{name} %{buildroot}%{_bindir}
%files
%license LICENSE
%doc README.md
%{_bindir}/%{name}
%changelog

6
cargo_config Normal file
View File

@@ -0,0 +1,6 @@
[source.crates-io]
replace-with = "vendored-sources"
[source.vendored-sources]
directory = "vendor"

3
vendor.tar.xz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9abe48546e68cbeb016ea662cd2d99da958909d0ca81b675baf88feaf83dc160
size 31705388