Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: biomejs/biome
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 7669b334ecfb9580abe83bbf6141232805f0e4bd
Choose a base ref
...
head repository: biomejs/biome
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 23b5a73ac7ccd4920f13919aaa712b9364020e88
Choose a head ref
  • 19 commits
  • 187 files changed
  • 8 contributors

Commits on Mar 22, 2024

  1. chore: enable dependency dashboard

    ematipico committed Mar 22, 2024
    Copy the full SHA
    1e81a8f View commit details
  2. feat(parser): GritQL parser (#1998)

    arendjr authored Mar 22, 2024
    Copy the full SHA
    a7ef325 View commit details
  3. chore: reduce redundant lexer methods (#2165)

    arendjr authored Mar 22, 2024
    Copy the full SHA
    2edcd59 View commit details
  4. chore(ci): update setup-rust cache strategy (#2166)

    Sec-ant authored Mar 22, 2024
    Copy the full SHA
    faf6587 View commit details
  5. chore(ci): do not cache nightly channel (#2167)

    Sec-ant authored Mar 22, 2024
    Copy the full SHA
    091854f View commit details

Commits on Mar 23, 2024

  1. feat(lint/noEvolvingAny): add rule (#2112)

    fujiyamaorange authored Mar 23, 2024
    Copy the full SHA
    a2027da View commit details
  2. chore(ci): revert wasm-pack dev mode change (#2170)

    Sec-ant authored Mar 23, 2024
    Copy the full SHA
    95974a1 View commit details
  3. fix(biome_fs): configuration resolution (#2169)

    Sec-ant authored Mar 23, 2024
    Copy the full SHA
    523181c View commit details

Commits on Mar 24, 2024

  1. fix(website): control flow (#2174)

    Sec-ant authored Mar 24, 2024
    Copy the full SHA
    f534bbd View commit details
  2. feat(css_formatter): CssPropertyAtRule formatting (#2181)

    denbezrukov authored Mar 24, 2024
    Copy the full SHA
    d2c70d6 View commit details
  3. feat(css_formatter): CssNamespaceAtRule formatting (#2182)

    denbezrukov authored Mar 24, 2024
    Copy the full SHA
    70bce5a View commit details
  4. docs(guides/how-biome-works): remove dangling phrase (#2179)

    marcalexiei authored Mar 24, 2024
    Copy the full SHA
    3414bd8 View commit details

Commits on Mar 25, 2024

  1. fix(js_formatter): break long destructuring binding pattern (#2185)

    ah-yu authored Mar 25, 2024
    Copy the full SHA
    35ba975 View commit details
  2. fix(service): cached JsFormatOptions with overrides (#2186)

    Sec-ant authored Mar 25, 2024
    Copy the full SHA
    6a2d92a View commit details
  3. fix(lsp): quick fix code actions (#2178)

    Sec-ant authored Mar 25, 2024
    Copy the full SHA
    5d5520a View commit details
  4. fix(website): a small typo (#2192)

    Sec-ant authored Mar 25, 2024
    Copy the full SHA
    c356971 View commit details
  5. fix(codegen): new lint rule generation (#2187)

    unvalley authored Mar 25, 2024
    Copy the full SHA
    b1fda2a View commit details
  6. fix(lsp): format range for Astro/Vue/Svelte files (#2193)

    ematipico authored Mar 25, 2024
    Copy the full SHA
    3aa2625 View commit details
  7. release: 1.6.3 (#2195)

    ematipico authored Mar 25, 2024
    Copy the full SHA
    23b5a73 View commit details
Showing with 15,315 additions and 783 deletions.
  1. +1 −0 .github/renovate.json
  2. +4 −0 .github/workflows/bench_cli.yml
  3. +1 −0 .github/workflows/benchmark.yml
  4. +7 −0 .github/workflows/main.yml
  5. +3 −0 .github/workflows/parser_conformance.yml
  6. +10 −0 .github/workflows/pull_request.yml
  7. +2 −0 .github/workflows/pull_request_js.yml
  8. +0 −54 .github/workflows/runtime.yml
  9. +43 −0 CHANGELOG.md
  10. +23 −0 Cargo.lock
  11. +2 −0 Cargo.toml
  12. +1 −1 crates/biome_analyze/CONTRIBUTING.md
  13. +0 −2 crates/biome_analyze/src/lib.rs
  14. +1 −1 crates/biome_cli/src/cli_options.rs
  15. +55 −0 crates/biome_cli/tests/cases/config_path.rs
  16. +1 −0 crates/biome_cli/tests/cases/mod.rs
  17. +61 −0 crates/biome_cli/tests/snapshots/main_cases_config_path/set_config_path.snap
  18. +6 −7 crates/biome_cli/tests/snapshots/main_commands_check/check_help.snap
  19. +6 −7 crates/biome_cli/tests/snapshots/main_commands_ci/ci_help.snap
  20. +6 −7 crates/biome_cli/tests/snapshots/main_commands_format/format_help.snap
  21. +2 −4 crates/biome_cli/tests/snapshots/main_commands_lint/lint_help.snap
  22. +2 −4 crates/biome_cli/tests/snapshots/main_commands_migrate/migrate_help.snap
  23. +2 −4 crates/biome_cli/tests/snapshots/main_commands_rage/rage_help.snap
  24. +20 −3 crates/biome_css_formatter/src/css/statements/namespace_at_rule.rs
  25. +19 −3 crates/biome_css_formatter/src/css/statements/property_at_rule.rs
  26. +8 −0 crates/biome_css_formatter/tests/specs/css/atrule/namespace.css
  27. +43 −0 crates/biome_css_formatter/tests/specs/css/atrule/namespace.css.snap
  28. +7 −0 crates/biome_css_formatter/tests/specs/css/atrule/property.css
  29. +41 −0 crates/biome_css_formatter/tests/specs/css/atrule/property.css.snap
  30. +0 −174 crates/biome_css_formatter/tests/specs/prettier/css/atrule/namespaces.css.snap
  31. +6 −6 crates/biome_css_formatter/tests/specs/prettier/css/comments/at-rules.css.snap
  32. +1 −0 crates/biome_diagnostics_categories/src/categories.rs
  33. +77 −65 crates/biome_fs/src/fs.rs
  34. +47 −24 crates/biome_grit_factory/src/generated/node_factory.rs
  35. +10 −20 crates/biome_grit_factory/src/generated/syntax_factory.rs
  36. +44 −0 crates/biome_grit_parser/Cargo.toml
  37. +61 −0 crates/biome_grit_parser/src/constants.rs
  38. +1,072 −0 crates/biome_grit_parser/src/lexer/mod.rs
  39. +510 −0 crates/biome_grit_parser/src/lexer/tests.rs
  40. +102 −0 crates/biome_grit_parser/src/lib.rs
  41. +160 −0 crates/biome_grit_parser/src/parser/definitions.rs
  42. +303 −0 crates/biome_grit_parser/src/parser/literals.rs
  43. +340 −0 crates/biome_grit_parser/src/parser/mod.rs
  44. +80 −0 crates/biome_grit_parser/src/parser/parse_error.rs
  45. +997 −0 crates/biome_grit_parser/src/parser/patterns.rs
  46. +384 −0 crates/biome_grit_parser/src/parser/predicates.rs
  47. +144 −0 crates/biome_grit_parser/src/token_source.rs
  48. +3 −0 crates/biome_grit_parser/tests/grit_test_suite/err/dotdot_clause.grit
  49. +152 −0 crates/biome_grit_parser/tests/grit_test_suite/err/dotdot_clause.grit.snap
  50. +3 −0 crates/biome_grit_parser/tests/grit_test_suite/err/dotdotdotdot_clause.grit
  51. +152 −0 crates/biome_grit_parser/tests/grit_test_suite/err/dotdotdotdot_clause.grit.snap
  52. +1 −0 crates/biome_grit_parser/tests/grit_test_suite/err/incorrect_engine.grit
  53. +72 −0 crates/biome_grit_parser/tests/grit_test_suite/err/incorrect_engine.grit.snap
  54. +1 −0 crates/biome_grit_parser/tests/grit_test_suite/err/incorrect_string_prefix.grit
  55. +66 −0 crates/biome_grit_parser/tests/grit_test_suite/err/incorrect_string_prefix.grit.snap
  56. +1 −0 crates/biome_grit_parser/tests/grit_test_suite/err/incorrect_version.grit
  57. +57 −0 crates/biome_grit_parser/tests/grit_test_suite/err/incorrect_version.grit.snap
  58. +1 −0 crates/biome_grit_parser/tests/grit_test_suite/err/invalid_language.grit
  59. +63 −0 crates/biome_grit_parser/tests/grit_test_suite/err/invalid_language.grit.snap
  60. +1 −0 crates/biome_grit_parser/tests/grit_test_suite/err/invalid_node_argument.grit
  61. +75 −0 crates/biome_grit_parser/tests/grit_test_suite/err/invalid_node_argument.grit.snap
  62. +5 −0 crates/biome_grit_parser/tests/grit_test_suite/err/invalid_predicate.grit
  63. +159 −0 crates/biome_grit_parser/tests/grit_test_suite/err/invalid_predicate.grit.snap
  64. +3 −0 crates/biome_grit_parser/tests/grit_test_suite/err/invalid_predicate_operator.grit
  65. +136 −0 crates/biome_grit_parser/tests/grit_test_suite/err/invalid_predicate_operator.grit.snap
  66. +5 −0 crates/biome_grit_parser/tests/grit_test_suite/err/invalid_predicate_subject.grit
  67. +197 −0 crates/biome_grit_parser/tests/grit_test_suite/err/invalid_predicate_subject.grit.snap
  68. +1 −0 crates/biome_grit_parser/tests/grit_test_suite/err/language_with_invalid_flavor.grit
  69. +78 −0 crates/biome_grit_parser/tests/grit_test_suite/err/language_with_invalid_flavor.grit.snap
  70. +6 −0 crates/biome_grit_parser/tests/grit_test_suite/err/malformed_if_predicate.grit
  71. +166 −0 crates/biome_grit_parser/tests/grit_test_suite/err/malformed_if_predicate.grit.snap
  72. +4 −0 crates/biome_grit_parser/tests/grit_test_suite/err/map_with_invalid_key.grit
  73. +161 −0 crates/biome_grit_parser/tests/grit_test_suite/err/map_with_invalid_key.grit.snap
  74. +1 −0 crates/biome_grit_parser/tests/grit_test_suite/err/missing_version.grit
  75. +55 −0 crates/biome_grit_parser/tests/grit_test_suite/err/missing_version.grit.snap
  76. +3 −0 crates/biome_grit_parser/tests/grit_test_suite/err/multiple_patterns.grit
  77. +165 −0 crates/biome_grit_parser/tests/grit_test_suite/err/multiple_patterns.grit.snap
  78. +4 −0 crates/biome_grit_parser/tests/grit_test_suite/ok/as_modifier.grit
  79. +134 −0 crates/biome_grit_parser/tests/grit_test_suite/ok/as_modifier.grit.snap
  80. +1 −0 crates/biome_grit_parser/tests/grit_test_suite/ok/backtick_snippet.grit
  81. +42 −0 crates/biome_grit_parser/tests/grit_test_suite/ok/backtick_snippet.grit.snap
  82. +3 −0 crates/biome_grit_parser/tests/grit_test_suite/ok/bubble_clause.grit
  83. +108 −0 crates/biome_grit_parser/tests/grit_test_suite/ok/bubble_clause.grit.snap
  84. +3 −0 crates/biome_grit_parser/tests/grit_test_suite/ok/bubble_clause_arguments.grit
  85. +121 −0 crates/biome_grit_parser/tests/grit_test_suite/ok/bubble_clause_arguments.grit.snap
  86. +3 −0 crates/biome_grit_parser/tests/grit_test_suite/ok/contains_operator.grit
  87. +86 −0 crates/biome_grit_parser/tests/grit_test_suite/ok/contains_operator.grit.snap
  88. +6 −0 crates/biome_grit_parser/tests/grit_test_suite/ok/create_new_files.grit
  89. +192 −0 crates/biome_grit_parser/tests/grit_test_suite/ok/create_new_files.grit.snap
  90. +3 −0 crates/biome_grit_parser/tests/grit_test_suite/ok/dotdotdot_clause.grit
  91. +135 −0 crates/biome_grit_parser/tests/grit_test_suite/ok/dotdotdot_clause.grit.snap
  92. +3 −0 crates/biome_grit_parser/tests/grit_test_suite/ok/every_clause.grit
  93. +121 −0 crates/biome_grit_parser/tests/grit_test_suite/ok/every_clause.grit.snap
  94. +1 −0 crates/biome_grit_parser/tests/grit_test_suite/ok/file_node.grit
  95. +89 −0 crates/biome_grit_parser/tests/grit_test_suite/ok/file_node.grit.snap
  96. +25 −0 crates/biome_grit_parser/tests/grit_test_suite/ok/function_definition.grit
  97. +629 −0 crates/biome_grit_parser/tests/grit_test_suite/ok/function_definition.grit.snap
  98. +7 −0 crates/biome_grit_parser/tests/grit_test_suite/ok/if_else_pattern.grit
  99. +163 −0 crates/biome_grit_parser/tests/grit_test_suite/ok/if_else_pattern.grit.snap
  100. +1 −0 crates/biome_grit_parser/tests/grit_test_suite/ok/language.grit
  101. +45 −0 crates/biome_grit_parser/tests/grit_test_suite/ok/language.grit.snap
  102. +1 −0 crates/biome_grit_parser/tests/grit_test_suite/ok/language_with_flavor.grit
  103. +58 −0 crates/biome_grit_parser/tests/grit_test_suite/ok/language_with_flavor.grit.snap
  104. +3 −0 crates/biome_grit_parser/tests/grit_test_suite/ok/limit_clause.grit
  105. +112 −0 crates/biome_grit_parser/tests/grit_test_suite/ok/limit_clause.grit.snap
  106. +3 −0 crates/biome_grit_parser/tests/grit_test_suite/ok/list_pattern.grit
  107. +126 −0 crates/biome_grit_parser/tests/grit_test_suite/ok/list_pattern.grit.snap
  108. +5 −0 crates/biome_grit_parser/tests/grit_test_suite/ok/map.grit
  109. +179 −0 crates/biome_grit_parser/tests/grit_test_suite/ok/map.grit.snap
  110. +4 −0 crates/biome_grit_parser/tests/grit_test_suite/ok/multiply.grit
  111. +111 −0 crates/biome_grit_parser/tests/grit_test_suite/ok/multiply.grit.snap
  112. +3 −0 crates/biome_grit_parser/tests/grit_test_suite/ok/not_condition.grit
  113. +99 −0 crates/biome_grit_parser/tests/grit_test_suite/ok/not_condition.grit.snap
  114. +6 −0 crates/biome_grit_parser/tests/grit_test_suite/ok/or_condition.grit
  115. +126 −0 crates/biome_grit_parser/tests/grit_test_suite/ok/or_condition.grit.snap
  116. +4 −0 crates/biome_grit_parser/tests/grit_test_suite/ok/pattern_definition.grit
  117. +134 −0 crates/biome_grit_parser/tests/grit_test_suite/ok/pattern_definition.grit.snap
  118. +1 −0 crates/biome_grit_parser/tests/grit_test_suite/ok/pattern_with_version.grit
  119. +47 −0 crates/biome_grit_parser/tests/grit_test_suite/ok/pattern_with_version.grit.snap
  120. +16 −0 crates/biome_grit_parser/tests/grit_test_suite/ok/precedence_rules.grit
  121. +433 −0 crates/biome_grit_parser/tests/grit_test_suite/ok/precedence_rules.grit.snap
  122. +6 −0 crates/biome_grit_parser/tests/grit_test_suite/ok/predicate_definition.grit
  123. +149 −0 crates/biome_grit_parser/tests/grit_test_suite/ok/predicate_definition.grit.snap
  124. +3 −0 crates/biome_grit_parser/tests/grit_test_suite/ok/private_pattern.grit
  125. +77 −0 crates/biome_grit_parser/tests/grit_test_suite/ok/private_pattern.grit.snap
  126. +1 −0 crates/biome_grit_parser/tests/grit_test_suite/ok/regex.grit
  127. +44 −0 crates/biome_grit_parser/tests/grit_test_suite/ok/regex.grit.snap
  128. +1 −0 crates/biome_grit_parser/tests/grit_test_suite/ok/rewrite.grit
  129. +57 −0 crates/biome_grit_parser/tests/grit_test_suite/ok/rewrite.grit.snap
  130. +6 −0 crates/biome_grit_parser/tests/grit_test_suite/ok/rewrite_in_where.grit
  131. +133 −0 crates/biome_grit_parser/tests/grit_test_suite/ok/rewrite_in_where.grit.snap
  132. +3 −0 crates/biome_grit_parser/tests/grit_test_suite/ok/until_modifier.grit
  133. +97 −0 crates/biome_grit_parser/tests/grit_test_suite/ok/until_modifier.grit.snap
  134. +3 −0 crates/biome_grit_parser/tests/grit_test_suite/ok/within_clause.grit
  135. +84 −0 crates/biome_grit_parser/tests/grit_test_suite/ok/within_clause.grit.snap
  136. +116 −0 crates/biome_grit_parser/tests/spec_test.rs
  137. +13 −0 crates/biome_grit_parser/tests/spec_tests.rs
  138. +5 −2 crates/biome_grit_syntax/src/generated/kind.rs
  139. +18 −0 crates/biome_grit_syntax/src/generated/macros.rs
  140. +635 −35 crates/biome_grit_syntax/src/generated/nodes.rs
  141. +3 −15 crates/biome_grit_syntax/src/generated/nodes_mut.rs
  142. +15 −3 crates/biome_grit_syntax/src/lib.rs
  143. +15 −0 crates/biome_grit_syntax/src/syntax_ext.rs
  144. +2 −0 crates/biome_js_analyze/src/lint/nursery.rs
  145. +123 −0 crates/biome_js_analyze/src/lint/nursery/no_evolving_any.rs
  146. +2 −0 crates/biome_js_analyze/src/options.rs
  147. +19 −0 crates/biome_js_analyze/tests/specs/nursery/noEvolvingAny/invalid.ts
  148. +176 −0 crates/biome_js_analyze/tests/specs/nursery/noEvolvingAny/invalid.ts.snap
  149. +15 −0 crates/biome_js_analyze/tests/specs/nursery/noEvolvingAny/valid.ts
  150. +23 −0 crates/biome_js_analyze/tests/specs/nursery/noEvolvingAny/valid.ts.snap
  151. +8 −5 crates/biome_js_formatter/src/js/bindings/object_binding_pattern_property.rs
  152. +1 −0 crates/biome_js_formatter/tests/specs/js/module/binding/object_binding.js
  153. +9 −4 crates/biome_js_formatter/tests/specs/js/module/binding/object_binding.js.snap
  154. +0 −62 crates/biome_js_parser/src/lexer/mod.rs
  155. +5 −0 crates/biome_lsp/src/handlers/analysis.rs
  156. +31 −0 crates/biome_lsp/src/handlers/formatting.rs
  157. +26 −0 crates/biome_parser/src/lexer.rs
  158. +2 −2 crates/biome_service/src/configuration/formatter.rs
  159. +1 −1 crates/biome_service/src/configuration/javascript/formatter.rs
  160. +59 −38 crates/biome_service/src/configuration/linter/rules.rs
  161. +2 −2 crates/biome_service/src/configuration/mod.rs
  162. +1 −1 crates/biome_service/src/configuration/overrides.rs
  163. +87 −57 crates/biome_service/src/settings.rs
  164. +4 −1 knope.toml
  165. +7 −2 packages/@biomejs/backend-jsonrpc/src/workspace.ts
  166. +9 −2 packages/@biomejs/biome/configuration_schema.json
  167. +1 −1 packages/@biomejs/biome/package.json
  168. +9 −0 shared/biome.json
  169. +1 −1 website/src/components/generated/NumberOfRules.astro
  170. +11 −11 website/src/content/docs/guides/getting-started.mdx
  171. +20 −24 website/src/content/docs/guides/how-biome-works.mdx
  172. +43 −0 website/src/content/docs/internals/changelog.md
  173. +9 −9 website/src/content/docs/ja/guides/getting-started.mdx
  174. +1 −0 website/src/content/docs/linter/rules/index.mdx
  175. +91 −0 website/src/content/docs/linter/rules/no-evolving-any.md
  176. +9 −9 website/src/content/docs/pt-br/guides/getting-started.mdx
  177. +16 −16 website/src/content/docs/reference/cli.mdx
  178. +55 −40 website/src/content/docs/reference/configuration.mdx
  179. +9 −9 website/src/content/docs/zh-cn/guides/getting-started.mdx
  180. +5 −5 website/src/content/docs/zh-cn/reference/configuration.mdx
  181. +2,947 −0 website/src/pages/schemas/1.6.3/schema.json.js
  182. +40 −20 website/src/playground/tabs/ControlFlowTab.tsx
  183. +1 −0 website/src/styles/playground/_results.scss
  184. +29 −7 xtask/codegen/gritql.ungram
  185. +12 −10 xtask/codegen/src/generate_new_lintrule.rs
  186. +5 −2 xtask/codegen/src/grit_kinds_src.rs
  187. +1 −1 xtask/codegen/src/language_kind.rs
1 change: 1 addition & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -2,6 +2,7 @@
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"timezone": "Europe/Gibraltar",
"schedule": ["before 9am on monday"],
"extends": ["config:recommended", ":dependencyDashboard"],
"assignees": ["@biomejs/maintainers", "@biomejs/core-contributors"],
"packageRules": [
{
4 changes: 4 additions & 0 deletions .github/workflows/bench_cli.yml
Original file line number Diff line number Diff line change
@@ -35,6 +35,10 @@ jobs:

- name: Install toolchain
uses: moonrepo/setup-rust@v1
with:
channel: stable
cache-target: release
cache-base: main

- name: Install hyperfine
run: cargo install hyperfine
1 change: 1 addition & 0 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
@@ -43,6 +43,7 @@ jobs:
channel: stable
cache-target: release
bins: cargo-codspeed
cache-base: main

- name: Compile
run: cargo codspeed build --features codspeed -p xtask_bench
7 changes: 7 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -32,6 +32,7 @@ jobs:
with:
components: rustfmt
bins: taplo-cli
cache-base: main
- name: Run rustfmt
run: |
cargo fmt --all --verbose -- --check
@@ -49,6 +50,7 @@ jobs:
uses: moonrepo/setup-rust@v1
with:
components: clippy
cache-base: main
- name: Run cargo check
run: cargo check --workspace --all-targets --release
- name: Run clippy
@@ -66,6 +68,7 @@ jobs:
uses: moonrepo/setup-rust@v1
with:
channel: nightly
cache: false
- name: Install udeps
run: cargo install cargo-udeps --locked
- name: Run udeps
@@ -89,6 +92,7 @@ jobs:
uses: moonrepo/setup-rust@v1
with:
bins: cargo-nextest
cache-base: main
- name: Run tests on ${{ matrix.os }}
run: cargo nextest run --workspace --verbose
- name: Clean cache
@@ -114,6 +118,9 @@ jobs:
uses: ./.github/actions/free-disk-space
- name: Install toolchain
uses: moonrepo/setup-rust@v1
with:
cache-target: release
cache-base: main
- name: Compile
run: cargo build --release --locked -p xtask_coverage
- name: Run Test262 suite
3 changes: 3 additions & 0 deletions .github/workflows/parser_conformance.yml
Original file line number Diff line number Diff line change
@@ -40,6 +40,9 @@ jobs:

- name: Install toolchain
uses: moonrepo/setup-rust@v1
with:
cache-target: release
cache-base: main

- name: Compile
run: cargo build --release --locked -p xtask_coverage
10 changes: 10 additions & 0 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
@@ -36,6 +36,7 @@ jobs:
with:
components: rustfmt
bins: taplo-cli
cache-base: main
- name: Run format
run: |
cargo fmt --all --check
@@ -53,6 +54,7 @@ jobs:
uses: moonrepo/setup-rust@v1
with:
components: clippy
cache-base: main
- name: Run clippy
run: cargo lint

@@ -88,6 +90,7 @@ jobs:
uses: moonrepo/setup-rust@v1
with:
bins: cargo-nextest
cache-base: main
- name: Run tests
run: cargo nextest run --workspace --verbose
- name: Run doctests
@@ -116,6 +119,9 @@ jobs:
uses: ./.github/actions/free-disk-space
- name: Install toolchain
uses: moonrepo/setup-rust@v1
with:
cache-target: release
cache-base: main
- name: Build main binary
run: cargo build -p biome_cli --release
- name: Install Node.js
@@ -157,6 +163,8 @@ jobs:
uses: ./.github/actions/free-disk-space
- name: Install toolchain
uses: moonrepo/setup-rust@v1
with:
cache-base: main
- name: Run doc command
run: cargo documentation

@@ -170,6 +178,8 @@ jobs:
uses: ./.github/actions/free-disk-space
- name: Install toolchain
uses: moonrepo/setup-rust@v1
with:
cache-base: main
- name: Run the grammar codegen
run: cargo codegen grammar
- name: Run the analyzer codegen
2 changes: 2 additions & 0 deletions .github/workflows/pull_request_js.yml
Original file line number Diff line number Diff line change
@@ -60,6 +60,8 @@ jobs:
- uses: pnpm/action-setup@v3
- name: Install toolchain
uses: moonrepo/setup-rust@v1
with:
cache-base: main
- name: Install wasm-pack
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- name: Build WASM module for the web
54 changes: 0 additions & 54 deletions .github/workflows/runtime.yml

This file was deleted.

43 changes: 43 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -9,6 +9,49 @@ New entries must be placed in a section entitled `Unreleased`.
Read
our [guidelines for writing a good changelog entry](https://github.com/biomejs/biome/blob/main/CONTRIBUTING.md#changelog).

## 1.6.3 (2024-03-25)

### Analyzer

### CLI

#### Bug fixes

- Fix configuration resolution. Biome is now able to correctly find the `biome.jsonc` configuration file when `--config-path` is explicitly set ([#2164](https://github.com/biomejs/biome/issues/2164)). Contributed by @Sec-ant

- JavaScript/TypeScript files of different variants (`.ts`, `.js`, `.tsx`, `.jsx`) in a single workspace now have stable formatting behaviors when running the CLI command in paths of different nested levels or in different operating systems ([#2080](https://github.com/biomejs/biome/issues/2080), [#2109](https://github.com/biomejs/biome/issues/2109)). Contributed by @Sec-ant

### Configuration

#### Bug fixes

- Complete the documentation and overrides support for options `formatter.lineEnding`, `[language].formatter.lineEnding`, `formatter.attributePosition` and `javascript.formatter.attributePosition`. Contributed by @Sec-ant

### Editors

### Formatter

#### Bug fixes

- Fix [#2172](https://github.com/biomejs/biome/issues/2172) by breaking long object destructuring patterns. Contributed by @ah-yu

### JavaScript APIs

### Linter

#### New features

- Add rule [noEvolvingAny](https://biomejs.dev/linter/rules/no-evolving-any) to disallow variables from evolving into `any` type through reassignments. Contributed by @fujiyamaorange

### LSP

#### Bug fixes

- Quickfix action no longer autofixes lint rule errors on save when `linter` is disabled ([#2161](https://github.com/biomejs/biome/issues/2161)). Contributed by @Sec-ant
- Range formatting for Astro/Svelte/Vue doesn't place code out of place, especially when formatting on paste is enabled. Contributed by @ematipico

### Parser

## 1.6.2 (2024-03-22)

### Analyzer
23 changes: 23 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -111,6 +111,8 @@ biome_diagnostics_categories = { version = "0.5.7", path = "./crates/biome_diagn
biome_diagnostics_macros = { version = "0.5.7", path = "./crates/biome_diagnostics_macros" }
biome_formatter = { version = "0.5.7", path = "./crates/biome_formatter" }
biome_fs = { version = "0.5.7", path = "./crates/biome_fs" }
biome_grit_factory = { version = "0.5.7", path = "./crates/biome_grit_factory" }
biome_grit_parser = { version = "0.1.0", path = "./crates/biome_grit_parser" }
biome_grit_syntax = { version = "0.5.7", path = "./crates/biome_grit_syntax" }
biome_html_syntax = { version = "0.5.7", path = "./crates/biome_html_syntax" }
biome_js_analyze = { version = "0.5.7", path = "./crates/biome_js_analyze" }
2 changes: 1 addition & 1 deletion crates/biome_analyze/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -78,7 +78,7 @@ Let's say we want to create a new rule called `myRuleName`, which uses the seman
```

While implementing the diagnostic, please keep [Biome's technical principals](https://biomejs.dev/internals/philosophy/#technical) in mind.

1. Implement the optional `action` function, if we are able to provide a code action:

```rust,ignore
2 changes: 0 additions & 2 deletions crates/biome_analyze/src/lib.rs
Original file line number Diff line number Diff line change
@@ -272,8 +272,6 @@ where
continue;
}
};
trace!("Event {:?}", &node_event);

// If this is a node event pass it to the visitors for this phase
for visitor in self.visitors.iter_mut() {
let ctx = VisitorContext {
2 changes: 1 addition & 1 deletion crates/biome_cli/src/cli_options.rs
Original file line number Diff line number Diff line change
@@ -21,7 +21,7 @@ pub struct CliOptions {
#[bpaf(long("verbose"), switch, fallback(false))]
pub verbose: bool,

/// Set the directory of the biome.json configuration file and disable default configuration file resolution.
/// Set the directory of the biome.json or biome.jsonc configuration file and disable default configuration file resolution.
#[bpaf(long("config-path"), argument("PATH"), optional)]
pub config_path: Option<String>,

55 changes: 55 additions & 0 deletions crates/biome_cli/tests/cases/config_path.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
use crate::run_cli;
use crate::snap_test::{assert_cli_snapshot, SnapshotPayload};
use biome_console::BufferConsole;
use biome_fs::MemoryFileSystem;
use biome_service::DynRef;
use bpaf::Args;
use std::path::Path;

#[test]
fn set_config_path() {
let mut fs = MemoryFileSystem::default();
let mut console = BufferConsole::default();

let file_path = Path::new("src/index.js");
fs.insert(file_path.into(), "a['b'] = 42;".as_bytes());

let config_path = Path::new("config/biome.jsonc");
fs.insert(
config_path.into(),
r#"
{
"organizeImports": {
"enabled": true
},
"linter": {
"enabled": false
},
"formatter": {
"enabled": true,
},
"javascript": {
"formatter": {
"quoteStyle": "single"
}
}
}"#
.as_bytes(),
);

let result = run_cli(
DynRef::Borrowed(&mut fs),
&mut console,
Args::from([("check"), ("--config-path=config"), ("src")].as_slice()),
);

assert!(result.is_err(), "run_cli returned {result:?}");

assert_cli_snapshot(SnapshotPayload::new(
module_path!(),
"set_config_path",
fs,
console,
result,
));
}
1 change: 1 addition & 0 deletions crates/biome_cli/tests/cases/mod.rs
Original file line number Diff line number Diff line change
@@ -3,6 +3,7 @@
mod biome_json_support;
mod config_extends;
mod config_path;
mod cts_files;
mod diagnostics;
mod handle_astro_files;
Loading