eslint-config-taskcluster

Shared eslint config for Taskcluster projects

Usage no npm install needed!

<script type="module">
  import eslintConfigTaskcluster from 'https://cdn.skypack.dev/eslint-config-taskcluster';
</script>

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