Skip to content

Commit

Permalink
New: Added shareable configs "two" and "recommended" (fixes #33)
Browse files Browse the repository at this point in the history
  • Loading branch information
platinumazure committed Jun 9, 2016
1 parent 62d88cc commit b8d5be2
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 7 deletions.
36 changes: 34 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,39 @@ module.exports = {
"no-reassign-log-callbacks": require("./lib/rules/no-reassign-log-callbacks"),
"no-reset": require("./lib/rules/no-reset"),
"no-setup-teardown": require("./lib/rules/no-setup-teardown"),
"resolve-async": require("./lib/rules/resolve-async"),
"require-expect": require("./lib/rules/require-expect")
"require-expect": require("./lib/rules/require-expect"),
"resolve-async": require("./lib/rules/resolve-async")
},
configs: {
two: {
rules: {
"no-async-test": "error",
"no-global-assertions": "error",
"no-global-expect": "error",
"no-global-module-test": "error",
"no-global-stop-start": "error",
"no-init": "error",
"no-jsdump": "error",
"no-qunit-push": "error",
"no-qunit-stop": "error",
"no-reassign-log-callbacks": "error",
"no-reset": "error",
"no-setup-teardown": "error"
}
},
recommended: {
rules: {
"assert-args": "error",
"literal-compare-order": "error",
"no-async-in-loops": "error",
"no-commented-tests": "error",
"no-ok-equality": "error",
"no-only": "error",
"no-reassign-log-callbacks": "error",
"no-reset": "error",
"require-expect": ["error", "except-simple"],
"resolve-async": "error"
}
}
}
};
5 changes: 0 additions & 5 deletions tests/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,6 @@ describe("index.js", function () {
assert.property(index.rules, fileName, "Rule export for " + fileName + " not present");
});

it("should appear in rulesConfig", function () {
assert.property(index.rulesConfig, fileName, "Rule config for " + fileName + " not present");
assert.include(["number", "array"], typeof index.rulesConfig[fileName], "Rule config for " + fileName + " should be number or array");
});

it("should appear in docs", function (done) {
var path = "./docs/rules/" + fileName + ".md";

Expand Down

0 comments on commit b8d5be2

Please sign in to comment.