laravel / pint

Laravel Pint is an opinionated PHP code style fixer for minimalists.
https://laravel.com/docs/pint
MIT License
2.78k stars 144 forks source link

Create empty preset #282

Closed imanghafoori1 closed 3 months ago

imanghafoori1 commented 3 months ago

For a dirty big project, it is not possible to reformat all at once, but rather we need to apply rule by rule and make small PRs that are easy to review and merge. Currently, I find no way to apply only a single rule on the project and avoid all the other rules. This way we incrementally add rules to the pint.json in each PR and apply the modification on the entire project.

{
  "preset": "empty",
  "rules": {
     "no_empty_comment": true
  }
}
driesvints commented 3 months ago

Thanks @imanghafoori1. Can you also PR the docs?

imanghafoori1 commented 3 months ago

@driesvints Sure