Sort imports using biome format . in CLI but I get "The imports and exports are not sorted." in VSCode's Problems tab
#6940
Answered
by
ematipico
deadcoder0904
asked this question in
Q&A
-
biome.jsonc{
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
"assist": {
"enabled": true,
"actions": {
"source": {
"organizeImports": "on"
}
}
},
"formatter": {
"enabled": true,
"formatWithErrors": false, // Optional: Decide if you want to format files even if they have syntax errors
"indentStyle": "tab",
"indentWidth": 1,
"lineWidth": 80,
"lineEnding": "lf"
},
"linter": {
"enabled": false // <--- This is the crucial part to disable linting
},
// Optional: Specify which files Biome should consider (defaults are usually good)
"files": {
"includes": [
"**",
"!src/index.css",
"!node_modules",
"!out",
"!release",
"!build",
"!.yek",
"!.bank",
"!src/routeTree.gen.ts"
]
},
"javascript": {
"formatter": {
"quoteStyle": "single",
"semicolons": "asNeeded",
"arrowParentheses": "always"
}
}
}package.jsonI can sort using VSCode's CMD+S but I can't do it using I still get my VSCode's Problems Tab filled with warnings about import sorting everytime AI makes a change which I wish it handled automatically if I pressed |
Beta Was this translation helpful? Give feedback.
Answered by
ematipico
Jul 19, 2025
Replies: 2 comments 3 replies
-
|
Assist actions are applied with the check command |
Beta Was this translation helpful? Give feedback.
2 replies
-
|
The "format": "biome check --write", |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The check command applies formatting too