fusionspim/pint-coding-style

This package is abandoned and no longer maintained. No replacement package was suggested.

Configuration for Laravel Pint, as used by the Fusions PIM dev team

1.0.0 2022-11-03 13:09 UTC

This package is auto-updated.

Last update: 2023-03-31 16:18:36 UTC


README

This repository provides configuration for Laravel Pint, which we use to verify and enforce a single coding standard for PHP code within Fusions PIM.

Installation

  1. Run composer require --dev laravel/pint fusionspim/pint-coding-style

  2. Add script to composer.json:

{
    ...
    "scripts": {
        ...
        "fix-cs": "pint --config vendor/fusionspim/pint-coding-style/pint.json",
        ...
    }
    ...
}

  1. Add to .gitignore:
.pint.cache
  1. Add to continuous integration workflow:

composer fix-cs -- --test

Usage

Run composer fix-cs