tc-rules
v5.0.0
Published
Rules shared by tools used by taskcluster
Downloads
81
Keywords
Readme
TaskCluster Javascript Rules
This repository contains various rules for taskcluster node components.
Intended to be used with modules such as babel-compile
and eslint
.
For efficiency we've named the package tc-rules
to keep the name short.
Example:
{
"name": "taskcluster-lib-...",
"version": "...",
"license": "MPL-2.0",
"scripts": {
"compile": "babel-compile -c tc-rules/babel src:lib test:.test",
"prepublish": "npm run compile",
"pretest": "npm run compile",
},
"dependencies": {
"babel-runtime": "^5.8.25"
},
"devDependencies": {
"babel-compile": "^0.0.3",
"mocha": "^2.0.1",
"tc-rules": "^1.0.6"
},
...
}
By loading configuration from this module, all TaskCluster Javascript modules can have the same linter and babel configuration. This should help us keep the code reasonably consistent.