@ethereumjs/config-prettier

Common formatting configuration for EthereumJS libraries.

Usage no npm install needed!

<script type="module">
  import ethereumjsConfigPrettier from 'https://cdn.skypack.dev/@ethereumjs/config-prettier';
</script>

README

@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"
  }