@ethereumjs/config-prettier
v1.1.1
Published
Common formatting configuration for `EthereumJS` libraries.
Downloads
205
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"
}