Skip to content

Commit c7e581e

Browse files
authored
Merge pull request #31 from Kocal/minor-tweaks-2.0
Minor tweaks for 2.0
2 parents 3085c7a + 3856941 commit c7e581e

4 files changed

Lines changed: 9 additions & 49 deletions

File tree

README.md

Lines changed: 3 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
# BiomeJsBundle
22

33
[![.github/workflows/ci.yaml](https://github.com/Kocal/BiomeJsBundle/actions/workflows/ci.yaml/badge.svg)](https://github.com/Kocal/BiomeJsBundle/actions/workflows/ci.yaml)
4-
![Packagist Version](https://img.shields.io/packagist/v/kocal/biome-js-bundle)
4+
[![Packagist Version](https://img.shields.io/packagist/v/kocal/biome-js-bundle)](https://packagist.org/packages/kocal/biome-js-bundle)
55

6-
This bundle makes it easy to use [Biome.js](https://biomejs.dev/) in your Symfony project,
7-
to lint and format your assets files without Node.js
8-
(ex: when using Symfony's [AssetMapper Component](https://symfony.com/doc/current/frontend/asset_mapper.html)).
6+
A Symfony Bundle to easily download and use [Biome.js](https://biomejs.dev/) in your Symfony applications,
7+
to lint your front assets without needing Node.js (ex: when using [Symfony AssetMapper](https://symfony.com/doc/current/frontend/asset_mapper.html)).
98

109
## Installation
1110

@@ -112,46 +111,3 @@ bin/biome --version
112111
php bin/console biomejs:download path/to/bin
113112
path/to/bin/biome --version
114113
```
115-
116-
### `biomejs:check` (deprecated)
117-
118-
> [!WARNING]
119-
> **Deprecated since 1.5.0**
120-
>
121-
> In version 2.0.0, the command `biomejs:check` will be removed.
122-
> Instead, run the command `biomejs:download <version>` and use `bin/biome check`.
123-
124-
> [!NOTE]
125-
> This command will **not use the Biome.js CLI binary downloaded through `biomejs:download`**,
126-
> but will instead automatically download another Biome.js CLI binary 1.x.x through the **legacy downloading system**.
127-
128-
Run formatter, linter, and import sorting to the requested files.
129-
130-
```shell
131-
# Shows format and lint errors
132-
php bin/console biomejs:check .
133-
134-
# Shows format and lint errors, and fix them if possible
135-
php bin/console biomejs:check . --write
136-
```
137-
138-
### `biomejs:ci` (deprecated)
139-
140-
> [!WARNING]
141-
> **Deprecated since 1.5.0**
142-
>
143-
> In version 2.0.0, the command `biomejs:ci` will be removed.
144-
> Instead, run the command `biomejs:download <version>` and use `bin/biome ci`.
145-
146-
> [!NOTE]
147-
> This command will **not use the Biome.js CLI binary downloaded through `biomejs:download`**,
148-
> but will instead automatically download another Biome.js CLI binary 1.x.x through the **legacy downloading system**.
149-
150-
Command to use in CI environments. Run formatter, linter, and import sorting to the requested files.
151-
152-
Files won't be modified, the command is a read-only operation.
153-
154-
```shell
155-
# Shows format and lint errors
156-
php bin/console biomejs:ci .
157-
```

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "kocal/biome-js-bundle",
3-
"description": "Use Biome.js with Symfony",
3+
"description": "A Symfony Bundle to easily download and use Biome.js in your Symfony applications, to lint your front assets without needing Node.js.",
44
"type": "symfony-bundle",
55
"keywords": ["biome", "biome.js", "symfony", "bundle"],
66
"license": "MIT",

config/services.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
use Kocal\BiomeJsBundle\Command\BiomeJsDownloadCommand;
46
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
7+
58
use function Symfony\Component\DependencyInjection\Loader\Configurator\abstract_arg;
69
use function Symfony\Component\DependencyInjection\Loader\Configurator\service;
710

ecs.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@
66

77
return ECSConfig::configure()
88
->withPaths([
9+
__DIR__ . '/config',
910
__DIR__ . '/src',
1011
])
11-
->withPreparedSets(psr12: true)
12+
->withPreparedSets(psr12: true, strict: true)
1213
->withPhpCsFixerSets(symfony: true)
1314
;

0 commit comments

Comments
 (0)