Eslint and Prettier are frustrating to configure, they also run slowly
Introduce Biomejs, the next generation linter and formatter, written in Rust!
Setup Biomejs in vscode in mere 4 simple steps!
install Biomejs
npm i -D @biomejs/biomeinstall Biomejs vscode extension
(optional)create
biome.jsoncin root folder
{
"javascript": {
"formatter": {
"quoteStyle": "single",
"semicolons": "asNeeded"
}
}
}
This is my favorite configuration, simple and clean, I want to reduce noise as much as possible.
You are free to modify it, the js rules work with typescript out of the box.
- create a
.vscode/settings.jsonfile in root folder
{
"javascript": {
"formatter": {
"quoteStyle": "single",
"semicolons": "asNeeded"
}
},
"assist": {
"actions": {
"source": {
"organizeImports": "off"
}
}
},
"files": {
"includes": [
"**",
"!!**/dist",
"!!**/node_modules",
"!!**/build",
"!!**/coverage",
"!!**/bin"
]
}
}
and it is done, enjoy!
Top comments (1)
updated the config for biome v2