JSPM

  • Created
  • Published
  • Downloads 108950
  • Score
    100M100P100Q157407F
  • License MIT

prettier plugin for solidity

Package Exports

  • prettier-plugin-solidity

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (prettier-plugin-solidity) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

prettier-plugin-solidity

Build Status codecov

This is a work in progress Prettier Plugin for Solidity.

Installation and usage

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"

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b feature/fooBar)
  3. Commit your changes (git commit -am 'Add some fooBar')
  4. Push to the branch (git push origin feature/fooBar)
  5. Create a new Pull Request

License

Distributed under the MIT license. See LICENSE for more information.