Skip to content

Commit

Permalink
release: 1.6.0 (#1969)
Browse files Browse the repository at this point in the history
Co-authored-by: Arend van Beelen jr. <[email protected]>
Co-authored-by: Victorien Elvinger <[email protected]>
Co-authored-by: Superchupu <[email protected]>
  • Loading branch information
4 people committed Mar 8, 2024
1 parent b96600f commit a03de64
Show file tree
Hide file tree
Showing 373 changed files with 5,693 additions and 2,902 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/01_formatter_bug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ body:
id: environment
attributes:
label: Environment information
description: Run the command `biome rage` and paste its output here. Please review it, in case there are sensitive information you don't want to share.
description: Run the command `biome rage --formatter` and paste its output here. Please review it, in case there are sensitive information you don't want to share.
render: bash
validations:
required: true
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/02_lint_bug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ body:
id: environment
attributes:
label: Environment information
description: Run the command `biome rage` and paste its output here. Please review it, in case there are sensitive information you don't want to share.
description: Run the command `biome rage --linter` and paste its output here. Please review it, in case there are sensitive information you don't want to share.
render: bash
validations:
required: true
Expand Down
57 changes: 52 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ 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).

## Unreleased
## 1.6.0 (TBD)

### Analyzer

Expand All @@ -22,8 +22,8 @@ our [guidelines for writing a good changelog entry](https://github.com/biomejs/b
---
- import { getLocale } from "astro:i18n";
- import { Code } from "astro:components";
+ import { getLocale } from "astro:i18n";
+ import { Code } from "astro:components";
+ import { getLocale } from "astro:i18n";
---

<div></div>
Expand Down Expand Up @@ -376,6 +376,45 @@ our [guidelines for writing a good changelog entry](https://github.com/biomejs/b

### Linter

#### Promoted rules

New rules are incubated in the nursery group.
Once stable, we promote them to a stable group.
The following rules are promoted:

- [complexity/noEmptyTypeParameters](https://biomejs.dev/linter/rules/no-empty-type-parameters)
- [complexity/noUselessLoneBlockStatements](https://biomejs.dev/linter/rules/no-useless-lone-block-statements)
- [correctness/noInvalidUseBeforeDeclaration](https://biomejs.dev/linter/rules/no-invalid-use-before-declaration)
- [correctness/noUnusedImports](https://biomejs.dev/linter/rules/no-unused-imports)
- [correctness/noUnusedPrivateClassMembers](https://biomejs.dev/linter/rules/no-unused-private-class-members)
- [security/noGlobalEval](https://biomejs.dev/linter/rules/no-global-eval)
- [style/useConsistentArrayType](https://biomejs.dev/linter/rules/use-consistent-array-type)
- [style/useExportType](https://biomejs.dev/linter/rules/use-export-type)
- [style/useFilenamingConvention](https://biomejs.dev/linter/rules/use-filenaming-convention)
- [style/useForOf](https://biomejs.dev/linter/rules/use-for-of)
- [style/useImportType](https://biomejs.dev/linter/rules/use-import-type)
- [style/useNodejsImportProtocol](https://biomejs.dev/linter/rules/use-nodejs-import-protocol)
- [style/useNumberNamespace](https://biomejs.dev/linter/rules/use-number-namespace)
- [style/useShorthandFunctionType](https://biomejs.dev/linter/rules/use-shorthand-function-type)
- [suspicious/noEmptyBlockStatements](https://biomejs.dev/linter/rules/no-empty-block-statements)
- [suspicious/noGlobalAssign](https://biomejs.dev/linter/rules/no-global-assign)
- [suspicious/noMisleadingCharacterClass](https://biomejs.dev/linter/rules/no-misleading-character-class)
- [suspicious/noThenProperty](https://biomejs.dev/linter/rules/no-then-property)
- [suspicious/useAwait](https://biomejs.dev/linter/rules/use-await)

Additionally, the following rules are now recommended:

- [suspicious/noApproximativeNumericConstant](https://biomejs.dev/linter/rules/no-approximative-numeric-constant)
- [suspicious/noMisrefactoredShorthandAssign](https://biomejs.dev/linter/rules/no-misrefactored-shorthand-assign)

#### Removed rules

- Remove `nursery/useGroupedTypeImport`. The rule [style/useImportType](https://biomejs.dev/linter/rules/use-import-type) covers the behavior of this rule.

Note that removing a nursery rule is not considered a breaking change according to our [semantic versioning](https://biomejs.dev/internals/versioning).

Contributed by @Conaclos

#### New features

- Add the rule [noSkippedTests](https://biomejs.dev/linter/rules/no-skipped-tests), to disallow skipped tests:
Expand Down Expand Up @@ -427,8 +466,7 @@ our [guidelines for writing a good changelog entry](https://github.com/biomejs/b
<div></div>
```

- Add partial support for `.vue` files. Biome is able to lint and fix the script block of the Vue files. Contributed by
@nhedger
- Add partial support for `.vue` files. Biome is able to lint and fix the script block of the Vue files.

```diff
<script setup lang="ts">
Expand All @@ -439,6 +477,8 @@ our [guidelines for writing a good changelog entry](https://github.com/biomejs/b
<template></template>
```

Contributed by @nhedger

- Add rule [useNodeAssertStrict](https://biomejs.dev/linter/rules/use-node-assert-strict), which promotes the use
of `node:assert/strict` over `node:assert`. Contributed by @ematipico

Expand Down Expand Up @@ -563,6 +603,13 @@ our [guidelines for writing a good changelog entry](https://github.com/biomejs/b

Contributed by @Conaclos

- [noUnusedVariables](https://biomejs.dev/linter/rules/no-unused-variables) no longer reports unused imports.

We now have a dedicated rule for reporting unused imports:
[noUnusedImports](https://biomejs.dev/linter/rules/no-unused-imports)

Contributed by @Conaclos

#### Bug fixes

- Fix missing link in [noStaticOnlyClass](https://biomejs.dev/linter/rules/no-static-only-class) documentation.
Expand Down Expand Up @@ -730,7 +777,7 @@ our [guidelines for writing a good changelog entry](https://github.com/biomejs/b

#### New features

- Add option `json.formatter.trailingComma`, to provide a better control over the trailing comma in JSON/JSONC files. Its default value is `"none"`.
- Add option `json.formatter.trailingCommas`, to provide a better control over the trailing comma in JSON/JSONC files. Its default value is `"none"`.

#### Bug fixes

Expand Down
11 changes: 7 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -331,18 +331,21 @@ When releasing a new version of a Biome, follow these steps:
See our [versioning guide](https://biomejs.dev/internals/versioning/) for more details.

1. [ ] Rename `Unreleased` to `<version> (iso-date)` in the [changelog](./CHANGELOG.md).
Then update the website using `BIOME_VERSION=<version> cargo codegen-website`.

1. [ ] Update `version` in [Biome's `package.json`](./packages/@biomejs/biome/package.json) if applicable.

2. [ ] **Update to the same `version` in all crates** if you publish crates. (`Cargo.toml` and `crates/**/Cargo.toml`)
1. [ ] **Update to the same `version` in all crates** if you publish crates. (`Cargo.toml` and `crates/**/Cargo.toml`)

3. [ ] Linter rules have a `version` metadata directly defined in their implementation.
1. [ ] Linter rules have a `version` metadata directly defined in their implementation.
This field is set to `next` for newly created rules.
This field must be updated to the new version.
Then execute `just gen-lint`.

4. [ ] Once the PR is merged, the CI will trigger the `Release: *` workflows. Once these workflows finish compiling the final artefact, **they need to be approved manually**.
1. [ ] Update the website with the new version number:
`BIOME_VERSION=<version> cargo codegen-website`.
This will also copy the configuration schema in the right place.

1. [ ] Once the PR is merged, the CI will trigger the `Release: *` workflows. Once these workflows finish compiling the final artefact, **they need to be approved manually**.

## Resources

Expand Down
Loading

0 comments on commit a03de64

Please sign in to comment.