Update eslint dependency to 0.17.1, enable new rules.

This commit is contained in:
David Anson 2015-03-18 23:41:34 -07:00
parent c764d2798f
commit 200dddf3d1
3 changed files with 9 additions and 6 deletions

View file

@ -24,6 +24,8 @@
"no-delete-var": 2,
"no-div-regex": 2,
"no-dupe-keys": 2,
"no-dupe-args": 2,
"no-duplicate-case": 2,
"no-else-return": 2,
"no-empty": 2,
"no-empty-class": 2,
@ -55,7 +57,7 @@
"no-mixed-spaces-and-tabs": [2, false],
"no-multi-spaces": 2,
"no-multi-str": 2,
"no-multiple-empty-lines": [2, { "max": 2 }],
"no-multiple-empty-lines": [2, {"max": 2}],
"no-native-reassign": 2,
"no-negated-in-lhs": 2,
"no-nested-ternary": 0,
@ -95,7 +97,7 @@
"no-underscore-dangle": 2,
"no-unreachable": 2,
"no-unused-expressions": 2,
"no-unused-vars": [2, { "vars": "all", "args": "after-used" }],
"no-unused-vars": [2, {"vars": "all", "args": "after-used"}],
"no-use-before-define": 2,
"no-void": 2,
"no-var": 0,
@ -106,6 +108,7 @@
"block-scoped-var": 2,
"brace-style": [2, "1tbs"],
"camelcase": 2,
"comma-dangle": [2, "never"],
"comma-spacing": 2,
"comma-style": 2,
"complexity": [2, 11],
@ -119,6 +122,7 @@
"func-names": 2,
"func-style": [2, "declaration"],
"generator-star": 2,
"generator-star-spacing": 2,
"global-strict": [2, "always"],
"guard-for-in": 2,
"handle-callback-err": 2,
@ -138,6 +142,7 @@
"quotes": [2, "double"],
"radix": 2,
"semi": 2,
"semi-spacing": [2, {"before": false, "after": true}],
"sort-vars": 0,
"space-after-function-name": [2, "never"],
"space-after-keywords": [2, "always"],

View file

@ -24,7 +24,7 @@
"markdown-it": "^4.0.1"
},
"devDependencies": {
"eslint": "^0.15.0",
"eslint": "^0.17.1",
"istanbul": "^0.3.7",
"nodeunit": "^0.9.0",
"q": "^1.2.0"

View file

@ -65,9 +65,7 @@ function createTestForFile(file) {
};
}
/* eslint-disable no-sync, for synchronous test method creation */
fs.readdirSync("./test").forEach(function forFile(file) {
/* eslint-enable no-sync */
fs.readdirSync("./test").forEach(function forFile(file) { // eslint-disable-line
if (file.match(/\.md$/)) {
module.exports[file] = createTestForFile(path.join("./test", file));
}