@mapbox/prettier-config-docs

2.1.2 • Public • Published

prettier-config-docs

Prettier configuration for docs.mapbox.com sites.

Install

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
};

How to release

From the main branch:

  1. Run npm version {major|minor|patch}. Example (and usually): npm version minor.
  2. Push changes.
  3. 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.

Readme

Keywords

Package Sidebar

Install

npm i @mapbox/prettier-config-docs

Weekly Downloads

163

Version

2.1.2

License

MIT

Unpacked Size

2.15 kB

Total Files

4

Last publish

Collaborators

  • mbx-npm-ci-production
  • mbx-npm-ci-staging
  • mbx-npm-advanced-actions-production
  • mbx-npm-advanced-actions-staging
  • mbx-npm-09-production
  • mbx-npm-08-production
  • mbx-npm-07-production
  • mbx-npm-06-production
  • mbx-npm-05-production
  • mbx-npm-04-production
  • mbx-npm-03-production
  • mbx-npm-02-production
  • mbx-npm-01-production
  • mbx-npm-02-staging
  • mapbox-npm-01
  • mapbox-npm-02
  • mapbox-npm-07
  • mapbox-npm-03
  • mapbox-npm-04
  • mapbox-npm-09
  • mapbox-npm-05
  • mapbox-npm-06
  • mapbox-npm-08
  • mapbox-npm-advanced-actions
  • mapbox-npm-ci
  • mapbox-npm
  • mapbox-admin
  • mapbox-machine-user