Skip to content

Commit

Permalink
Merge branch 'main' into renovate/@biomejs-packages
Browse files Browse the repository at this point in the history
  • Loading branch information
ematipico committed Jun 10, 2024
2 parents e80f8b5 + da6f180 commit bd31f6f
Show file tree
Hide file tree
Showing 210 changed files with 16,117 additions and 42,399 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ env:

jobs:
format:
name: Format and Lint Rust Files
name: Format project
runs-on: ubuntu-latest
steps:
- name: Checkout PR branch
Expand All @@ -44,7 +44,7 @@ jobs:
taplo format --check
lint:
name: Lint Rust Files
name: Lint project
runs-on: ubuntu-latest
steps:
- name: Checkout PR Branch
Expand All @@ -57,7 +57,9 @@ jobs:
components: clippy
cache-base: main
- name: Run clippy
run: cargo lint
run: |
cargo lint
cargo run -p rules_check
check-dependencies:
name: Check Dependencies
Expand Down
44 changes: 41 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ our [guidelines for writing a good changelog entry](https://github.com/biomejs/b
#### Bug fixes

- Fix [#3069](https://github.com/biomejs/biome/issues/3069), prevent overwriting paths when using `--staged` or `--changed` options. Contributed by @unvalley
- Fix the bug where whitespace after the & character in CSS nesting was incorrectly trimmed, ensuring proper targeting of child classes [#3061](https://github.com/biomejs/biome/issues/3061). Contributed by @denbezrukov

- Fix a case where the file link inside a diagnostic wasn't correctly displayed inside a terminal run by VSCode. Contributed by @uncenter

### Configuration

Expand All @@ -31,17 +30,55 @@ our [guidelines for writing a good changelog entry](https://github.com/biomejs/b

### Formatter

#### Bug fixes
- Fix the bug where whitespace after the & character in CSS nesting was incorrectly trimmed, ensuring proper targeting of child classes [#3061](https://github.com/biomejs/biome/issues/3061). Contributed by @denbezrukov
- Fix [#3068](https://github.com/biomejs/biome/issues/3068) where the CSS formatter was inadvertently converting variable declarations and function calls to lowercase. Contributed by @denbezrukov

### JavaScript APIs

### Linter

#### Bug fixes

- The `no-empty-block` css lint rule now treats empty blocks containing comments as valid ones. Contributed by @Sec-ant
- The `noEmptyBlock` css lint rule now treats empty blocks containing comments as valid ones. Contributed by @Sec-ant

- [useLiteralKeys](https://biomejs.dev/linter/rules/use-literal-keys/) no longer reports quoted member names ([#3085](https://github.com/biomejs/biome/issues/3085)).

Previously [useLiteralKeys](https://biomejs.dev/linter/rules/use-literal-keys/) reported quoted member names that can be unquoted.
For example, the rule suggested the following fix:

```diff
- const x = { "prop": 0 };
+ const x = { prop: 0 };
```

This conflicted with the option [quoteProperties](https://biomejs.dev/reference/configuration/#javascriptformatterquoteproperties) of our formatter.

The rule now ignores quoted member names.

Contributed by @Conaclos

- [noEmptyInterface](https://biomejs.dev/linter/rules/no-empty-interface/) now ignores empty interfaces in ambient modules ([#3110](https://github.com/biomejs/biome/issues/3110)). Contributed by @Conaclos

- [noUnusedVariables](https://biomejs.dev/linter/rules/no-unused-variables/) and [noUnusedFunctionParameters](https://biomejs.dev/linter/rules/no-unused-function-parameters/) no longer report the parameters of a constructor type ([#3135](https://github.com/biomejs/biome/issues/3135)).

Previously, `arg` was reported as unused in a constructor type like:

```ts
export type Classlike = new (arg: unknown) => string;
```

Contributed by @Conaclos

### Parser

#### New features
- Implemented CSS Unknown At-Rule parsing, allowing the parser to gracefully handle unsupported or unrecognized CSS at-rules. Contributed by @denbezrukov

#### Bug fixes
- Fix [#3055](https://github.com/biomejs/biome/issues/3055) CSS: Layout using named grid lines is now correctly parsed. Contributed by @denbezrukov
- Fix [#3091](https://github.com/biomejs/biome/issues/3091). Allows the parser to handle nested style rules and at-rules properly, enhancing the parser's compatibility with the CSS Nesting Module. Contributed by @denbezrukov

## 1.8.0 (2024-06-04)

### Analyzer
Expand Down Expand Up @@ -398,6 +435,7 @@ New rules are incubated in the nursery group. Once stable, we promote them to a
- Add [nursery/useGenericFontNames](https://biomejs.dev/linter/rules/use-generic-font-names). [#2573](https://github.com/biomejs/biome/pull/2573) Contributed by @togami2864
- Add [nursery/noYodaExpression](https://biomejs.dev/linter/rules/no-yoda-expression/). Contributed by @michellocana
- Add [nursery/noUnusedFunctionParameters](https://biomejs.dev/linter/rules/no-unused-function-parameters/) Contributed by @printfn
- Add [nursery/UseSemanticElements](https://biomejs.dev/linter/rules/use-semantic-elements/). Contributed by @fujiyamaorange

#### Enhancements

Expand Down
110 changes: 80 additions & 30 deletions Cargo.lock

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

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[workspace]
# Use the newer version of the cargo resolver
# https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions
members = ["crates/*", "xtask/bench", "xtask/codegen", "xtask/coverage", "xtask/libs_bench"]
members = ["crates/*", "xtask/bench", "xtask/codegen", "xtask/coverage", "xtask/libs_bench", "xtask/rules_check"]
resolver = "2"

[workspace.lints.rust]
Expand Down Expand Up @@ -159,7 +159,7 @@ bpaf = { version = "0.9.9", features = ["derive"] }
countme = "3.0.1"
crossbeam = "0.8.4"
dashmap = "5.4.0"
enumflags2 = "0.7.9"
enumflags2 = "0.7.10"
getrandom = "0.2.15"
ignore = "0.4.21"
indexmap = { version = "2.2.6", features = ["serde"] }
Expand All @@ -171,7 +171,7 @@ quickcheck = "1.0.3"
quickcheck_macros = "1.0.0"
quote = "1.0.36"
rayon = "1.10.0"
regex = "1.10.4"
regex = "1.10.5"
rustc-hash = "1.1.0"
schemars = { version = "0.8.21", features = ["indexmap2", "smallvec"] }
serde = { version = "1.0.203", features = ["derive"] }
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.benchmark
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM rust:1.77.2@sha256:8f891e67c1970579618d2aba9a1718da14b564a520b847cf216f7329c2ff30e9
FROM rust:1.78.0@sha256:5907e96b0293eb53bcc8f09b4883d71449808af289862950ede9a0e3cca44ff5
WORKDIR /usr/src/

# https://github.com/nodesource/distributions
Expand Down
Loading

0 comments on commit bd31f6f

Please sign in to comment.