Airbnb's ESLint config, following the Airbnb styleguide with Mozilla additions
- Node.js
^8.10 || >=10
- Yarn or npm client
- Neutrino v9
@mozilla-frontend-infra/react-lint
:- Extends from
@neutrinojs/airbnb
- For linting React and React Component-based projects
- Highly visible during development, fails compilation when building for production
- Extends from
@mozilla-frontend-infra/node-lint
:- Extends from
@neutrinojs/airbnb-base
- For linting Node.js-based projects
- Highly visible during development, fails compilation when building for production
- Extends from
Yarn is highly preferred for Mozilla Frontend Infra projects.
Example: Installing the react-lint
middleware:
❯ yarn add --dev @mozilla-frontend-infra/react-lint
❯ npm install --save-dev @mozilla-frontend-infra/react-lint