PHPackages                             kocal/biome-js-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. kocal/biome-js-bundle

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

kocal/biome-js-bundle
=====================

A Symfony Bundle to easily download and use Biome.js in your Symfony applications, to lint your front assets without needing Node.js.

v2.1.2(5mo ago)30131.3k↑38.9%5[1 issues](https://github.com/Kocal/BiomeJsBundle/issues)3MITPHPPHP &gt;=8.1CI failing

Since May 17Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/Kocal/BiomeJsBundle)[ Packagist](https://packagist.org/packages/kocal/biome-js-bundle)[ RSS](/packages/kocal-biome-js-bundle/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (7)Versions (17)Used By (3)

BiomeJsBundle
=============

[](#biomejsbundle)

[![.github/workflows/ci.yaml](https://github.com/Kocal/BiomeJsBundle/actions/workflows/ci.yaml/badge.svg)](https://github.com/Kocal/BiomeJsBundle/actions/workflows/ci.yaml)[![Packagist Version](https://camo.githubusercontent.com/02d1081ca497e1416da4f3deee9f755291a6b3754b47467956b836c4faf00abf/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6b6f63616c2f62696f6d652d6a732d62756e646c65)](https://packagist.org/packages/kocal/biome-js-bundle)

A Symfony Bundle to easily download and use [Biome.js](https://biomejs.dev/) in your Symfony applications, to lint your front assets without needing Node.js (ex: when using [Symfony AssetMapper](https://symfony.com/doc/current/frontend/asset_mapper.html)).

Tip

If you prefer to use Oxlint instead, check [Kocal/OxlintBundle](https://github.com/Kocal/OxlintBundle)!

---

Note

This documentation is for version `^2.0`. You can check the previous [documentation for `^1.0` here](https://github.com/Kocal/BiomeJsBundle/tree/v1.5.0).

Installation
------------

[](#installation)

Install the bundle with Composer:

```
composer require kocal/biome-js-bundle --dev
```

If you use [Symfony Flex](https://symfony.com/doc/current/setup/flex.html), everything must be configured automatically. If that's not the case, please follow the next steps:

Manual installation steps1. Register the bundle in your `config/bundles.php` file:

```
return [
    // ...
    Kocal\BiomeJsBundle\KocalBiomeJsBundle::class => ['dev' => true],
];
```

2. Create the configuration file `config/packages/kocal_biome_js.yaml`:

```
when@dev:
    kocal_biome_js:
        # The Biome.js CLI version to use, that you can find at https://github.com/biomejs/biome/tags:
        # - for >=2.0.0 versions, the git tag follows the pattern "@biomejs/biome@"
        # - for =2.0.0 versions, the git tag follows the pattern "@biomejs/biome@VERSION"
        # - for
