lintkit/editorconfig-config

There is no license information available for the latest version (1.0.0) of this package.

1.0.0 2024-09-13 20:17 UTC

This package is auto-updated.

Last update: 2024-10-31 10:52:28 UTC


README

Opinionated configuration for editor config

Usage

Install the dependency:

composer require --dev lintkit/editorconfig-config

Add the scripts:

"scripts": {
    "editorconfig:dry-run": "ec --finder-config vendor/lintkit/editorconfig-config/ec-cli-config.php",
    "editorconfig:fix": "@editorconfig:dry-run --fix",
},

Custom Overriding

It may be you wish to add and/or remove stuff from the default finder config, in which case, make a ec-cli-config.php in your project root with something like the following:

<?php

$finder = include 'vendor/lintkit/editorconfig-config/ec-cli-config.php';

$finder
    ->notPath('html/_assets')
;

return $finder;

Update your composer.json to use --finder-config ./ec-cli-config.php