biomejs/biome (@biomejs/biome)
### [`v1.3.0`](https://togithub.com/biomejs/biome/blob/HEAD/CHANGELOG.md#130)
[Compare Source](https://togithub.com/biomejs/biome/compare/b4dadd8ed0f9e123cfaf7acc9fee8c96e19aa3dc...5dcae83f52f8257efd023e99d84431e40b8630e9)
##### Analyzer
##### Enhancements
- Import sorting is safe to apply now, and it will be applied when running `check --apply` instead of `check --apply-unsafe`.
- Import sorting now handles Bun imports `bun:`, absolute path imports `/`, and [Node's subpath imports `#`](https://nodejs.org/api/packages.html#subpath-imports). See [our documentation](https://biomejs.dev/analyzer/) for more details. Contributed by [@Conaclos](https://togithub.com/Conaclos)
##### CLI
##### Bug fixes
- Fix [#319](https://togithub.com/biomejs/biome/issues/319). The command `biome lint` now shows the correct options. Contributed by [@ematipico](https://togithub.com/ematipico)
- Fix [#312](https://togithub.com/biomejs/biome/issues/312). Running `biome --version` now exits with status code `0` instead of `1`. Contributed by [@nhedger](https://togithub.com/nhedger)
- Fix a bug where the `extends` functionality doesn't carry over `organizeImports.ignore`. Contributed by [@ematipico](https://togithub.com/ematipico)
- The CLI now returns the original content when using `stdin` and the original content doesn't change. Contributed by [@ematipico](https://togithub.com/ematipico)
##### New features
- Add support for `BIOME_BINARY` environment variable to override the location of the binary. Contributed by [@ematipico](https://togithub.com/ematipico)
- Add option `--indent-width`, and deprecated the option `--indent-size`. Contributed by [@ematipico](https://togithub.com/ematipico)
- Add option `--javascript-formatter-indent-width`, and deprecated the option `--javascript-formatter-indent-size`. Contributed by [@ematipico](https://togithub.com/ematipico)
- Add option `--json-formatter-indent-width`, and deprecated the option `--json-formatter-indent-size`. Contributed by [@ematipico](https://togithub.com/ematipico)
- Add option `--daemon-logs` to `biome rage`. The option is required to view Biome daemon server logs. Contributed by [@unvalley](https://togithub.com/unvalley)
- Add support for logging. By default, Biome doesn't log anything other than diagnostics. Logging can be enabled with the new option `--log-level`:
```shell
biome format --log-level=info ./src
```
There are four different levels of logging, from the most verbose to the least verbose: `debug`, `info`, `warn` and `error`. Here's how an `INFO` log will look like:
2023-10-05T08:27:01.954727Z INFO Analyze file ./website/src/playground/components/Resizable.tsx
at crates/biome_service/src/file_handlers/javascript.rs:298 on biome::worker_5
in Pulling diagnostics with categories: RuleCategories(SYNTAX)
in Processes formatting with path: "./website/src/playground/components/Resizable.tsx"
in Process check with path: "./website/src/playground/components/Resizable.tsx"
You can customize how the log will look like with a new option `--log-kind`. The supported kinds are: `pretty`, `compact` and `json`.
`pretty` is the default logging. Here's how a `compact` log will look like:
2023-10-05T08:29:04.864247Z INFO biome::worker_2 Process check:Processes linting:Pulling diagnostics: crates/biome_service/src/file_handlers/javascript.rs: Analyze file ./website/src/playground/components/Resizable.tsx path="./website/src/playground/components/Resizable.tsx" path="./website/src/playground/components/Resizable.tsx" categories=RuleCategories(LINT)
2023-10-05T08:29:04.864290Z INFO biome::worker_7 Process check:Processes formatting: crates/biome_service/src/file_handlers/javascript.rs: Format file ./website/src/playground/components/Tabs.tsx path="./website/src/playground/components/Tabs.tsx" path="./website/src/playground/components/Tabs.tsx"
2023-10-05T08:29:04.879332Z INFO biome::worker_2 Process check:Processes formatting:Pulling diagnostics: crates/biome_service/src/file_handlers/javascript.rs: Analyze file ./website/src/playground/components/Resizable.tsx path="./website/src/playground/components/Resizable.tsx" path="./website/src/playground/components/Resizable.tsx" categories=RuleCategories(SYNTAX)
2023-10-05T08:29:04.879383Z INFO biome::worker_2 Process check:Processes formatting: crates/biome_service/src/file_handlers/javascript.rs: Format file ./website/src/playground/components/Resizable.tsx path="./website/src/playground/components/Resizable.tsx" path="./website/src/playground/components/Resizable.tsx"
##### Enhancements
- Deprecated the environment variable `ROME_BINARY`. Use `BIOME_BINARY` instead. Contributed by [@ematipico](https://togithub.com/ematipico)
- Biome doesn't check anymore the presence of the `.git` folder when VCS support is enabled. Contributed by [@ematipico](https://togithub.com/ematipico)
- `biome rage` doesn't print the logs of the daemon, use `biome rage --daemon-logs` to print them. Contributed by [@unvalley](https://togithub.com/unvalley)
##### Configuration
##### New features
- Add option `formatter.indentWidth`, and deprecated the option `formatter.indentSize`. Contributed by [@ematipico](https://togithub.com/ematipico)
- Add option `javascript.formatter.indentWidth`, and deprecated the option `javascript.formatter.indentSize`. Contributed by [@ematipico](https://togithub.com/ematipico)
- Add option `json.formatter.indentWidth`, and deprecated the option `json.formatter.indentSize`. Contributed by [@ematipico](https://togithub.com/ematipico)
- Add option `include` to multiple sections of the configuration
- `files.include`;
- `formatter.include`;
- `linter.include`;
- `organizeImports.include`;
When `include` and `ignore` are both specified, `ignore` takes **precedence** over `include`
- Add option `overrides`, where users can modify the behaviour of the tools for certain files or paths.
For example, it's possible to modify the formatter `lineWidth`, and even `quoteStyle` for certain files that are included in glob path `generated/**`:
```json
{
"formatter": {
"lineWidth": 100
},
"overrides": [
{
"include": ["generated/**"],
"formatter": {
"lineWidth": 160
},
"javascript": {
"formatter": {
"quoteStyle": "single"
}
}
}
]
}
```
Or, you can disable certain rules for certain path, and disable the linter for other paths:
```json
{
"linter": {
"enabled": true,
"rules": {
"recommended": true
}
},
"overrides": [
{
"include": ["lib/**"],
"linter": {
"rules": {
"suspicious": {
"noDebugger": "off"
}
}
}
},
{
"include": ["shims/**"],
"linter": {
"enabled": false
}
}
]
}
```
##### Bug fixes
- Fix [#343](https://togithub.com/biomejs/biome/issues/343), `extends` was incorrectly applied to the `biome.json` file. Contributed by [@ematipico](https://togithub.com/ematipico)
##### Editors
##### Bug fixes
- Fix [#404](https://togithub.com/biomejs/biome/issues/404). Biome intellij plugin now works on Windows. Contributed by [@victor-teles](https://togithub.com/victor-teles)
- Fix [#402](https://togithub.com/biomejs/biome/issues/402). Biome `format` on intellij plugin now recognize biome.json. Contributed by [@victor-teles](https://togithub.com/victor-teles)
##### Formatter
##### Enhancements
- Use `OnceCell` for the Memoized memory because that's what the `RefCell
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
â™» Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
[ ] If you want to rebase/retry this PR, check this box
This PR has been generated by Mend Renovate. View repository job log here.
This PR contains the following updates:
1.2.2
->1.3.0
Release Notes
biomejs/biome (@biomejs/biome)
### [`v1.3.0`](https://togithub.com/biomejs/biome/blob/HEAD/CHANGELOG.md#130) [Compare Source](https://togithub.com/biomejs/biome/compare/b4dadd8ed0f9e123cfaf7acc9fee8c96e19aa3dc...5dcae83f52f8257efd023e99d84431e40b8630e9) ##### Analyzer ##### Enhancements - Import sorting is safe to apply now, and it will be applied when running `check --apply` instead of `check --apply-unsafe`. - Import sorting now handles Bun imports `bun:Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
â™» Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.