1.0.8 β€’ Published 1 year ago

@gabbezeira/biome-airbnb v1.0.8

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

@gabbezeira/biome-airbnb

Biome Airbnb Banner

A comprehensive Airbnb-style JavaScript configuration package for Biome.js β€” bringing the best practices of Airbnb code conventions directly into your Biome projects.

npm license downloads


✨ Features

  • Airbnb Style Guide: Consistent JavaScript styling with Airbnb’s best practices.
  • Fully Configurable: Extensible for different environments (React, Node.js).
  • Quick Setup: Simple integration with extends in your biome.json.
  • Formatted Imports: Auto-organization of imports for cleaner code.

πŸ“¦ Installation

Install the package as a dev dependency:

npm install -D @gabbezeira/biome-airbnb

πŸš€ Usage

In your project root, create or edit your biome.json file to extend from @gabbezeira/biome-airbnb:

{
  "extends": "@gabbezeira/biome-airbnb"
}

For a custom setup, you can also include setupBiome.js:

// setupBiome.js
module.exports = {
  "extends": "@gabbezeira/biome-airbnb",
  // additional custom configurations...
};

Then, reference it in your biome.json:

{
  "extends": "./setupBiome.js"
}

πŸ”§ Configuration Options

Example setupBiome.js

module.exports = {
  "$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
  "extends": "@gabbezeira/biome-airbnb",
  "vcs": {
    "enabled": true,
    "clientKind": "git"
  },
  "formatter": {
    "indentStyle": "tab",
    "lineWidth": 100
  }
};

πŸ“œ Supported Rules

This configuration package follows the Airbnb style guide, including:

  • Quotes: Single quotes for JavaScript, double for JSON.
  • Semicolons: Inserted as needed.
  • Trailing Commas: Required in multi-line lists and objects.
  • Arrow Function Parentheses: Always required for clarity.

For a full list of rules, visit Biome’s documentation.

πŸ› οΈ Commands

Run Biome linting and formatting directly in your project:

npx biome check .
npx biome format .

πŸ“„ License

This project is licensed under the ISC License - see the LICENSE file for details.



πŸ‘ Contribute

Found a bug or have an idea? Feel free to open an issue or submit a pull request.