noQuickfixBiome
Este conteúdo não está disponível em sua língua ainda.
Summary
Section titled “Summary”- Diagnostic Category:
lint/nursery/noQuickfixBiome
- This rule has a safe fix.
- The default severity of this rule is information.
Description
Section titled “Description”Disallow the use if quickfix.biome
inside editor settings file.
The code action quickfix.biome
can be harmful because it instructs the editors
to apply the code fix of lint rules and code actions atomically. If multiple rules or
actions apply a code fix to the same code span, the editor will emit invalid code.
The rule targets specifically VSCode settings and Zed settings. Specifically, paths that end with:
.vscode/settings.json
Code/User/settings.json
.zed/settings.json
zed/settings.json
Examples
Section titled “Examples”Invalid
Section titled “Invalid”{ "quickfix.biome": "explicit"}
{ "source.fixAll.biome": "explicit"}
Options
Section titled “Options”The following options are available
additionalPaths
Section titled “additionalPaths”It’s possible to specify a list of JSON paths, if your editor uses a JSON file setting that isn’t supported natively by the rule.
If your editor uses, for example, a file called .myEditor/file.json
, you can add ".myEditor/file.json"
to the list.
The rule checks if the file ends with the given paths.
{ "options": { "additionalPaths": [".myEditor/file.json"] }}
How to configure
Section titled “How to configure”{ "linter": { "rules": { "nursery": { "noQuickfixBiome": "error" } } }}