Skip to content
Airbnb's ESLint config, following the Airbnb styleguide with Mozilla additions
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
packages
scripts
.eslintrc.js
.gitignore
.neutrinorc.js
.travis.yml
LICENSE
README.md
lerna.json
package.json
yarn.lock

README.md

Lint

Airbnb's ESLint config, following the Airbnb styleguide with Mozilla additions


Build Status

Requirements

  • Node.js ^8.10 || >=10
  • Yarn or npm client
  • Neutrino v9

Features

  • @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
  • @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

Installation

Yarn is highly preferred for Mozilla Frontend Infra projects.

Example: Installing the react-lint middleware:

Yarn

❯ yarn add --dev @mozilla-frontend-infra/react-lint

npm

❯ npm install --save-dev @mozilla-frontend-infra/react-lint
You can’t perform that action at this time.