Skip to content

Commit

Permalink
release: 1.6.1 (#2046)
Browse files Browse the repository at this point in the history
  • Loading branch information
ematipico committed Mar 12, 2024
1 parent abf1e51 commit 4ed1cbe
Show file tree
Hide file tree
Showing 12 changed files with 2,968 additions and 81 deletions.
32 changes: 7 additions & 25 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,31 +9,20 @@ 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

### Analyzer
## 1.6.1 (2024-03-12)

### CLI

#### Bug fixes

- CLI is now able to automatically search and resolve `biome.jsonc` ([#2008](https://github.com/biomejs/biome/issues/2008)).

Contributed by @Sec-ant
- CLI is now able to automatically search and resolve `biome.jsonc` ([#2008](https://github.com/biomejs/biome/issues/2008)). Contributed by @Sec-ant
- Fix a false positive where some files were counted as "fixed" even though they weren't modified. Contributed by @ematipico

### Configuration

#### Bug fixes

- `json.formatter.trailingCommas` option now works in `overrides` ([#2009](https://github.com/biomejs/biome/issues/2009)).

Contributed by @Sec-ant

### Editors

### Formatter

### JavaScript APIs
- `json.formatter.trailingCommas` option now works in `overrides` ([#2009](https://github.com/biomejs/biome/issues/2009)). Contributed by @Sec-ant

### Linter

Expand All @@ -48,20 +37,13 @@ our [guidelines for writing a good changelog entry](https://github.com/biomejs/b
});
```

#### Enhamcements

#### Bug fixes

- [useJsxKeyInIterable](https://biomejs.dev/linter/rules/use-jsx-key-in-iterable) now recognizes function bodies wrapped in parentheses ([#2011](https://github.com/biomejs/biome/issues/2011)).
- [useJsxKeyInIterable](https://biomejs.dev/linter/rules/use-jsx-key-in-iterable) now recognizes function bodies wrapped in parentheses ([#2011](https://github.com/biomejs/biome/issues/2011)). Contributed by @Sec-ant

Contributed by @Sec-ant
- [useShorthandFunctionType](https://biomejs.dev/linter/rules/use-shorthand-function-type) now preserves type parameters of generic interfaces when applying fixes ([#2015](https://github.com/biomejs/biome/issues/2015)). Contributed by @Sec-ant

- [useShorthandFunctionType](https://biomejs.dev/linter/rules/use-shorthand-function-type) now preserves type parameters of generic interfaces when applying fixes ([#2015](https://github.com/biomejs/biome/issues/2015)).

Contributed by @Sec-ant

- Code fixes of [useImportType](https://biomejs.dev/linter/rules/use-import-type) and [useExportType](https://biomejs.dev/linter/rules/use-export-type) now handle multiline statements ([#2041](https://github.com/biomejs/biome/issues/2041)).
Contributed by @Conaclos
- Code fixes of [useImportType](https://biomejs.dev/linter/rules/use-import-type) and [useExportType](https://biomejs.dev/linter/rules/use-export-type) now handle multiline statements ([#2041](https://github.com/biomejs/biome/issues/2041)). Contributed by @Conaclos

- [noRedeclare](https://biomejs.dev/linter/rules/no-redeclare) no longer reports type parameter and parameter with identical names ([#1992](https://github.com/biomejs/biome/issues/1992)).

Expand Down
25 changes: 12 additions & 13 deletions crates/biome_cli/src/execute/process_file/lint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,20 +37,19 @@ pub(crate) fn lint_with_guard<'ctx>(

let mut output = fix_result.code;

if output != input {
match workspace_file.as_extension() {
Some("astro") => {
output = AstroFileHandler::output(input.as_str(), output.as_str());
}
Some("vue") => {
output = VueFileHandler::output(input.as_str(), output.as_str());
}
Some("svelte") => {
output = SvelteFileHandler::output(input.as_str(), output.as_str());
}
_ => {}
match workspace_file.as_extension() {
Some("astro") => {
output = AstroFileHandler::output(input.as_str(), output.as_str());
}

Some("vue") => {
output = VueFileHandler::output(input.as_str(), output.as_str());
}
Some("svelte") => {
output = SvelteFileHandler::output(input.as_str(), output.as_str());
}
_ => {}
}
if output != input {
changed = true;
workspace_file.update_file(output)?;
input = workspace_file.input()?;
Expand Down
10 changes: 5 additions & 5 deletions packages/@biomejs/biome/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@biomejs/biome",
"version": "1.6.0",
"version": "1.6.1",
"bin": "bin/biome",
"scripts": {
"postinstall": "node scripts/postinstall.js"
Expand Down Expand Up @@ -35,8 +35,8 @@
"engines": {
"node": ">=14.*"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/biome"
}
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/biome"
}
}
4 changes: 2 additions & 2 deletions website/src/content/docs/guides/getting-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ After running the `init` command, you'll now have a new `biome.json` file in you

```json title="biome.json"
{
"$schema": "https://biomejs.dev/schemas/1.6.0/schema.json",
"$schema": "https://biomejs.dev/schemas/1.6.1/schema.json",
"organizeImports": {
"enabled": false
},
Expand All @@ -65,7 +65,7 @@ Alternatively, you can run `biome init --jsonc` to emit a `biome.jsonc` file ins

```json title="biome.jsonc"
{
"$schema": "https://biomejs.dev/schemas/1.6.0/schema.json",
"$schema": "https://biomejs.dev/schemas/1.6.1/schema.json",
"organizeImports": {
"enabled": false
},
Expand Down
6 changes: 3 additions & 3 deletions website/src/content/docs/guides/how-biome-works.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,14 @@ The `extends` option allows to break down a configuration in multiple file and "

```json title="biome.json"
{
"$schema": "https://biomejs.dev/schemas/1.6.0/schema.json",
"$schema": "https://biomejs.dev/schemas/1.6.1/schema.json",
"extends": ["./formatter.json", "./linter.json"]
}
```

```json title="formatter.json"
{
"$schema": "https://biomejs.dev/schemas/1.6.0/schema.json",
"$schema": "https://biomejs.dev/schemas/1.6.1/schema.json",
"formatter": {
"indentSize": 2
},
Expand All @@ -99,7 +99,7 @@ The `extends` option allows to break down a configuration in multiple file and "

```json title="linter.json"
{
"$schema": "https://biomejs.dev/schemas/1.6.0/schema.json",
"$schema": "https://biomejs.dev/schemas/1.6.1/schema.json",
"linter": {
"rules": {
"complexity": {
Expand Down
32 changes: 7 additions & 25 deletions website/src/content/docs/internals/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,31 +15,20 @@ 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

### Analyzer
## 1.6.1 (2024-03-12)

### CLI

#### Bug fixes

- CLI is now able to automatically search and resolve `biome.jsonc` ([#2008](https://github.com/biomejs/biome/issues/2008)).

Contributed by @Sec-ant
- CLI is now able to automatically search and resolve `biome.jsonc` ([#2008](https://github.com/biomejs/biome/issues/2008)). Contributed by @Sec-ant
- Fix a false positive where some files were counted as "fixed" even though they weren't modified. Contributed by @ematipico

### Configuration

#### Bug fixes

- `json.formatter.trailingCommas` option now works in `overrides` ([#2009](https://github.com/biomejs/biome/issues/2009)).

Contributed by @Sec-ant

### Editors

### Formatter

### JavaScript APIs
- `json.formatter.trailingCommas` option now works in `overrides` ([#2009](https://github.com/biomejs/biome/issues/2009)). Contributed by @Sec-ant

### Linter

Expand All @@ -54,20 +43,13 @@ our [guidelines for writing a good changelog entry](https://github.com/biomejs/b
});
```

#### Enhamcements

#### Bug fixes

- [useJsxKeyInIterable](https://biomejs.dev/linter/rules/use-jsx-key-in-iterable) now recognizes function bodies wrapped in parentheses ([#2011](https://github.com/biomejs/biome/issues/2011)).
- [useJsxKeyInIterable](https://biomejs.dev/linter/rules/use-jsx-key-in-iterable) now recognizes function bodies wrapped in parentheses ([#2011](https://github.com/biomejs/biome/issues/2011)). Contributed by @Sec-ant

Contributed by @Sec-ant
- [useShorthandFunctionType](https://biomejs.dev/linter/rules/use-shorthand-function-type) now preserves type parameters of generic interfaces when applying fixes ([#2015](https://github.com/biomejs/biome/issues/2015)). Contributed by @Sec-ant

- [useShorthandFunctionType](https://biomejs.dev/linter/rules/use-shorthand-function-type) now preserves type parameters of generic interfaces when applying fixes ([#2015](https://github.com/biomejs/biome/issues/2015)).

Contributed by @Sec-ant

- Code fixes of [useImportType](https://biomejs.dev/linter/rules/use-import-type) and [useExportType](https://biomejs.dev/linter/rules/use-export-type) now handle multiline statements ([#2041](https://github.com/biomejs/biome/issues/2041)).
Contributed by @Conaclos
- Code fixes of [useImportType](https://biomejs.dev/linter/rules/use-import-type) and [useExportType](https://biomejs.dev/linter/rules/use-export-type) now handle multiline statements ([#2041](https://github.com/biomejs/biome/issues/2041)). Contributed by @Conaclos

- [noRedeclare](https://biomejs.dev/linter/rules/no-redeclare) no longer reports type parameter and parameter with identical names ([#1992](https://github.com/biomejs/biome/issues/1992)).

Expand Down
2 changes: 1 addition & 1 deletion website/src/content/docs/ja/guides/getting-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Biomeをインストールする際には、バージョン範囲演算子を使

```json title="biome.json"
{
"$schema": "https://biomejs.dev/schemas/1.6.0/schema.json",
"$schema": "https://biomejs.dev/schemas/1.6.1/schema.json",
"organizeImports": {
"enabled": false
},
Expand Down
2 changes: 1 addition & 1 deletion website/src/content/docs/pt-br/guides/getting-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Após utilizar o comando, você terá um novo arquivo `biome.json` no seu diret

```json title="biome.json"
{
"$schema": "https://biomejs.dev/schemas/1.6.0/schema.json",
"$schema": "https://biomejs.dev/schemas/1.6.1/schema.json",
"organizeImports": {
"enabled": false
},
Expand Down
2 changes: 1 addition & 1 deletion website/src/content/docs/reference/configuration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ If you have problems with resolving the physical file, you can use the one publi

```json title="biome.json"
{
"$schema": "https://biomejs.dev/schemas/1.6.0/schema.json"
"$schema": "https://biomejs.dev/schemas/1.6.1/schema.json"
}
```

Expand Down
2 changes: 1 addition & 1 deletion website/src/content/docs/zh-cn/guides/getting-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ import PackageManagerCommand from "@/components/PackageManagerCommand.astro";

```json title="biome.json"
{
"$schema": "https://biomejs.dev/schemas/1.6.0/schema.json",
"$schema": "https://biomejs.dev/schemas/1.6.1/schema.json",
"organizeImports": {
"enabled": false
},
Expand Down
8 changes: 4 additions & 4 deletions website/src/content/docs/zh-cn/reference/configuration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import LintGroups from "@/components/generated/Groups.astro";

```json title="biome.json"
{
"$schema": "https://biomejs.dev/schemas/1.6.0/schema.json"
"$schema": "https://biomejs.dev/schemas/1.6.1/schema.json"
}
```

Expand All @@ -37,14 +37,14 @@ import LintGroups from "@/components/generated/Groups.astro";

```json title="biome.json"
{
"$schema": "https://biomejs.dev/schemas/1.6.0/schema.json",
"$schema": "https://biomejs.dev/schemas/1.6.1/schema.json",
"extends": ["./formatter.json", "./linter.json"]
}
```

```json title="formatter.json"
{
"$schema": "https://biomejs.dev/schemas/1.6.0/schema.json",
"$schema": "https://biomejs.dev/schemas/1.6.1/schema.json",
"formatter": {
"indentSize": 2
},
Expand All @@ -58,7 +58,7 @@ import LintGroups from "@/components/generated/Groups.astro";

```json title="linter.json"
{
"$schema": "https://biomejs.dev/schemas/1.6.0/schema.json",
"$schema": "https://biomejs.dev/schemas/1.6.1/schema.json",
"linter": {
"rules": {
"complexity": {
Expand Down

0 comments on commit 4ed1cbe

Please sign in to comment.