We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1.90.1
2.3.0
1.8.1
Format on save produces wrong output when multiple fixes for the same lint rule are applied to the same expression.
biome.json
// biome.json { "$schema": "./node_modules/@biomejs/biome/configuration_schema.json", "files": { "include": ["*.ts", "*.json"] }, "formatter": { "enabled": false }, "linter": { "enabled": true }, "organizeImports": { "enabled": false } }
lint/complexity/useFlatMap
// index.ts Object.values(rules.lints.languages) .map((l) => Object.values(l)) .flat() .map((l) => Object.values(l)) .flat();
// .vscode/settings.json { "editor.formatOnSave": true, "editor.codeActionsOnSave": { "quickfix.biome": "explicit" }, "[typescript]": { "editor.defaultFormatter": "biomejs.biome" } }
// index.ts Object.values(rules.lints.languages) .flatMap((l) => Object.values(l)) .map((l) => Object.values(l)) .flatMapt();
Lint rule fixes to be correctly applied on save:
// index.ts Object.values(rules.lints.languages) .flatMap((l) => Object.values(l)) .flatMap((l) => Object.values(l));
No
No response
The text was updated successfully, but these errors were encountered:
I believe this is a duplicate of biomejs/biome#2268 and biomejs/biome#1570. Thanks for providing the example code.
Sorry, something went wrong.
No branches or pull requests
VS Code version
1.90.1
Extension version
2.3.0
Biome version
1.8.1
Operating system
Description
Format on save produces wrong output when multiple fixes for the same lint rule are applied to the same expression.
Steps to reproduce
biome.json
config with linter enabled:lint/complexity/useFlatMap
fails multiple times on the same expression:Expected behavior
Lint rule fixes to be correctly applied on save:
Does this issue occur when using the CLI directly?
No
Logs
No response
The text was updated successfully, but these errors were encountered: