Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

eslint-config-taskcluster

taskcluster207MPL-2.04.0.0

Shared eslint config for Taskcluster projects

eslint, eslintconfig, taskcluster

readme

Taskcluster's ESLint configuration

Install

npm install --save-dev eslint-config-taskcluster

Use

In your project's .eslintrc, use the extends feature:

{
  'extends': 'eslint-config-taskcluster'
}

Now, set up lint before testing. An example with package.json is:

  "scripts": {
    "compile": "babel-compile -p taskcluster src:lib test:.test",
    "lint": "eslint src/*.js test/*.js",
    "pretest": "yarn lint && npm run compile",
    "test": "mocha .test/*_test.js"
  },