add installation instructions to README.md
This commit is contained in:
parent
a99023d484
commit
c498759069
1 changed files with 27 additions and 0 deletions
27
README.md
27
README.md
|
@ -1,3 +1,30 @@
|
||||||
# My very opiniated Configurations for Rector and ECS
|
# My very opiniated Configurations for Rector and ECS
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
```bash
|
||||||
|
composer require --dev lubiana/code-quality
|
||||||
|
```
|
||||||
|
|
||||||
|
Add my Setlist to ECS in `ecs.php`:
|
||||||
|
|
||||||
|
```php
|
||||||
|
return static function (\Symplify\EasyCodingStandard\Config\ECSConfig $config): void {
|
||||||
|
$config->sets([
|
||||||
|
\Lubiana\CodeQuality\LubiSetList::ECS,
|
||||||
|
]);
|
||||||
|
};
|
||||||
|
```
|
||||||
|
|
||||||
|
And for rector.php:
|
||||||
|
|
||||||
|
```php
|
||||||
|
return static function (\Rector\Config\RectorConfig $config): void {
|
||||||
|
$config->sets([
|
||||||
|
\Lubiana\CodeQuality\LubiSetList::RECTOR,
|
||||||
|
]);
|
||||||
|
};
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue