1.1.1 • Published 5 years ago

@ethereumjs/config-prettier v1.1.1

Weekly downloads
94
License
MIT
Repository
github
Last release
5 years ago

@ethereumjs/config-prettier

Common formatting configuration for EthereumJS libraries.

Tool: Prettier

Supported Version: ^1.15.3

Exposed CLI commands:

  • ethereumjs-config-format
  • ethereumjs-config-format-fix

Usage

Add prettier.config.js:

module.exports = require('@ethereumjs/config-prettier')

Add .prettierignore:

node_modules
.vscode
package.json
dist
.nyc_output

Use CLI commands above in package.json:

  "scripts": {
    "format": "ethereumjs-config-format",
    "format-fix": "ethereumjs-config-format-fix"
  }