You can create a new repository by using this template, so by the way all of your PHP projects will have a nice and good pre-commit and prettier config.
Installing:
pip install pre-commit
or
curl https://pre-commit.com/install-local.py | python -
or
brew install pre-commit
or
conda install -c conda-forge pre-commit
And run:
pre-commit run --all-files
A framework for managing and maintaining multi-language pre-commit hooks.
Prettier is an opinionated code formatter.
JavaScript · TypeScript · Flow · JSX · JSON CSS · SCSS · Less HTML · Vue · Angular GraphQL · Markdown · YAML
https://github.com/prettier/prettier
StyleCI is a continuous integration tool for your PHP, Python, JavaScript and CSS, JavaScript, Vue and Python developers which makes it super easy to ensure ...