Shared eslint config for Taskcluster projects
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
CODE_OF_CONDUCT.md
CONTRIBUTING.md
LICENSE
README.md
index.js
package.json
yarn.lock

README.md

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"
  },