Prettier configuration for docs.mapbox.com sites.
npm install --save-dev @mapbox/prettier-config-docs
Edit package.json
:
{
// ...
"prettier": "@mapbox/prettier-config-docs"
}
or to extend this configuration to overwrite some properties, create .prettierrc.js
:
module.exports = {
...require('@mapbox/prettier-config-docs'),
tabWidth: 4
};
From the main branch:
- Run
npm version {major|minor|patch}
. Example (and usually):npm version minor
. - Push changes.
- Run
mbx npm publish
to publish the package to npm.
Dependabot will automatically update @mapbox/prettier-config-docs
(within 1 day) to all site repositories. If you need it sooner, you can install this package in the repository by following the install steps.