@sophonjs/config-prettier
v1.1.2
Published
Common formatting configuration for `SophonJS` libraries.
Downloads
8
Readme
@sophonjs/config-prettier
Common formatting configuration for SophonJS
libraries.
Tool: Prettier
Supported Version: ^1.15.3
Exposed CLI commands:
sophonjs-config-format
sophonjs-config-format-fix
Usage
Add prettier.config.js
:
module.exports = require('@sophonjs/config-prettier')
Add .prettierignore
:
node_modules
.vscode
package.json
dist
.nyc_output
Use CLI commands above in package.json
:
"scripts": {
"format": "sophonjs-config-format",
"format-fix": "sophonjs-config-format-fix"
}