This is a work in progress Prettier Plugin for Solidity.
Install both prettier
and prettier-plugin-solidity
:
npm install --save-dev prettier prettier-plugin-solidity
You can add a script for running prettier on all your contracts:
"prettier": "prettier --write **/*.sol"
Or you can use it as part of your linting to check that all your code is prettified:
"lint": "prettier --list-different **/*.sol"
- Fork it
- Create your feature branch (
git checkout -b feature/fooBar
) - Commit your changes (
git commit -am 'Add some fooBar'
) - Push to the branch (
git push origin feature/fooBar
) - Create a new Pull Request
Distributed under the MIT license. See LICENSE for more information.