$ yarn add --dev @flywheel-jp/prettier-config
Once the @flywheel-jp/prettier-config
package is installed, you can use it by specifying the package in the prettier
section of your package.json.
{
// ...
"prettier": "@flywheel-jp/prettier-config"
}
If you need to overwrite some properties, import the file in a .prettierrc.js
file and export the modifications, e.g:
module.export = {
...require("@flywheel-jp/prettier-config"),
overrides: [
{
files: "legacy/**/*.js",
options: {
semi: true
}
}
]
}
In this case, you need to remove the prettier
section from your package.json.
Creating a new release automatically publishes a new version to npm. Everything automatically happens.
MIT © FLYWHEEL Inc.