diff --git a/.eslintrc b/.eslintrc index bf55eb8..5860cf9 100644 --- a/.eslintrc +++ b/.eslintrc @@ -15,6 +15,8 @@ }, "rules": { "no-extra-parens": 2, + "no-inner-declarations": 0, + "consistent-return": 0, "no-eq-null": 2, "no-floating-decimal": 2, "no-self-compare": 2, @@ -22,6 +24,7 @@ "no-void": 2, "wrap-iife": [2, "outside"], "strict": [2, "global"], + "no-use-before-define": [2, "nofunc"], "no-var": 2, "generator-star-spacing": [2, "after"], "object-shorthand": [2, "always"] diff --git a/lib/worm-scraper.js b/lib/worm-scraper.js index b910099..da21d48 100644 --- a/lib/worm-scraper.js +++ b/lib/worm-scraper.js @@ -13,8 +13,6 @@ const cachePath = path.resolve("cache"); const outPath = path.resolve("out"); const contentPath = path.resolve(outPath, "OEBPS"); -const rawChapterDocs = new Map(); - let chapters; getChapters() .then(function (theChapters) {