Common Prettier configuration for Lightspeed webapps
npm install @lightspeed/config-prettier@lightspeed/config-prettierPrettier configuration in a convenient package.
1. Install the dependency in your webapp.
``sh`
yarn add -D prettier @lightspeed/config-prettier
2. Consume the Prettier configuration.
`js`
// prettier.config.js
module.exports = require('@lightspeed/config-prettier');
3. Optionally, extend the configuration as you see fit.
`js
const baseConfig = require('@lightspeed/config-prettier');
module.exports = Object.assign(baseConfig, {
printWidth: 120,
});
``