Aller au contenu

noQuickfixBiome

Ce contenu n’est pas encore disponible dans votre langue.

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
{
"quickfix.biome": "explicit"
}
{
"source.fixAll.biome": "explicit"
}

The following options are available

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"]
}
}
biome.json
{
"linter": {
"rules": {
"nursery": {
"noQuickfixBiome": "error"
}
}
}
}