1.0.2 • Published 10 years ago
eslint-plugin-taskcluster v1.0.2
eslint-plugin-taskcluster
An eslint plugin for the Taskcluster Platform.
Installation
You'll first need to install ESLint and babel-eslint:
$ npm install eslint@1.x babel-eslint@5 --save-dev
$ npm install eslint@2.x babel-eslint@6 --save-devNext, install eslint-plugin-taskcluster:
$ npm install eslint-plugin-taskcluster --save-devNote: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-taskcluster globally.
Usage
Add taskcluster to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
{
"plugins": [
"taskcluster"
]
}Then configure the rules you want to use under the rules section.
{
"rules": {
"taskcluster/no-for-in": 2
}
}Supported Rules
no-for-in: Disallow all instances of for-in loops.