@mapbox/eslint-config-docs

0.4.1 • Public • Published

eslint-config-docs

Eslint configuration for docs.mapbox.com sites. This configuration helps us catch incompatible features, enforce React proptypes, and more.

Install

Add the package to your project:

npm install @mapbox/eslint-config-docs --save-dev

You'll also need to install the peer dependencies, one way to do that is to globally install install-peerdeps and then run it to automatically install all the peer dependencies required by this package:

npm install -g install-peerdeps
npx install-peerdeps --dev @mapbox/eslint-config-docs

Add this config name to extends in your eslint config. For docs sites, add it to conf/eslint-config-browser.json. Example:

"extends": ["./eslint-config-base.json", "@mapbox/eslint-config-docs"]

Readme

Keywords

Package Sidebar

Install

npm i @mapbox/eslint-config-docs@0.4.1

Version

0.4.1

License

MIT

Unpacked Size

3.88 kB

Total Files

3

Last publish

Collaborators

  • 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
  • mbx-npm-ci-staging
  • mbx-npm-ci-production
  • mbx-npm-01-production
  • mbx-npm-02-production
  • mbx-npm-03-production
  • mbx-npm-04-production
  • mbx-npm-05-production
  • mbx-npm-06-production
  • mbx-npm-07-production
  • mbx-npm-08-production
  • mbx-npm-09-production
  • mbx-npm-02-staging
  • mbx-npm-advanced-actions-staging
  • mbx-npm-advanced-actions-production