[WIP] My editor configurations: Biome, Bun, EditorConfig, VSCode, Zed, ... π§
Table of Contents
- π οΈ Installation
- βοΈ Configuration
- π» Usage
- ποΈ License
- π Acknowledgements
Important
Install configuration package directly from GitHub repository.
bun add --dev --exact git+https://github.com/nndvn/cfgs.git- Add the
extendsarray to yourbiome.jsonfile:
- Add
scriptsto yourpackage.jsonif you haven't already:
// <project-root>/package.json
{
//...
"scripts": {
"check": "biome check --fix",
"format": "biome format --fix",
"lint": "biome lint --fix"
},
// ...
}# Format all files
bun run format
# Format specific files
bun run format <files>
# Lint and apply safe fixes to all files
bun run lint
# Lint files and apply safe fixes to specific files
bun run lint <files>
# Format, lint, and organize imports of all files
bun run check
# Format, lint, and organize imports of specific files
bun run check <files>Add the following extensions to your .vscode/extensions.json file:
// <project-root>/.vscode/extensions.json
{
"recommendations": [
"biomejs.biome"
]
}Add the following settings to your .vscode/settings.json file:
// <project-root>/.vscode/settings.json
{
"[javascript][typescript][json]": {
"editor.defaultFormatter": "biomejs.biome",
"editor.formatOnPaste": true,
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll.biome": "explicit",
"source.organizeImports.biome": "explicit"
}
}
}Add the following settings to your .zed/settings.json file:
// <project-root>/.zed/settings.json
{
"auto_install_extensions": {
"biome": true
},
"file_types": {
"Shell Script": [".editorconfig"]
},
"formatter": {
"language_server": {
"name": "biome"
}
},
"code_actions_on_format": {
"source.organizeImports.biome": true,
"source.fixAll.biome": true
}
}https://biomejs.dev/recipes/continuous-integration/
This project is released under the MIT License. For more details, refer to the LICENSE file.