=========================================================== .___ __ __ _________________ __ __ __| _/|__|/ |_ / ___\_` __ \__ \ | | \/ __ | | \\_ __\ / /_/ > | \// __ \| | / /_/ | | || | \___ /|__| (____ /____/\____ | |__||__| /_____/ \/ \/ grep rough audit - static analysis tool v2.8 written by @Wireghoul =================================[justanotherhacker.com]=== eslint-5.16.0~dfsg/CHANGELOG.md-3032-* Fix: Remove temporary `"allow-null"` (fixes #3705) (Toru Nagashima) eslint-5.16.0~dfsg/CHANGELOG.md:3033:* Fix: `no-unused-vars` had been crashed at `/*global $foo*/` (fixes #3714) (Toru Nagashima) eslint-5.16.0~dfsg/CHANGELOG.md-3034-* Build: check-commit now checks commit message length. (fixes #3706) (Kevin Partington) ############################################## eslint-5.16.0~dfsg/Makefile.js-62- // Utilities - intentional extra space at the end of each string eslint-5.16.0~dfsg/Makefile.js:63: MOCHA = `${NODE_MODULES}mocha/bin/_mocha `, eslint-5.16.0~dfsg/Makefile.js:64: ESLINT = `${NODE} bin/eslint.js --report-unused-disable-directives `, eslint-5.16.0~dfsg/Makefile.js-65- ############################################## eslint-5.16.0~dfsg/Makefile.js-71- PERF_MULTIFILES_TARGET_DIR = path.join(PERF_TMP_DIR, "eslint"), eslint-5.16.0~dfsg/Makefile.js:72: PERF_MULTIFILES_TARGETS = `"${PERF_MULTIFILES_TARGET_DIR + path.sep}{lib,tests${path.sep}lib}${path.sep}**${path.sep}*.js"`, eslint-5.16.0~dfsg/Makefile.js-73- ############################################## eslint-5.16.0~dfsg/Makefile.js-140- filename = `../eslint.github.io/_posts/${now.getFullYear()}-${ eslint-5.16.0~dfsg/Makefile.js:141: month < 10 ? `0${month}` : month}-${ eslint-5.16.0~dfsg/Makefile.js:142: day < 10 ? `0${day}` : day}-eslint-v${ eslint-5.16.0~dfsg/Makefile.js-143- releaseInfo.version}-released.md`; ############################################## eslint-5.16.0~dfsg/Makefile.js-160- if (prereleaseVersion) { eslint-5.16.0~dfsg/Makefile.js:161: filename = filename.replace("/docs", `/docs/${prereleaseVersion}`); eslint-5.16.0~dfsg/Makefile.js:162: htmlFilename = htmlFilename.replace("/docs", `/docs/${prereleaseVersion}`); eslint-5.16.0~dfsg/Makefile.js-163- if (!test("-d", path.dirname(filename))) { ############################################## eslint-5.16.0~dfsg/Makefile.js-227- exec("git add -A ."); eslint-5.16.0~dfsg/Makefile.js:228: exec(`git commit -m "Autogenerated new docs and demo at ${dateformat(new Date())}"`); eslint-5.16.0~dfsg/Makefile.js-229- eslint-5.16.0~dfsg/Makefile.js-230- if (tag) { eslint-5.16.0~dfsg/Makefile.js:231: exec(`git tag ${tag}`); eslint-5.16.0~dfsg/Makefile.js-232- } ############################################## eslint-5.16.0~dfsg/Makefile.js-262- generateBlogPost(releaseInfo); eslint-5.16.0~dfsg/Makefile.js:263: commitSiteToGit(`v${releaseInfo.version}`); eslint-5.16.0~dfsg/Makefile.js-264-} ############################################## eslint-5.16.0~dfsg/Makefile.js-300- eslint-5.16.0~dfsg/Makefile.js:301: commitSiteToGit(`v${releaseInfo.version}`); eslint-5.16.0~dfsg/Makefile.js-302-} ############################################## eslint-5.16.0~dfsg/Makefile.js-328-function getFirstCommitOfFile(filePath) { eslint-5.16.0~dfsg/Makefile.js:329: let commits = execSilent(`git rev-list HEAD -- ${filePath}`); eslint-5.16.0~dfsg/Makefile.js-330- ############################################## eslint-5.16.0~dfsg/Makefile.js-341- const firstCommit = getFirstCommitOfFile(filePath); eslint-5.16.0~dfsg/Makefile.js:342: let tags = execSilent(`git tag --contains ${firstCommit}`); eslint-5.16.0~dfsg/Makefile.js-343- ############################################## eslint-5.16.0~dfsg/Makefile.js-360-function getCommitDeletingFile(filePath) { eslint-5.16.0~dfsg/Makefile.js:361: const commits = execSilent(`git rev-list HEAD -- ${filePath}`); eslint-5.16.0~dfsg/Makefile.js-362- ############################################## eslint-5.16.0~dfsg/Makefile.js-372- const deletionCommit = getCommitDeletingFile(filePath), eslint-5.16.0~dfsg/Makefile.js:373: tags = execSilent(`git tag --contains ${deletionCommit}`); eslint-5.16.0~dfsg/Makefile.js-374- ############################################## eslint-5.16.0~dfsg/Makefile.js-501- echo("Validating JavaScript files"); eslint-5.16.0~dfsg/Makefile.js:502: lastReturn = exec(`${ESLINT} .`); eslint-5.16.0~dfsg/Makefile.js-503- if (lastReturn.code !== 0) { ############################################## eslint-5.16.0~dfsg/Makefile.js-528- eslint-5.16.0~dfsg/Makefile.js:529: echo(`The fuzzer reported ${fuzzResults.length} error${fuzzResults.length === 1 ? "" : "s"} with a total of ${uniqueStackTraceCount} unique stack trace${uniqueStackTraceCount === 1 ? "" : "s"}.`); eslint-5.16.0~dfsg/Makefile.js-530- ############################################## eslint-5.16.0~dfsg/Makefile.js-545- do { eslint-5.16.0~dfsg/Makefile.js:546: fuzzLogPath = path.join(DEBUG_DIR, `fuzzer-log-${fileSuffix}.json`); eslint-5.16.0~dfsg/Makefile.js-547- fileSuffix++; ############################################## eslint-5.16.0~dfsg/Makefile.js-552- // TODO: (not-an-aardvark) Create a better way to isolate and test individual fuzzer errors from the log file eslint-5.16.0~dfsg/Makefile.js:553: echo(`More details can be found in ${fuzzLogPath}.`); eslint-5.16.0~dfsg/Makefile.js-554- } ############################################## eslint-5.16.0~dfsg/Makefile.js-567- eslint-5.16.0~dfsg/Makefile.js:568: lastReturn = exec(`${getBinFile("nyc")} -- ${MOCHA} -R progress -t ${MOCHA_TIMEOUT} -c ${TEST_FILES}`); eslint-5.16.0~dfsg/Makefile.js-569- if (lastReturn.code !== 0) { ############################################## eslint-5.16.0~dfsg/Makefile.js-572- eslint-5.16.0~dfsg/Makefile.js:573: lastReturn = exec(`${getBinFile("nyc")} check-coverage --statement 99 --branch 98 --function 99 --lines 99`); eslint-5.16.0~dfsg/Makefile.js-574- if (lastReturn.code !== 0) { ############################################## eslint-5.16.0~dfsg/Makefile.js-584- baseConfig: { parserOptions: { ecmaVersion: 5 } } eslint-5.16.0~dfsg/Makefile.js:585: }).executeOnFiles([`${BUILD_DIR}/eslint.js`]); eslint-5.16.0~dfsg/Makefile.js-586- eslint-5.16.0~dfsg/Makefile.js-587- if (browserFileLintOutput.errorCount > 0) { eslint-5.16.0~dfsg/Makefile.js:588: echo(`error: Failed to lint ${BUILD_DIR}/eslint.js as ES5 code`); eslint-5.16.0~dfsg/Makefile.js-589- echo(CLIEngine.getFormatter("stylish")(browserFileLintOutput.results)); ############################################## eslint-5.16.0~dfsg/Makefile.js-592- eslint-5.16.0~dfsg/Makefile.js:593: lastReturn = exec(`${getBinFile("karma")} start karma.conf.js`); eslint-5.16.0~dfsg/Makefile.js-594- if (lastReturn.code !== 0) { ############################################## eslint-5.16.0~dfsg/Makefile.js-608- echo("Generating documentation"); eslint-5.16.0~dfsg/Makefile.js:609: exec(`${getBinFile("jsdoc")} -d jsdoc lib`); eslint-5.16.0~dfsg/Makefile.js-610- echo("Documentation has been output to /jsdoc"); ############################################## eslint-5.16.0~dfsg/Makefile.js-625- if (prereleaseVersion) { eslint-5.16.0~dfsg/Makefile.js:626: docFiles = docFiles.map(docFile => `/${prereleaseVersion}${docFile}`); eslint-5.16.0~dfsg/Makefile.js-627- } ############################################## eslint-5.16.0~dfsg/Makefile.js-679- baseName = path.basename(filename), eslint-5.16.0~dfsg/Makefile.js:680: sourceBaseName = `${path.basename(filename, ".md")}.js`, eslint-5.16.0~dfsg/Makefile.js-681- sourcePath = path.join("lib/rules", sourceBaseName), ############################################## eslint-5.16.0~dfsg/Makefile.js-687- eslint-5.16.0~dfsg/Makefile.js:688: process.stdout.write(`> Updating files (Steps 4-9): ${i}/${length} - ${filePath + " ".repeat(30)}\r`); eslint-5.16.0~dfsg/Makefile.js-689- ############################################## eslint-5.16.0~dfsg/Makefile.js-702- eslint-5.16.0~dfsg/Makefile.js:703: text = `${ruleHeading}${isRecommended ? RECOMMENDED_TEXT : ""}${isFixable ? FIXABLE_TEXT : ""}\n${ruleDocsContent}`; eslint-5.16.0~dfsg/Makefile.js:704: title = `${ruleName} - Rules`; eslint-5.16.0~dfsg/Makefile.js-705- eslint-5.16.0~dfsg/Makefile.js-706- if (rule && rule.meta) { eslint-5.16.0~dfsg/Makefile.js:707: ruleType = `rule_type: ${rule.meta.type}`; eslint-5.16.0~dfsg/Makefile.js-708- } ############################################## eslint-5.16.0~dfsg/Makefile.js-721- "---", eslint-5.16.0~dfsg/Makefile.js:722: `title: ${title}`, eslint-5.16.0~dfsg/Makefile.js-723- "layout: doc", eslint-5.16.0~dfsg/Makefile.js:724: `edit_link: https://github.com/eslint/eslint/edit/master/${filePath}`, eslint-5.16.0~dfsg/Makefile.js-725- ruleType, ############################################## eslint-5.16.0~dfsg/Makefile.js-736- if (!/\n$/u.test(text)) { eslint-5.16.0~dfsg/Makefile.js:737: text = `${text}\n`; eslint-5.16.0~dfsg/Makefile.js-738- } ############################################## eslint-5.16.0~dfsg/Makefile.js-753- text += removed eslint-5.16.0~dfsg/Makefile.js:754: ? `This rule was introduced in ESLint ${added} and removed in ${removed}.\n` eslint-5.16.0~dfsg/Makefile.js:755: : `This rule was introduced in ESLint ${added}.\n`; eslint-5.16.0~dfsg/Makefile.js-756- ############################################## eslint-5.16.0~dfsg/Makefile.js-758- if (!removed) { eslint-5.16.0~dfsg/Makefile.js:759: text += `* [Rule source](${rulesUrl}${sourceBaseName})\n`; eslint-5.16.0~dfsg/Makefile.js-760- } eslint-5.16.0~dfsg/Makefile.js:761: text += `* [Documentation source](${docsUrl}${baseName})\n`; eslint-5.16.0~dfsg/Makefile.js-762- } ############################################## eslint-5.16.0~dfsg/Makefile.js-768- JSON.stringify(versions).to("./versions.json"); eslint-5.16.0~dfsg/Makefile.js:769: echo(`> Updating files (Steps 4-9)${" ".repeat(50)}`); eslint-5.16.0~dfsg/Makefile.js-770- ############################################## eslint-5.16.0~dfsg/Makefile.js-775- if (prereleaseVersion) { eslint-5.16.0~dfsg/Makefile.js:776: outputDir += `/${prereleaseVersion}`; eslint-5.16.0~dfsg/Makefile.js-777- if (!test("-d", outputDir)) { ############################################## eslint-5.16.0~dfsg/Makefile.js-780- } eslint-5.16.0~dfsg/Makefile.js:781: cp("-rf", `${TEMP_DIR}*`, outputDir); eslint-5.16.0~dfsg/Makefile.js-782- ############################################## eslint-5.16.0~dfsg/Makefile.js-794- target.webpack("production"); eslint-5.16.0~dfsg/Makefile.js:795: cp("-f", "build/eslint.js", `${SITE_DIR}js/app/eslint.js`); eslint-5.16.0~dfsg/Makefile.js:796: cp("-f", "build/espree.js", `${SITE_DIR}js/app/espree.js`); eslint-5.16.0~dfsg/Makefile.js-797- } else { ############################################## eslint-5.16.0~dfsg/Makefile.js-808-target.webpack = function(mode = "none") { eslint-5.16.0~dfsg/Makefile.js:809: exec(`${getBinFile("webpack")} --mode=${mode} --output-path=${BUILD_DIR}`); eslint-5.16.0~dfsg/Makefile.js-810-}; ############################################## eslint-5.16.0~dfsg/Makefile.js-821- const basename = path.basename(filename, ".js"); eslint-5.16.0~dfsg/Makefile.js:822: const docFilename = `docs/rules/${basename}.md`; eslint-5.16.0~dfsg/Makefile.js-823- ############################################## eslint-5.16.0~dfsg/Makefile.js-840- const docText = cat(docFilename); eslint-5.16.0~dfsg/Makefile.js:841: const idOldAtEndOfTitleRegExp = new RegExp(`^# (.*?) \\(${id}\\)`, "u"); // original format eslint-5.16.0~dfsg/Makefile.js:842: const idNewAtBeginningOfTitleRegExp = new RegExp(`^# ${id}: `, "u"); // new format is same as rules index eslint-5.16.0~dfsg/Makefile.js-843- /* ############################################## eslint-5.16.0~dfsg/Makefile.js-876- if (ruleEntryFromIndexIsMissing) { eslint-5.16.0~dfsg/Makefile.js:877: console.error(`Missing rule from index (${builtInRulesIndexPath}.js): ${basename}. If you just added a ` + eslint-5.16.0~dfsg/Makefile.js-878- "new rule then add an entry for it in this file."); ############################################## eslint-5.16.0~dfsg/Makefile.js-882- // check for tests eslint-5.16.0~dfsg/Makefile.js:883: if (!test("-f", `tests/lib/rules/${basename}.js`)) { eslint-5.16.0~dfsg/Makefile.js-884- console.error("Missing tests for rule %s", basename); ############################################## eslint-5.16.0~dfsg/Makefile.js-951- echo("Downloading the repository of multi-files performance test target."); eslint-5.16.0~dfsg/Makefile.js:952: exec(`git clone -b v1.10.3 --depth 1 https://github.com/eslint/eslint.git "${PERF_MULTIFILES_TARGET_DIR}"`, { silent: true }, cb); eslint-5.16.0~dfsg/Makefile.js-953- } ############################################## eslint-5.16.0~dfsg/Makefile.js-969- eslint-5.16.0~dfsg/Makefile.js:970: content.push(...ls("lib/rules").map(fileName => ` ${path.basename(fileName, ".js")}: 1`)); eslint-5.16.0~dfsg/Makefile.js-971- ############################################## eslint-5.16.0~dfsg/Makefile.js-992- if (code) { eslint-5.16.0~dfsg/Makefile.js:993: echo(` Performance Run #${runNumber} failed.`); eslint-5.16.0~dfsg/Makefile.js-994- if (stdout) { eslint-5.16.0~dfsg/Makefile.js:995: echo(`STDOUT:\n${stdout}\n\n`); eslint-5.16.0~dfsg/Makefile.js-996- } ############################################## eslint-5.16.0~dfsg/Makefile.js-998- if (stderr) { eslint-5.16.0~dfsg/Makefile.js:999: echo(`STDERR:\n${stderr}\n\n`); eslint-5.16.0~dfsg/Makefile.js-1000- } ############################################## eslint-5.16.0~dfsg/Makefile.js-1004- results.push(actual); eslint-5.16.0~dfsg/Makefile.js:1005: echo(` Performance Run #${runNumber}: %dms`, actual); eslint-5.16.0~dfsg/Makefile.js-1006- if (runs > 1) { ############################################## eslint-5.16.0~dfsg/Makefile.js-1026- max = multiplier / cpuSpeed, eslint-5.16.0~dfsg/Makefile.js:1027: cmd = `${ESLINT}--config "${PERF_ESLINTRC}" --no-eslintrc --no-ignore ${targets}`; eslint-5.16.0~dfsg/Makefile.js-1028- ############################################## eslint-5.16.0~dfsg/Makefile.js-1068- eslint-5.16.0~dfsg/Makefile.js:1069: echo(` Load performance Run #${cnt + 1}: %dms`, loadPerfData.loadTime); eslint-5.16.0~dfsg/Makefile.js-1070- results.push(loadPerfData.loadTime); ############################################## eslint-5.16.0~dfsg/Makefile.js-1100- runPerformanceTest( eslint-5.16.0~dfsg/Makefile.js:1101: `Multi Files (${count} files):`, eslint-5.16.0~dfsg/Makefile.js-1102- PERF_MULTIFILES_TARGETS, ############################################## eslint-5.16.0~dfsg/bin/eslint.js-43- if (typeof err.messageTemplate === "string" && err.messageTemplate.length > 0) { eslint-5.16.0~dfsg/bin/eslint.js:44: const template = lodash.template(fs.readFileSync(path.resolve(__dirname, `../messages/${err.messageTemplate}.txt`), "utf-8")); eslint-5.16.0~dfsg/bin/eslint.js-45- const pkg = require("../package.json"); ############################################## eslint-5.16.0~dfsg/bin/eslint.js-47- console.error("\nOops! Something went wrong! :("); eslint-5.16.0~dfsg/bin/eslint.js:48: console.error(`\nESLint: ${pkg.version}.\n${template(err.messageData || {})}`); eslint-5.16.0~dfsg/bin/eslint.js-49- } else { ############################################## eslint-5.16.0~dfsg/docs/rules/default-case.md-93- eslint-5.16.0~dfsg/docs/rules/default-case.md:94:* Set the `commentPattern` option to a regular expression string to change the default `/^no default$/i` comment test pattern eslint-5.16.0~dfsg/docs/rules/default-case.md-95- ############################################## eslint-5.16.0~dfsg/docs/rules/dot-notation.md-52- eslint-5.16.0~dfsg/docs/rules/dot-notation.md:53:Examples of **correct** code for the sample `{ "allowPattern": "^[a-z]+(_[a-z]+)+$" }` option: eslint-5.16.0~dfsg/docs/rules/dot-notation.md-54- ############################################## eslint-5.16.0~dfsg/docs/rules/handle-callback-err.md-68- eslint-5.16.0~dfsg/docs/rules/handle-callback-err.md:69:* If the option is `"^(err|error|anySpecificError)$"`, the rule reports unhandled errors where the parameter name can be `err`, `error` or `anySpecificError`. eslint-5.16.0~dfsg/docs/rules/handle-callback-err.md:70:* If the option is `"^.+Error$"`, the rule reports unhandled errors where the parameter name ends with `Error` (for example, `connectionError` or `validationError` will match). eslint-5.16.0~dfsg/docs/rules/handle-callback-err.md-71-* If the option is `"^.*(e|E)rr"`, the rule reports unhandled errors where the parameter name matches any string that contains `err` or `Err` (for example, `err`, `error`, `anyError`, `some_err` will match). ############################################## eslint-5.16.0~dfsg/docs/rules/id-match.md-25- eslint-5.16.0~dfsg/docs/rules/id-match.md:26:Examples of **incorrect** code for this rule with the `"^[a-z]+([A-Z][a-z]+)*$"` option: eslint-5.16.0~dfsg/docs/rules/id-match.md-27- ############################################## eslint-5.16.0~dfsg/docs/rules/id-match.md-42- eslint-5.16.0~dfsg/docs/rules/id-match.md:43:Examples of **correct** code for this rule with the `"^[a-z]+([A-Z][a-z]+)*$"` option: eslint-5.16.0~dfsg/docs/rules/id-match.md-44- ############################################## eslint-5.16.0~dfsg/docs/rules/id-match.md-66- eslint-5.16.0~dfsg/docs/rules/id-match.md:67:Examples of **incorrect** code for this rule with the `"^[a-z]+([A-Z][a-z]+)*$", { "properties": true }` options: eslint-5.16.0~dfsg/docs/rules/id-match.md-68- ############################################## eslint-5.16.0~dfsg/docs/rules/id-match.md-78- eslint-5.16.0~dfsg/docs/rules/id-match.md:79:Examples of **correct** code for this rule with the `"^[a-z]+([A-Z][a-z]+)*$", { "onlyDeclarations": true }` options: eslint-5.16.0~dfsg/docs/rules/id-match.md-80- ############################################## eslint-5.16.0~dfsg/docs/rules/id-match.md-88- eslint-5.16.0~dfsg/docs/rules/id-match.md:89:Examples of **incorrect** code for this rule with the default `"^[^_]+$", { "ignoreDestructuring": false }` option: eslint-5.16.0~dfsg/docs/rules/id-match.md-90- ############################################## eslint-5.16.0~dfsg/docs/rules/id-match.md-106- eslint-5.16.0~dfsg/docs/rules/id-match.md:107:Examples of **incorrect** code for this rule with the `"^[^_]+$", { "ignoreDestructuring": true }` option: eslint-5.16.0~dfsg/docs/rules/id-match.md-108- ############################################## eslint-5.16.0~dfsg/docs/rules/id-match.md-116- eslint-5.16.0~dfsg/docs/rules/id-match.md:117:Examples of **correct** code for this rule with the `"^[^_]+$", { "ignoreDestructuring": true }` option: eslint-5.16.0~dfsg/docs/rules/id-match.md-118- ############################################## eslint-5.16.0~dfsg/docs/rules/no-template-curly-in-string.md-2- eslint-5.16.0~dfsg/docs/rules/no-template-curly-in-string.md:3:ECMAScript 6 allows programmers to create strings containing variable or expressions using template literals, instead of string concatenation, by writing expressions like `${variable}` between two backtick quotes (\`). It can be easy to use the wrong quotes when wanting to use template literals, by writing `"${variable}"`, and end up with the literal value `"${variable}"` instead of a string containing the value of the injected expressions. eslint-5.16.0~dfsg/docs/rules/no-template-curly-in-string.md-4- ############################################## eslint-5.16.0~dfsg/docs/rules/no-template-curly-in-string.md-7- eslint-5.16.0~dfsg/docs/rules/no-template-curly-in-string.md:8:This rule aims to warn when a regular string contains what looks like a template literal placeholder. It will warn when it finds a string containing the template literal place holder (`${something}`) that uses either `"` or `'` for the quotes. eslint-5.16.0~dfsg/docs/rules/no-template-curly-in-string.md-9- ############################################## eslint-5.16.0~dfsg/docs/rules/no-template-curly-in-string.md-24-/*eslint no-template-curly-in-string: "error"*/ eslint-5.16.0~dfsg/docs/rules/no-template-curly-in-string.md:25:`Hello ${name}!`; eslint-5.16.0~dfsg/docs/rules/no-template-curly-in-string.md:26:`Time: ${12 * 60 * 60 * 1000}`; eslint-5.16.0~dfsg/docs/rules/no-template-curly-in-string.md-27- eslint-5.16.0~dfsg/docs/rules/no-template-curly-in-string.md:28:templateFunction`Hello ${name}`; eslint-5.16.0~dfsg/docs/rules/no-template-curly-in-string.md-29-``` ############################################## eslint-5.16.0~dfsg/docs/rules/no-throw-literal.md-30-var err = new Error(); eslint-5.16.0~dfsg/docs/rules/no-throw-literal.md:31:throw `${err}` eslint-5.16.0~dfsg/docs/rules/no-throw-literal.md-32- ############################################## eslint-5.16.0~dfsg/docs/rules/no-useless-escape.md-6-let foo = "hol\a"; // > foo = "hola" eslint-5.16.0~dfsg/docs/rules/no-useless-escape.md:7:let bar = `${foo}\!`; // > bar = "hola!" eslint-5.16.0~dfsg/docs/rules/no-useless-escape.md-8-let baz = /\:/ // same functionality with /:/ ############################################## eslint-5.16.0~dfsg/docs/rules/no-useless-escape.md-24-`\"`; eslint-5.16.0~dfsg/docs/rules/no-useless-escape.md:25:`\"${foo}\"`; eslint-5.16.0~dfsg/docs/rules/no-useless-escape.md-26-`\#{foo}`; ############################################## eslint-5.16.0~dfsg/docs/rules/no-useless-escape.md-43-`\``; eslint-5.16.0~dfsg/docs/rules/no-useless-escape.md:44:`\${${foo}}`; eslint-5.16.0~dfsg/docs/rules/no-useless-escape.md:45:`$\{${foo}}`; eslint-5.16.0~dfsg/docs/rules/no-useless-escape.md-46-/\\/g; ############################################## eslint-5.16.0~dfsg/docs/rules/object-property-newline.md-94-- `a` (ES2015 shorthand property) eslint-5.16.0~dfsg/docs/rules/object-property-newline.md:95:- ``[`prop${a}`]`` (ES2015 computed property name) eslint-5.16.0~dfsg/docs/rules/object-property-newline.md-96- ############################################## eslint-5.16.0~dfsg/docs/rules/prefer-template.md-11- eslint-5.16.0~dfsg/docs/rules/prefer-template.md:12:var str = `Hello, ${name}!`; eslint-5.16.0~dfsg/docs/rules/prefer-template.md-13-``` ############################################## eslint-5.16.0~dfsg/docs/rules/prefer-template.md-36-var str = "Hello World!"; eslint-5.16.0~dfsg/docs/rules/prefer-template.md:37:var str = `Hello, ${name}!`; eslint-5.16.0~dfsg/docs/rules/prefer-template.md:38:var str = `Time: ${12 * 60 * 60 * 1000}`; eslint-5.16.0~dfsg/docs/rules/prefer-template.md-39- ############################################## eslint-5.16.0~dfsg/docs/rules/quotes.md-79-var single = 'single'; eslint-5.16.0~dfsg/docs/rules/quotes.md:80:var backtick = `back${x}tick`; // backticks are allowed due to substitution eslint-5.16.0~dfsg/docs/rules/quotes.md-81-``` ############################################## eslint-5.16.0~dfsg/docs/rules/sort-keys.md-52-let obj = {a: 1, ["c" + "d"]: 3, b: 2}; eslint-5.16.0~dfsg/docs/rules/sort-keys.md:53:let obj = {a: 1, [`${c}`]: 3, b: 2}; eslint-5.16.0~dfsg/docs/rules/sort-keys.md-54-let obj = {a: 1, [tag`c`]: 3, b: 2}; ############################################## eslint-5.16.0~dfsg/docs/rules/template-curly-spacing.md-2- eslint-5.16.0~dfsg/docs/rules/template-curly-spacing.md:3:We can embed expressions in template strings with using a pair of `${` and `}`. eslint-5.16.0~dfsg/docs/rules/template-curly-spacing.md-4- ############################################## eslint-5.16.0~dfsg/docs/rules/template-curly-spacing.md-7-```js eslint-5.16.0~dfsg/docs/rules/template-curly-spacing.md:8:let hello = `hello, ${people.name}!`; eslint-5.16.0~dfsg/docs/rules/template-curly-spacing.md-9-``` ############################################## eslint-5.16.0~dfsg/docs/rules/template-curly-spacing.md-36- eslint-5.16.0~dfsg/docs/rules/template-curly-spacing.md:37:`hello, ${ people.name}!`; eslint-5.16.0~dfsg/docs/rules/template-curly-spacing.md:38:`hello, ${people.name }!`; eslint-5.16.0~dfsg/docs/rules/template-curly-spacing.md-39- eslint-5.16.0~dfsg/docs/rules/template-curly-spacing.md:40:`hello, ${ people.name }!`; eslint-5.16.0~dfsg/docs/rules/template-curly-spacing.md-41-``` ############################################## eslint-5.16.0~dfsg/docs/rules/template-curly-spacing.md-47- eslint-5.16.0~dfsg/docs/rules/template-curly-spacing.md:48:`hello, ${people.name}!`; eslint-5.16.0~dfsg/docs/rules/template-curly-spacing.md-49- ############################################## eslint-5.16.0~dfsg/docs/rules/template-curly-spacing.md-61- eslint-5.16.0~dfsg/docs/rules/template-curly-spacing.md:62:`hello, ${ people.name}!`; eslint-5.16.0~dfsg/docs/rules/template-curly-spacing.md:63:`hello, ${people.name }!`; eslint-5.16.0~dfsg/docs/rules/template-curly-spacing.md-64- eslint-5.16.0~dfsg/docs/rules/template-curly-spacing.md:65:`hello, ${people.name}!`; eslint-5.16.0~dfsg/docs/rules/template-curly-spacing.md-66-``` ############################################## eslint-5.16.0~dfsg/docs/rules/template-curly-spacing.md-72- eslint-5.16.0~dfsg/docs/rules/template-curly-spacing.md:73:`hello, ${ people.name }!`; eslint-5.16.0~dfsg/docs/rules/template-curly-spacing.md-74- ############################################## eslint-5.16.0~dfsg/lib/cli-engine.js-101- if (!validFixTypes.has(fixType)) { eslint-5.16.0~dfsg/lib/cli-engine.js:102: throw new Error(`Invalid fix type "${fixType}" found.`); eslint-5.16.0~dfsg/lib/cli-engine.js-103- } ############################################## eslint-5.16.0~dfsg/lib/cli-engine.js-179- eslint-5.16.0~dfsg/lib/cli-engine.js:180: debug(`Linting ${effectiveFilename}`); eslint-5.16.0~dfsg/lib/cli-engine.js-181- const config = configHelper.getConfig(filePath); ############################################## eslint-5.16.0~dfsg/lib/cli-engine.js-356- function getCacheFileForDirectory() { eslint-5.16.0~dfsg/lib/cli-engine.js:357: return path.join(resolvedCacheFile, `.cache_${hash(cwd)}`); eslint-5.16.0~dfsg/lib/cli-engine.js-358- } ############################################## eslint-5.16.0~dfsg/lib/cli-engine.js-429- if (!fs.statSync(options.ignorePath).isFile()) { eslint-5.16.0~dfsg/lib/cli-engine.js:430: throw new Error(`${options.ignorePath} is not a file`); eslint-5.16.0~dfsg/lib/cli-engine.js-431- } eslint-5.16.0~dfsg/lib/cli-engine.js-432- } catch (e) { eslint-5.16.0~dfsg/lib/cli-engine.js:433: e.message = `Error: Could not load file ${options.ignorePath}\nError: ${e.message}`; eslint-5.16.0~dfsg/lib/cli-engine.js-434- throw e; ############################################## eslint-5.16.0~dfsg/lib/cli-engine.js-449- this.options.rulePaths.forEach(rulesdir => { eslint-5.16.0~dfsg/lib/cli-engine.js:450: debug(`Loading rules from ${rulesdir}`); eslint-5.16.0~dfsg/lib/cli-engine.js-451- this.linter.defineRules(loadRules(rulesdir, cwd)); ############################################## eslint-5.16.0~dfsg/lib/cli-engine.js-481- eslint-5.16.0~dfsg/lib/cli-engine.js:482: debug(`Using fix types ${this.options.fixTypes}`); eslint-5.16.0~dfsg/lib/cli-engine.js-483- ############################################## eslint-5.16.0~dfsg/lib/cli-engine.js-599- if (resultHadMessages && options.fix) { eslint-5.16.0~dfsg/lib/cli-engine.js:600: debug(`Reprocessing cached file to allow autofix: ${fileInfo.filename}`); eslint-5.16.0~dfsg/lib/cli-engine.js-601- } else { eslint-5.16.0~dfsg/lib/cli-engine.js:602: debug(`Skipping file since it hasn't changed: ${fileInfo.filename}`); eslint-5.16.0~dfsg/lib/cli-engine.js-603- ############################################## eslint-5.16.0~dfsg/lib/cli-engine.js-613- eslint-5.16.0~dfsg/lib/cli-engine.js:614: debug(`Processing ${fileInfo.filename}`); eslint-5.16.0~dfsg/lib/cli-engine.js-615- ############################################## eslint-5.16.0~dfsg/lib/cli-engine.js-644- eslint-5.16.0~dfsg/lib/cli-engine.js:645: debug(`Linting complete in: ${Date.now() - startTime}ms`); eslint-5.16.0~dfsg/lib/cli-engine.js-646- ############################################## eslint-5.16.0~dfsg/lib/cli-engine.js-773- eslint-5.16.0~dfsg/lib/cli-engine.js:774: formatterPath = resolver.resolve(npmFormat, `${cwd}/node_modules`); eslint-5.16.0~dfsg/lib/cli-engine.js-775- } catch (e) { eslint-5.16.0~dfsg/lib/cli-engine.js:776: formatterPath = `./formatters/${normalizedFormatName}`; eslint-5.16.0~dfsg/lib/cli-engine.js-777- } ############################################## eslint-5.16.0~dfsg/lib/cli-engine.js-782- } catch (ex) { eslint-5.16.0~dfsg/lib/cli-engine.js:783: ex.message = `There was a problem loading formatter: ${formatterPath}\nError: ${ex.message}`; eslint-5.16.0~dfsg/lib/cli-engine.js-784- throw ex; ############################################## eslint-5.16.0~dfsg/lib/cli.js-162- eslint-5.16.0~dfsg/lib/cli.js:163: log.info(`v${require("../package.json").version}`); eslint-5.16.0~dfsg/lib/cli.js-164- ############################################## eslint-5.16.0~dfsg/lib/cli.js-186- eslint-5.16.0~dfsg/lib/cli.js:187: debug(`Running on ${useStdin ? "text" : "files"}`); eslint-5.16.0~dfsg/lib/cli.js-188- ############################################## eslint-5.16.0~dfsg/lib/code-path-analysis/code-path-analyzer.js-161- if (currentSegment !== headSegment && currentSegment) { eslint-5.16.0~dfsg/lib/code-path-analysis/code-path-analyzer.js:162: debug.dump(`onCodePathSegmentEnd ${currentSegment.id}`); eslint-5.16.0~dfsg/lib/code-path-analysis/code-path-analyzer.js-163- ############################################## eslint-5.16.0~dfsg/lib/code-path-analysis/code-path-analyzer.js-182- if (currentSegment !== headSegment && headSegment) { eslint-5.16.0~dfsg/lib/code-path-analysis/code-path-analyzer.js:183: debug.dump(`onCodePathSegmentStart ${headSegment.id}`); eslint-5.16.0~dfsg/lib/code-path-analysis/code-path-analyzer.js-184- ############################################## eslint-5.16.0~dfsg/lib/code-path-analysis/code-path-analyzer.js-212- eslint-5.16.0~dfsg/lib/code-path-analysis/code-path-analyzer.js:213: debug.dump(`onCodePathSegmentEnd ${currentSegment.id}`); eslint-5.16.0~dfsg/lib/code-path-analysis/code-path-analyzer.js-214- if (currentSegment.reachable) { ############################################## eslint-5.16.0~dfsg/lib/code-path-analysis/code-path-analyzer.js-372- // Emits onCodePathStart events. eslint-5.16.0~dfsg/lib/code-path-analysis/code-path-analyzer.js:373: debug.dump(`onCodePathStart ${codePath.id}`); eslint-5.16.0~dfsg/lib/code-path-analysis/code-path-analyzer.js-374- analyzer.emitter.emit("onCodePathStart", codePath, node); ############################################## eslint-5.16.0~dfsg/lib/code-path-analysis/code-path-analyzer.js-571- // Emits onCodePathEnd event of this code path. eslint-5.16.0~dfsg/lib/code-path-analysis/code-path-analyzer.js:572: debug.dump(`onCodePathEnd ${codePath.id}`); eslint-5.16.0~dfsg/lib/code-path-analysis/code-path-analyzer.js-573- analyzer.emitter.emit("onCodePathEnd", codePath, node); ############################################## eslint-5.16.0~dfsg/lib/code-path-analysis/code-path-analyzer.js-671- if (fromSegment.reachable && toSegment.reachable) { eslint-5.16.0~dfsg/lib/code-path-analysis/code-path-analyzer.js:672: debug.dump(`onCodePathSegmentLoop ${fromSegment.id} -> ${toSegment.id}`); eslint-5.16.0~dfsg/lib/code-path-analysis/code-path-analyzer.js-673- this.emitter.emit( ############################################## eslint-5.16.0~dfsg/lib/code-path-analysis/code-path-state.js-975- default: eslint-5.16.0~dfsg/lib/code-path-analysis/code-path-state.js:976: throw new Error(`unknown type: "${type}"`); eslint-5.16.0~dfsg/lib/code-path-analysis/code-path-state.js-977- } ############################################## eslint-5.16.0~dfsg/lib/code-path-analysis/code-path.js-53- "internal", eslint-5.16.0~dfsg/lib/code-path-analysis/code-path.js:54: { value: new CodePathState(new IdGenerator(`${id}_`), onLooped) } eslint-5.16.0~dfsg/lib/code-path-analysis/code-path.js-55- ); ############################################## eslint-5.16.0~dfsg/lib/code-path-analysis/debug-helpers.js-67- debug([ eslint-5.16.0~dfsg/lib/code-path-analysis/debug-helpers.js:68: `${state.currentSegments.map(getId).join(",")})`, eslint-5.16.0~dfsg/lib/code-path-analysis/debug-helpers.js:69: `${node.type}${leaving ? ":exit" : ""}` eslint-5.16.0~dfsg/lib/code-path-analysis/debug-helpers.js-70- ].join(" ")); ############################################## eslint-5.16.0~dfsg/lib/code-path-analysis/debug-helpers.js-101- eslint-5.16.0~dfsg/lib/code-path-analysis/debug-helpers.js:102: text += `${id}[`; eslint-5.16.0~dfsg/lib/code-path-analysis/debug-helpers.js-103- ############################################## eslint-5.16.0~dfsg/lib/code-path-analysis/debug-helpers.js-113- switch (node.type) { eslint-5.16.0~dfsg/lib/code-path-analysis/debug-helpers.js:114: case "Identifier": return `${node.type} (${node.name})`; eslint-5.16.0~dfsg/lib/code-path-analysis/debug-helpers.js:115: case "Literal": return `${node.type} (${node.value})`; eslint-5.16.0~dfsg/lib/code-path-analysis/debug-helpers.js-116- default: return node.type; ############################################## eslint-5.16.0~dfsg/lib/code-path-analysis/debug-helpers.js-120- switch (node.type) { eslint-5.16.0~dfsg/lib/code-path-analysis/debug-helpers.js:121: case "Identifier": return `${node.type}:exit (${node.name})`; eslint-5.16.0~dfsg/lib/code-path-analysis/debug-helpers.js:122: case "Literal": return `${node.type}:exit (${node.value})`; eslint-5.16.0~dfsg/lib/code-path-analysis/debug-helpers.js:123: default: return `${node.type}:exit`; eslint-5.16.0~dfsg/lib/code-path-analysis/debug-helpers.js-124- } ############################################## eslint-5.16.0~dfsg/lib/code-path-analysis/debug-helpers.js-133- eslint-5.16.0~dfsg/lib/code-path-analysis/debug-helpers.js:134: text += `${arrows}\n`; eslint-5.16.0~dfsg/lib/code-path-analysis/debug-helpers.js-135- text += "}"; ############################################## eslint-5.16.0~dfsg/lib/code-path-analysis/debug-helpers.js-150- let lastId = codePath.initialSegment.id; eslint-5.16.0~dfsg/lib/code-path-analysis/debug-helpers.js:151: let text = `initial->${codePath.initialSegment.id}`; eslint-5.16.0~dfsg/lib/code-path-analysis/debug-helpers.js-152- ############################################## eslint-5.16.0~dfsg/lib/code-path-analysis/debug-helpers.js-169- if (lastId === segment.id) { eslint-5.16.0~dfsg/lib/code-path-analysis/debug-helpers.js:170: text += `->${nextSegment.id}`; eslint-5.16.0~dfsg/lib/code-path-analysis/debug-helpers.js-171- } else { eslint-5.16.0~dfsg/lib/code-path-analysis/debug-helpers.js:172: text += `;\n${segment.id}->${nextSegment.id}`; eslint-5.16.0~dfsg/lib/code-path-analysis/debug-helpers.js-173- } ############################################## eslint-5.16.0~dfsg/lib/code-path-analysis/debug-helpers.js-183- } else { eslint-5.16.0~dfsg/lib/code-path-analysis/debug-helpers.js:184: text += `;\n${finalSegment.id}->final`; eslint-5.16.0~dfsg/lib/code-path-analysis/debug-helpers.js-185- } ############################################## eslint-5.16.0~dfsg/lib/code-path-analysis/debug-helpers.js-192- } else { eslint-5.16.0~dfsg/lib/code-path-analysis/debug-helpers.js:193: text += `;\n${finalSegment.id}->thrown`; eslint-5.16.0~dfsg/lib/code-path-analysis/debug-helpers.js-194- } ############################################## eslint-5.16.0~dfsg/lib/code-path-analysis/debug-helpers.js-197- eslint-5.16.0~dfsg/lib/code-path-analysis/debug-helpers.js:198: return `${text};`; eslint-5.16.0~dfsg/lib/code-path-analysis/debug-helpers.js-199- } ############################################## eslint-5.16.0~dfsg/lib/code-path-analysis/fork-context.js-186- add(segments) { eslint-5.16.0~dfsg/lib/code-path-analysis/fork-context.js:187: assert(segments.length >= this.count, `${segments.length} >= ${this.count}`); eslint-5.16.0~dfsg/lib/code-path-analysis/fork-context.js-188- ############################################## eslint-5.16.0~dfsg/lib/code-path-analysis/fork-context.js-199- replaceHead(segments) { eslint-5.16.0~dfsg/lib/code-path-analysis/fork-context.js:200: assert(segments.length >= this.count, `${segments.length} >= ${this.count}`); eslint-5.16.0~dfsg/lib/code-path-analysis/fork-context.js-201- ############################################## eslint-5.16.0~dfsg/lib/config.js-141- if (config) { eslint-5.16.0~dfsg/lib/config.js:142: debug(`Using command line config ${config}`); eslint-5.16.0~dfsg/lib/config.js-143- const isNamedConfig = eslint-5.16.0~dfsg/lib/config.js-144- isResolvable(config) || eslint-5.16.0~dfsg/lib/config.js:145: isResolvable(`eslint-config-${config}`) || eslint-5.16.0~dfsg/lib/config.js-146- config.charAt(0) === "@"; ############################################## eslint-5.16.0~dfsg/lib/config.js-183- getConfigHierarchy(directory) { eslint-5.16.0~dfsg/lib/config.js:184: debug(`Constructing config file hierarchy for ${directory}`); eslint-5.16.0~dfsg/lib/config.js-185- ############################################## eslint-5.16.0~dfsg/lib/config.js-238- eslint-5.16.0~dfsg/lib/config.js:239: debug(`Loading ${localConfigFile}`); eslint-5.16.0~dfsg/lib/config.js-240- const localConfig = ConfigFile.load(localConfigFile, this); ############################################## eslint-5.16.0~dfsg/lib/config.js-246- eslint-5.16.0~dfsg/lib/config.js:247: debug(`Using ${localConfigFile}`); eslint-5.16.0~dfsg/lib/config.js-248- configs.unshift(localConfig); ############################################## eslint-5.16.0~dfsg/lib/config/autoconfig.js-284- filenames.forEach(filename => { eslint-5.16.0~dfsg/lib/config/autoconfig.js:285: debug(`Linting file: ${filename}`); eslint-5.16.0~dfsg/lib/config/autoconfig.js-286- ############################################## eslint-5.16.0~dfsg/lib/config/config-initializer.js-55- eslint-5.16.0~dfsg/lib/config/config-initializer.js:56: ConfigFile.write(config, `./.eslintrc${extname}`); eslint-5.16.0~dfsg/lib/config/config-initializer.js:57: log.info(`Successfully created .eslintrc${extname} file in ${process.cwd()}`); eslint-5.16.0~dfsg/lib/config/config-initializer.js-58- ############################################## eslint-5.16.0~dfsg/lib/config/config-initializer.js-76- if (!result) { eslint-5.16.0~dfsg/lib/config/config-initializer.js:77: log.info(`Checking peerDependencies of ${moduleName}`); eslint-5.16.0~dfsg/lib/config/config-initializer.js-78- ############################################## eslint-5.16.0~dfsg/lib/config/config-initializer.js-98- for (const plugin of config.plugins) { eslint-5.16.0~dfsg/lib/config/config-initializer.js:99: modules[`eslint-plugin-${plugin}`] = "latest"; eslint-5.16.0~dfsg/lib/config/config-initializer.js-100- } ############################################## eslint-5.16.0~dfsg/lib/config/config-initializer.js-102- if (config.extends && config.extends.indexOf("eslint:") === -1) { eslint-5.16.0~dfsg/lib/config/config-initializer.js:103: const moduleName = `eslint-config-${config.extends}`; eslint-5.16.0~dfsg/lib/config/config-initializer.js-104- ############################################## eslint-5.16.0~dfsg/lib/config/config-initializer.js-107- modules, eslint-5.16.0~dfsg/lib/config/config-initializer.js:108: getPeerDependencies(`${moduleName}@latest`) eslint-5.16.0~dfsg/lib/config/config-initializer.js-109- ); ############################################## eslint-5.16.0~dfsg/lib/config/config-initializer.js-124- eslint-5.16.0~dfsg/lib/config/config-initializer.js:125: return Object.keys(modules).map(name => `${name}@${modules[name]}`); eslint-5.16.0~dfsg/lib/config/config-initializer.js-126-} ############################################## eslint-5.16.0~dfsg/lib/config/config-initializer.js-179- }); eslint-5.16.0~dfsg/lib/config/config-initializer.js:180: debug(`\nRegistry: ${util.inspect(registry.rules, { depth: null })}`); eslint-5.16.0~dfsg/lib/config/config-initializer.js-181- ############################################## eslint-5.16.0~dfsg/lib/config/config-initializer.js-227- const resultMessage = [ eslint-5.16.0~dfsg/lib/config/config-initializer.js:228: `\nEnabled ${enabledRules} out of ${totalRules}`, eslint-5.16.0~dfsg/lib/config/config-initializer.js:229: `rules based on ${fileQty}`, eslint-5.16.0~dfsg/lib/config/config-initializer.js:230: `file${(fileQty === 1) ? "." : "s."}` eslint-5.16.0~dfsg/lib/config/config-initializer.js-231- ].join(" "); ############################################## eslint-5.16.0~dfsg/lib/config/config-initializer.js-373- const configName = getStyleGuideName(answers); eslint-5.16.0~dfsg/lib/config/config-initializer.js:374: const moduleName = `eslint-config-${configName}@latest`; eslint-5.16.0~dfsg/lib/config/config-initializer.js-375- const peerDependencies = getPeerDependencies(moduleName) || {}; ############################################## eslint-5.16.0~dfsg/lib/config/config-initializer.js-399-function installModules(modules) { eslint-5.16.0~dfsg/lib/config/config-initializer.js:400: log.info(`Installing ${modules.join(", ")}`); eslint-5.16.0~dfsg/lib/config/config-initializer.js-401- npmUtils.installSyncSaveDev(modules); ############################################## eslint-5.16.0~dfsg/lib/config/config-initializer.js-544- eslint-5.16.0~dfsg/lib/config/config-initializer.js:545: return `The style guide "${answers.styleguide}" requires eslint@${answers.requiredESLintVersionRange}. You are currently using eslint@${answers.localESLintVersion}.\n Do you want to ${verb}?`; eslint-5.16.0~dfsg/lib/config/config-initializer.js-546- }, ############################################## eslint-5.16.0~dfsg/lib/config/config-initializer.js-569- if (earlyAnswers.installESLint === false && !semver.satisfies(earlyAnswers.localESLintVersion, earlyAnswers.requiredESLintVersionRange)) { eslint-5.16.0~dfsg/lib/config/config-initializer.js:570: log.info(`Note: it might not work since ESLint's version is mismatched with the ${earlyAnswers.styleguide} config.`); eslint-5.16.0~dfsg/lib/config/config-initializer.js-571- } ############################################## eslint-5.16.0~dfsg/lib/config/config-ops.js-65- if (environment) { eslint-5.16.0~dfsg/lib/config/config-ops.js:66: debug(`Creating config for environment ${name}`); eslint-5.16.0~dfsg/lib/config/config-ops.js-67- if (environment.globals) { ############################################## eslint-5.16.0~dfsg/lib/config/config-ops.js-364- if (path.isAbsolute(pattern) || pattern.includes("..")) { eslint-5.16.0~dfsg/lib/config/config-ops.js:365: throw new Error(`Invalid override pattern (expected relative path not containing '..'): ${pattern}`); eslint-5.16.0~dfsg/lib/config/config-ops.js-366- } ############################################## eslint-5.16.0~dfsg/lib/config/config-validator.js-78- eslint-5.16.0~dfsg/lib/config/config-validator.js:79: throw new Error(`\tSeverity should be one of the following: 0 = off, 1 = warn, 2 = error (you passed '${util.inspect(severity).replace(/'/gu, "\"").replace(/\n/gu, "")}').\n`); eslint-5.16.0~dfsg/lib/config/config-validator.js-80- ############################################## eslint-5.16.0~dfsg/lib/config/config-validator.js-103- throw new Error(validateRule.errors.map( eslint-5.16.0~dfsg/lib/config/config-validator.js:104: error => `\tValue ${JSON.stringify(error.data)} ${error.message}.\n` eslint-5.16.0~dfsg/lib/config/config-validator.js-105- ).join("")); ############################################## eslint-5.16.0~dfsg/lib/config/config-validator.js-129- } catch (err) { eslint-5.16.0~dfsg/lib/config/config-validator.js:130: const enhancedMessage = `Configuration for rule "${ruleId}" is invalid:\n${err.message}`; eslint-5.16.0~dfsg/lib/config/config-validator.js-131- eslint-5.16.0~dfsg/lib/config/config-validator.js-132- if (typeof source === "string") { eslint-5.16.0~dfsg/lib/config/config-validator.js:133: throw new Error(`${source}:\n\t${enhancedMessage}`); eslint-5.16.0~dfsg/lib/config/config-validator.js-134- } else { ############################################## eslint-5.16.0~dfsg/lib/config/config-validator.js-155- if (!envContext.get(env)) { eslint-5.16.0~dfsg/lib/config/config-validator.js:156: const message = `${source}:\n\tEnvironment key "${env}" is unknown\n`; eslint-5.16.0~dfsg/lib/config/config-validator.js-157- ############################################## eslint-5.16.0~dfsg/lib/config/config-validator.js-187- if (error.keyword === "additionalProperties") { eslint-5.16.0~dfsg/lib/config/config-validator.js:188: const formattedPropertyPath = error.dataPath.length ? `${error.dataPath.slice(1)}.${error.params.additionalProperty}` : error.params.additionalProperty; eslint-5.16.0~dfsg/lib/config/config-validator.js-189- eslint-5.16.0~dfsg/lib/config/config-validator.js:190: return `Unexpected top-level property "${formattedPropertyPath}"`; eslint-5.16.0~dfsg/lib/config/config-validator.js-191- } ############################################## eslint-5.16.0~dfsg/lib/config/config-validator.js-196- eslint-5.16.0~dfsg/lib/config/config-validator.js:197: return `Property "${formattedField}" is the wrong type (expected ${formattedExpectedType} but got \`${formattedValue}\`)`; eslint-5.16.0~dfsg/lib/config/config-validator.js-198- } ############################################## eslint-5.16.0~dfsg/lib/config/config-validator.js-201- eslint-5.16.0~dfsg/lib/config/config-validator.js:202: return `"${field}" ${error.message}. Value: ${JSON.stringify(error.data)}`; eslint-5.16.0~dfsg/lib/config/config-validator.js:203: }).map(message => `\t- ${message}.\n`).join(""); eslint-5.16.0~dfsg/lib/config/config-validator.js-204-} ############################################## eslint-5.16.0~dfsg/lib/config/config-validator.js-218- process.emitWarning( eslint-5.16.0~dfsg/lib/config/config-validator.js:219: `${message} (found in "${rel}")`, eslint-5.16.0~dfsg/lib/config/config-validator.js-220- "DeprecationWarning", ############################################## eslint-5.16.0~dfsg/lib/config/config-validator.js-234- if (!validateSchema(config)) { eslint-5.16.0~dfsg/lib/config/config-validator.js:235: throw new Error(`ESLint configuration in ${source} is invalid:\n${formatErrors(validateSchema.errors)}`); eslint-5.16.0~dfsg/lib/config/config-validator.js-236- } ############################################## eslint-5.16.0~dfsg/lib/config/environments.js-77- Object.keys(plugin.environments).forEach(envName => { eslint-5.16.0~dfsg/lib/config/environments.js:78: this.define(`${pluginName}/${envName}`, plugin.environments[envName]); eslint-5.16.0~dfsg/lib/config/environments.js-79- }); ############################################## eslint-5.16.0~dfsg/lib/config/plugins.js-50- Object.keys(plugin.rules).forEach(ruleId => { eslint-5.16.0~dfsg/lib/config/plugins.js:51: const qualifiedRuleId = `${shortName}/${ruleId}`, eslint-5.16.0~dfsg/lib/config/plugins.js-52- rule = plugin.rules[ruleId]; ############################################## eslint-5.16.0~dfsg/lib/config/plugins.js-87- if (pluginName.match(/\s+/u)) { eslint-5.16.0~dfsg/lib/config/plugins.js:88: const whitespaceError = new Error(`Whitespace found in plugin name '${pluginName}'`); eslint-5.16.0~dfsg/lib/config/plugins.js-89- ############################################## eslint-5.16.0~dfsg/lib/config/plugins.js-107- // If the plugin can't be resolved, display the missing plugin error (usually a config or install error) eslint-5.16.0~dfsg/lib/config/plugins.js:108: debug(`Failed to load plugin ${longName}.`); eslint-5.16.0~dfsg/lib/config/plugins.js:109: missingPluginErr.message = `Failed to load plugin ${pluginName}: ${missingPluginErr.message}`; eslint-5.16.0~dfsg/lib/config/plugins.js-110- missingPluginErr.messageTemplate = "plugin-missing"; ############################################## eslint-5.16.0~dfsg/lib/config/plugins.js-128- try { eslint-5.16.0~dfsg/lib/config/plugins.js:129: version = require(`${longName}/package.json`).version; eslint-5.16.0~dfsg/lib/config/plugins.js-130- } catch (e) { ############################################## eslint-5.16.0~dfsg/lib/config/plugins.js-135- const loadedPluginAndVersion = version eslint-5.16.0~dfsg/lib/config/plugins.js:136: ? `${longName}@${version}` eslint-5.16.0~dfsg/lib/config/plugins.js:137: : `${longName}, version unknown`; eslint-5.16.0~dfsg/lib/config/plugins.js-138- eslint-5.16.0~dfsg/lib/config/plugins.js:139: debug(`Loaded plugin ${pluginName} (${loadedPluginAndVersion}) (from ${resolvedPath})`); eslint-5.16.0~dfsg/lib/config/plugins.js-140- } ############################################## eslint-5.16.0~dfsg/lib/config/plugins.js-158- eslint-5.16.0~dfsg/lib/config/plugins.js:159: debug(`${pluginNotArrayMessage}: ${JSON.stringify(pluginNames)}`); eslint-5.16.0~dfsg/lib/config/plugins.js-160- ############################################## eslint-5.16.0~dfsg/lib/config/config-file.js-85-function loadYAMLConfigFile(filePath) { eslint-5.16.0~dfsg/lib/config/config-file.js:86: debug(`Loading YAML config file: ${filePath}`); eslint-5.16.0~dfsg/lib/config/config-file.js-87- ############################################## eslint-5.16.0~dfsg/lib/config/config-file.js-95- } catch (e) { eslint-5.16.0~dfsg/lib/config/config-file.js:96: debug(`Error reading YAML file: ${filePath}`); eslint-5.16.0~dfsg/lib/config/config-file.js:97: e.message = `Cannot read config file: ${filePath}\nError: ${e.message}`; eslint-5.16.0~dfsg/lib/config/config-file.js-98- throw e; ############################################## eslint-5.16.0~dfsg/lib/config/config-file.js-109-function loadJSONConfigFile(filePath) { eslint-5.16.0~dfsg/lib/config/config-file.js:110: debug(`Loading JSON config file: ${filePath}`); eslint-5.16.0~dfsg/lib/config/config-file.js-111- ############################################## eslint-5.16.0~dfsg/lib/config/config-file.js-114- } catch (e) { eslint-5.16.0~dfsg/lib/config/config-file.js:115: debug(`Error reading JSON file: ${filePath}`); eslint-5.16.0~dfsg/lib/config/config-file.js:116: e.message = `Cannot read config file: ${filePath}\nError: ${e.message}`; eslint-5.16.0~dfsg/lib/config/config-file.js-117- e.messageTemplate = "failed-to-read-json"; ############################################## eslint-5.16.0~dfsg/lib/config/config-file.js-133-function loadLegacyConfigFile(filePath) { eslint-5.16.0~dfsg/lib/config/config-file.js:134: debug(`Loading config file: ${filePath}`); eslint-5.16.0~dfsg/lib/config/config-file.js-135- ############################################## eslint-5.16.0~dfsg/lib/config/config-file.js-141- } catch (e) { eslint-5.16.0~dfsg/lib/config/config-file.js:142: debug(`Error reading YAML file: ${filePath}`); eslint-5.16.0~dfsg/lib/config/config-file.js:143: e.message = `Cannot read config file: ${filePath}\nError: ${e.message}`; eslint-5.16.0~dfsg/lib/config/config-file.js-144- throw e; ############################################## eslint-5.16.0~dfsg/lib/config/config-file.js-155-function loadJSConfigFile(filePath) { eslint-5.16.0~dfsg/lib/config/config-file.js:156: debug(`Loading JS config file: ${filePath}`); eslint-5.16.0~dfsg/lib/config/config-file.js-157- try { ############################################## eslint-5.16.0~dfsg/lib/config/config-file.js-175- } catch (e) { eslint-5.16.0~dfsg/lib/config/config-file.js:176: debug(`Error reading JavaScript file: ${filePath}`); eslint-5.16.0~dfsg/lib/config/config-file.js:177: e.message = `Cannot read config file: ${filePath}\nError: ${e.message}`; eslint-5.16.0~dfsg/lib/config/config-file.js-178- throw e; ############################################## eslint-5.16.0~dfsg/lib/config/config-file.js-189-function loadPackageJSONConfigFile(filePath) { eslint-5.16.0~dfsg/lib/config/config-file.js:190: debug(`Loading package.json config file: ${filePath}`); eslint-5.16.0~dfsg/lib/config/config-file.js-191- try { ############################################## eslint-5.16.0~dfsg/lib/config/config-file.js-193- } catch (e) { eslint-5.16.0~dfsg/lib/config/config-file.js:194: debug(`Error reading package.json file: ${filePath}`); eslint-5.16.0~dfsg/lib/config/config-file.js:195: e.message = `Cannot read config file: ${filePath}\nError: ${e.message}`; eslint-5.16.0~dfsg/lib/config/config-file.js-196- throw e; ############################################## eslint-5.16.0~dfsg/lib/config/config-file.js-206-function configMissingError(configName) { eslint-5.16.0~dfsg/lib/config/config-file.js:207: const error = new Error(`Failed to load config "${configName}" to extend from.`); eslint-5.16.0~dfsg/lib/config/config-file.js-208- ############################################## eslint-5.16.0~dfsg/lib/config/config-file.js-268-function writeJSONConfigFile(config, filePath) { eslint-5.16.0~dfsg/lib/config/config-file.js:269: debug(`Writing JSON config file: ${filePath}`); eslint-5.16.0~dfsg/lib/config/config-file.js-270- ############################################## eslint-5.16.0~dfsg/lib/config/config-file.js-283-function writeYAMLConfigFile(config, filePath) { eslint-5.16.0~dfsg/lib/config/config-file.js:284: debug(`Writing YAML config file: ${filePath}`); eslint-5.16.0~dfsg/lib/config/config-file.js-285- ############################################## eslint-5.16.0~dfsg/lib/config/config-file.js-302-function writeJSConfigFile(config, filePath) { eslint-5.16.0~dfsg/lib/config/config-file.js:303: debug(`Writing JS config file: ${filePath}`); eslint-5.16.0~dfsg/lib/config/config-file.js-304- eslint-5.16.0~dfsg/lib/config/config-file.js-305- let contentToWrite; eslint-5.16.0~dfsg/lib/config/config-file.js:306: const stringifiedContent = `module.exports = ${stringify(config, { cmp: sortByKey, space: 4 })};`; eslint-5.16.0~dfsg/lib/config/config-file.js-307- ############################################## eslint-5.16.0~dfsg/lib/config/config-file.js-324- e.message += "A config file was still generated, but the config file itself may not follow your linting rules."; eslint-5.16.0~dfsg/lib/config/config-file.js:325: e.message += `\nError: ${errorMessage}`; eslint-5.16.0~dfsg/lib/config/config-file.js-326- throw e; ############################################## eslint-5.16.0~dfsg/lib/config/config-file.js-464- } eslint-5.16.0~dfsg/lib/config/config-file.js:465: debug(`Loading ${extensionPath}`); eslint-5.16.0~dfsg/lib/config/config-file.js-466- ############################################## eslint-5.16.0~dfsg/lib/config/config-file.js-476- */ eslint-5.16.0~dfsg/lib/config/config-file.js:477: e.message += `\nReferenced from: ${filePath}`; eslint-5.16.0~dfsg/lib/config/config-file.js-478- throw e; ############################################## eslint-5.16.0~dfsg/lib/config/config-file.js-509- normalizedPackageName = naming.normalizePackageName(pluginName, "eslint-plugin"); eslint-5.16.0~dfsg/lib/config/config-file.js:510: debug(`Attempting to resolve ${normalizedPackageName}`); eslint-5.16.0~dfsg/lib/config/config-file.js-511- ############################################## eslint-5.16.0~dfsg/lib/config/config-file.js-518- normalizedPackageName = naming.normalizePackageName(filePath, "eslint-config"); eslint-5.16.0~dfsg/lib/config/config-file.js:519: debug(`Attempting to resolve ${normalizedPackageName}`); eslint-5.16.0~dfsg/lib/config/config-file.js-520- ############################################## eslint-5.16.0~dfsg/lib/formatters/checkstyle.js-40- eslint-5.16.0~dfsg/lib/formatters/checkstyle.js:41: output += `<file name="${xmlEscape(result.filePath)}">`; eslint-5.16.0~dfsg/lib/formatters/checkstyle.js-42- ############################################## eslint-5.16.0~dfsg/lib/formatters/checkstyle.js-44- output += [ eslint-5.16.0~dfsg/lib/formatters/checkstyle.js:45: `<error line="${xmlEscape(message.line)}"`, eslint-5.16.0~dfsg/lib/formatters/checkstyle.js:46: `column="${xmlEscape(message.column)}"`, eslint-5.16.0~dfsg/lib/formatters/checkstyle.js:47: `severity="${xmlEscape(getMessageType(message))}"`, eslint-5.16.0~dfsg/lib/formatters/checkstyle.js:48: `message="${xmlEscape(message.message)}${message.ruleId ? ` (${message.ruleId})` : ""}"`, eslint-5.16.0~dfsg/lib/formatters/checkstyle.js:49: `source="${message.ruleId ? xmlEscape(`eslint.rules.${message.ruleId}`) : ""}" />` eslint-5.16.0~dfsg/lib/formatters/checkstyle.js-50- ].join(" "); ############################################## eslint-5.16.0~dfsg/lib/formatters/codeframe.js-21-function pluralize(word, count) { eslint-5.16.0~dfsg/lib/formatters/codeframe.js:22: return (count === 1 ? word : `${word}s`); eslint-5.16.0~dfsg/lib/formatters/codeframe.js-23-} ############################################## eslint-5.16.0~dfsg/lib/formatters/codeframe.js-35- if (line && column) { eslint-5.16.0~dfsg/lib/formatters/codeframe.js:36: relPath += `:${line}:${column}`; eslint-5.16.0~dfsg/lib/formatters/codeframe.js-37- } ############################################## eslint-5.16.0~dfsg/lib/formatters/codeframe.js-49- const type = (message.fatal || message.severity === 2) ? chalk.red("error") : chalk.yellow("warning"); eslint-5.16.0~dfsg/lib/formatters/codeframe.js:50: const msg = `${chalk.bold(message.message.replace(/([^ ])\.$/u, "$1"))}`; eslint-5.16.0~dfsg/lib/formatters/codeframe.js:51: const ruleId = message.fatal ? "" : chalk.dim(`(${message.ruleId})`); eslint-5.16.0~dfsg/lib/formatters/codeframe.js-52- const filePath = formatFilePath(parentResult.filePath, message.line, message.column); ############################################## eslint-5.16.0~dfsg/lib/formatters/codeframe.js-55- const firstLine = [ eslint-5.16.0~dfsg/lib/formatters/codeframe.js:56: `${type}:`, eslint-5.16.0~dfsg/lib/formatters/codeframe.js:57: `${msg}`, eslint-5.16.0~dfsg/lib/formatters/codeframe.js:58: ruleId ? `${ruleId}` : "", eslint-5.16.0~dfsg/lib/formatters/codeframe.js:59: sourceCode ? `at ${filePath}:` : `at ${filePath}` eslint-5.16.0~dfsg/lib/formatters/codeframe.js-60- ].filter(String).join(" "); ############################################## eslint-5.16.0~dfsg/lib/formatters/codeframe.js-86- if (errors > 0) { eslint-5.16.0~dfsg/lib/formatters/codeframe.js:87: summary.push(`${errors} ${pluralize("error", errors)}`); eslint-5.16.0~dfsg/lib/formatters/codeframe.js-88- } ############################################## eslint-5.16.0~dfsg/lib/formatters/codeframe.js-90- if (warnings > 0) { eslint-5.16.0~dfsg/lib/formatters/codeframe.js:91: summary.push(`${warnings} ${pluralize("warning", warnings)}`); eslint-5.16.0~dfsg/lib/formatters/codeframe.js-92- } ############################################## eslint-5.16.0~dfsg/lib/formatters/codeframe.js-94- if (fixableErrors > 0) { eslint-5.16.0~dfsg/lib/formatters/codeframe.js:95: fixablesSummary.push(`${fixableErrors} ${pluralize("error", fixableErrors)}`); eslint-5.16.0~dfsg/lib/formatters/codeframe.js-96- } ############################################## eslint-5.16.0~dfsg/lib/formatters/codeframe.js-98- if (fixableWarnings > 0) { eslint-5.16.0~dfsg/lib/formatters/codeframe.js:99: fixablesSummary.push(`${fixableWarnings} ${pluralize("warning", fixableWarnings)}`); eslint-5.16.0~dfsg/lib/formatters/codeframe.js-100- } eslint-5.16.0~dfsg/lib/formatters/codeframe.js-101- eslint-5.16.0~dfsg/lib/formatters/codeframe.js:102: let output = chalk[summaryColor].bold(`${summary.join(" and ")} found.`); eslint-5.16.0~dfsg/lib/formatters/codeframe.js-103- eslint-5.16.0~dfsg/lib/formatters/codeframe.js-104- if (fixableErrors || fixableWarnings) { eslint-5.16.0~dfsg/lib/formatters/codeframe.js:105: output += chalk[summaryColor].bold(`\n${fixablesSummary.join(" and ")} potentially fixable with the \`--fix\` option.`); eslint-5.16.0~dfsg/lib/formatters/codeframe.js-106- } ############################################## eslint-5.16.0~dfsg/lib/formatters/codeframe.js-123- let output = resultsWithMessages.reduce((resultsOutput, result) => { eslint-5.16.0~dfsg/lib/formatters/codeframe.js:124: const messages = result.messages.map(message => `${formatMessage(message, result)}\n\n`); eslint-5.16.0~dfsg/lib/formatters/codeframe.js-125- ############################################## eslint-5.16.0~dfsg/lib/formatters/compact.js-42- eslint-5.16.0~dfsg/lib/formatters/compact.js:43: output += `${result.filePath}: `; eslint-5.16.0~dfsg/lib/formatters/compact.js:44: output += `line ${message.line || 0}`; eslint-5.16.0~dfsg/lib/formatters/compact.js:45: output += `, col ${message.column || 0}`; eslint-5.16.0~dfsg/lib/formatters/compact.js:46: output += `, ${getMessageType(message)}`; eslint-5.16.0~dfsg/lib/formatters/compact.js:47: output += ` - ${message.message}`; eslint-5.16.0~dfsg/lib/formatters/compact.js:48: output += message.ruleId ? ` (${message.ruleId})` : ""; eslint-5.16.0~dfsg/lib/formatters/compact.js-49- output += "\n"; ############################################## eslint-5.16.0~dfsg/lib/formatters/compact.js-55- if (total > 0) { eslint-5.16.0~dfsg/lib/formatters/compact.js:56: output += `\n${total} problem${total !== 1 ? "s" : ""}`; eslint-5.16.0~dfsg/lib/formatters/compact.js-57- } ############################################## eslint-5.16.0~dfsg/lib/formatters/html.js-25-function pluralize(word, count) { eslint-5.16.0~dfsg/lib/formatters/html.js:26: return (count === 1 ? word : `${word}s`); eslint-5.16.0~dfsg/lib/formatters/html.js-27-} ############################################## eslint-5.16.0~dfsg/lib/formatters/html.js-36- const totalProblems = totalErrors + totalWarnings; eslint-5.16.0~dfsg/lib/formatters/html.js:37: let renderedText = `${totalProblems} ${pluralize("problem", totalProblems)}`; eslint-5.16.0~dfsg/lib/formatters/html.js-38- eslint-5.16.0~dfsg/lib/formatters/html.js-39- if (totalProblems !== 0) { eslint-5.16.0~dfsg/lib/formatters/html.js:40: renderedText += ` (${totalErrors} ${pluralize("error", totalErrors)}, ${totalWarnings} ${pluralize("warning", totalWarnings)})`; eslint-5.16.0~dfsg/lib/formatters/html.js-41- } ############################################## eslint-5.16.0~dfsg/lib/formatters/jslint-xml.js-22- eslint-5.16.0~dfsg/lib/formatters/jslint-xml.js:23: output += `<file name="${result.filePath}">`; eslint-5.16.0~dfsg/lib/formatters/jslint-xml.js-24- ############################################## eslint-5.16.0~dfsg/lib/formatters/jslint-xml.js-26- output += [ eslint-5.16.0~dfsg/lib/formatters/jslint-xml.js:27: `<issue line="${message.line}"`, eslint-5.16.0~dfsg/lib/formatters/jslint-xml.js:28: `char="${message.column}"`, eslint-5.16.0~dfsg/lib/formatters/jslint-xml.js:29: `evidence="${xmlEscape(message.source || "")}"`, eslint-5.16.0~dfsg/lib/formatters/jslint-xml.js:30: `reason="${xmlEscape(message.message || "")}${message.ruleId ? ` (${message.ruleId})` : ""}" />` eslint-5.16.0~dfsg/lib/formatters/jslint-xml.js-31- ].join(" "); ############################################## eslint-5.16.0~dfsg/lib/formatters/junit.js-42- if (messages.length > 0) { eslint-5.16.0~dfsg/lib/formatters/junit.js:43: output += `<testsuite package="org.eslint" time="0" tests="${messages.length}" errors="${messages.length}" name="${result.filePath}">\n`; eslint-5.16.0~dfsg/lib/formatters/junit.js-44- messages.forEach(message => { ############################################## eslint-5.16.0~dfsg/lib/formatters/junit.js-46- eslint-5.16.0~dfsg/lib/formatters/junit.js:47: output += `<testcase time="0" name="org.eslint.${message.ruleId || "unknown"}">`; eslint-5.16.0~dfsg/lib/formatters/junit.js:48: output += `<${type} message="${xmlEscape(message.message || "")}">`; eslint-5.16.0~dfsg/lib/formatters/junit.js-49- output += "<![CDATA["; eslint-5.16.0~dfsg/lib/formatters/junit.js:50: output += `line ${message.line || 0}, col `; eslint-5.16.0~dfsg/lib/formatters/junit.js:51: output += `${message.column || 0}, ${getMessageType(message)}`; eslint-5.16.0~dfsg/lib/formatters/junit.js:52: output += ` - ${xmlEscape(message.message || "")}`; eslint-5.16.0~dfsg/lib/formatters/junit.js:53: output += (message.ruleId ? ` (${message.ruleId})` : ""); eslint-5.16.0~dfsg/lib/formatters/junit.js-54- output += "]]>"; eslint-5.16.0~dfsg/lib/formatters/junit.js:55: output += `</${type}>`; eslint-5.16.0~dfsg/lib/formatters/junit.js-56- output += "</testcase>\n"; ############################################## eslint-5.16.0~dfsg/lib/formatters/junit.js-59- } else { eslint-5.16.0~dfsg/lib/formatters/junit.js:60: output += `<testsuite package="org.eslint" time="0" tests="1" errors="0" name="${result.filePath}">\n`; eslint-5.16.0~dfsg/lib/formatters/junit.js:61: output += `<testcase time="0" name="${result.filePath}" />\n`; eslint-5.16.0~dfsg/lib/formatters/junit.js-62- output += "</testsuite>\n"; ############################################## eslint-5.16.0~dfsg/lib/formatters/stylish.js-21-function pluralize(word, count) { eslint-5.16.0~dfsg/lib/formatters/stylish.js:22: return (count === 1 ? word : `${word}s`); eslint-5.16.0~dfsg/lib/formatters/stylish.js-23-} ############################################## eslint-5.16.0~dfsg/lib/formatters/stylish.js-49- eslint-5.16.0~dfsg/lib/formatters/stylish.js:50: output += `${chalk.underline(result.filePath)}\n`; eslint-5.16.0~dfsg/lib/formatters/stylish.js-51- ############################################## eslint-5.16.0~dfsg/lib/formatters/stylish.js-77- } eslint-5.16.0~dfsg/lib/formatters/stylish.js:78: ).split("\n").map(el => el.replace(/(\d+)\s+(\d+)/u, (m, p1, p2) => chalk.dim(`${p1}:${p2}`))).join("\n")}\n\n`; eslint-5.16.0~dfsg/lib/formatters/stylish.js-79- }); ############################################## eslint-5.16.0~dfsg/lib/formatters/table.js-24-function pluralize(word, count) { eslint-5.16.0~dfsg/lib/formatters/table.js:25: return (count === 1 ? word : `${word}s`); eslint-5.16.0~dfsg/lib/formatters/table.js-26-} ############################################## eslint-5.16.0~dfsg/lib/formatters/table.js-108- eslint-5.16.0~dfsg/lib/formatters/table.js:109: return `\n${result.filePath}\n\n${drawTable(result.messages)}`; eslint-5.16.0~dfsg/lib/formatters/table.js-110- }); ############################################## eslint-5.16.0~dfsg/lib/formatters/table.js-140- [ eslint-5.16.0~dfsg/lib/formatters/table.js:141: chalk.red(pluralize(`${errorCount} Error`, errorCount)) eslint-5.16.0~dfsg/lib/formatters/table.js-142- ], eslint-5.16.0~dfsg/lib/formatters/table.js-143- [ eslint-5.16.0~dfsg/lib/formatters/table.js:144: chalk.yellow(pluralize(`${warningCount} Warning`, warningCount)) eslint-5.16.0~dfsg/lib/formatters/table.js-145- ] ############################################## eslint-5.16.0~dfsg/lib/formatters/tap.js-31- const prefix = " "; eslint-5.16.0~dfsg/lib/formatters/tap.js:32: let output = `${prefix}---\n`; eslint-5.16.0~dfsg/lib/formatters/tap.js-33- eslint-5.16.0~dfsg/lib/formatters/tap.js:34: output += prefix + yaml.safeDump(diagnostic).split("\n").join(`\n${prefix}`); eslint-5.16.0~dfsg/lib/formatters/tap.js-35- output += "...\n"; ############################################## eslint-5.16.0~dfsg/lib/formatters/tap.js-43-module.exports = function(results) { eslint-5.16.0~dfsg/lib/formatters/tap.js:44: let output = `TAP version 13\n1..${results.length}\n`; eslint-5.16.0~dfsg/lib/formatters/tap.js-45- ############################################## eslint-5.16.0~dfsg/lib/formatters/tap.js-84- eslint-5.16.0~dfsg/lib/formatters/tap.js:85: output += `${testResult} ${id + 1} - ${result.filePath}\n`; eslint-5.16.0~dfsg/lib/formatters/tap.js-86- ############################################## eslint-5.16.0~dfsg/lib/formatters/unix.js-41- eslint-5.16.0~dfsg/lib/formatters/unix.js:42: output += `${result.filePath}:`; eslint-5.16.0~dfsg/lib/formatters/unix.js:43: output += `${message.line || 0}:`; eslint-5.16.0~dfsg/lib/formatters/unix.js:44: output += `${message.column || 0}:`; eslint-5.16.0~dfsg/lib/formatters/unix.js:45: output += ` ${message.message} `; eslint-5.16.0~dfsg/lib/formatters/unix.js:46: output += `[${getMessageType(message)}${message.ruleId ? `/${message.ruleId}` : ""}]`; eslint-5.16.0~dfsg/lib/formatters/unix.js-47- output += "\n"; ############################################## eslint-5.16.0~dfsg/lib/formatters/unix.js-53- if (total > 0) { eslint-5.16.0~dfsg/lib/formatters/unix.js:54: output += `\n${total} problem${total !== 1 ? "s" : ""}`; eslint-5.16.0~dfsg/lib/formatters/unix.js-55- } ############################################## eslint-5.16.0~dfsg/lib/formatters/visualstudio.js-44- output += result.filePath; eslint-5.16.0~dfsg/lib/formatters/visualstudio.js:45: output += `(${message.line || 0}`; eslint-5.16.0~dfsg/lib/formatters/visualstudio.js:46: output += message.column ? `,${message.column}` : ""; eslint-5.16.0~dfsg/lib/formatters/visualstudio.js:47: output += `): ${getMessageType(message)}`; eslint-5.16.0~dfsg/lib/formatters/visualstudio.js:48: output += message.ruleId ? ` ${message.ruleId}` : ""; eslint-5.16.0~dfsg/lib/formatters/visualstudio.js:49: output += ` : ${message.message}`; eslint-5.16.0~dfsg/lib/formatters/visualstudio.js-50- output += "\n"; ############################################## eslint-5.16.0~dfsg/lib/formatters/visualstudio.js-58- } else { eslint-5.16.0~dfsg/lib/formatters/visualstudio.js:59: output += `\n${total} problem${total !== 1 ? "s" : ""}`; eslint-5.16.0~dfsg/lib/formatters/visualstudio.js-60- } ############################################## eslint-5.16.0~dfsg/lib/linter.js-183- severity: 2, eslint-5.16.0~dfsg/lib/linter.js:184: message: `${match[1]} comment should not span multiple lines.`, eslint-5.16.0~dfsg/lib/linter.js-185- line: comment.loc.start.line, ############################################## eslint-5.16.0~dfsg/lib/linter.js-435- eslint-5.16.0~dfsg/lib/linter.js:436: const textToParse = stripUnicodeBOM(text).replace(astUtils.SHEBANG_MATCHER, (match, captured) => `//${captured}`); eslint-5.16.0~dfsg/lib/linter.js-437- const parserOptions = Object.assign({}, providedParserOptions, { ############################################## eslint-5.16.0~dfsg/lib/linter.js-500- // If the message includes a leading line number, strip it: eslint-5.16.0~dfsg/lib/linter.js:501: const message = `Parsing error: ${ex.message.replace(/^line \d+:/iu, "").trim()}`; eslint-5.16.0~dfsg/lib/linter.js-502- ############################################## eslint-5.16.0~dfsg/lib/linter.js-579- } catch (ex) { eslint-5.16.0~dfsg/lib/linter.js:580: ex.message = `Error while loading rule '${ruleContext.id}': ${ex.message}`; eslint-5.16.0~dfsg/lib/linter.js-581- throw ex; ############################################## eslint-5.16.0~dfsg/lib/linter.js-908- } catch (err) { eslint-5.16.0~dfsg/lib/linter.js:909: err.message += `\nOccurred while linting ${options.filename}`; eslint-5.16.0~dfsg/lib/linter.js-910- debug("An error occurred while traversing"); ############################################## eslint-5.16.0~dfsg/lib/linter.js-915- debug("Line:", line); eslint-5.16.0~dfsg/lib/linter.js:916: err.message += `:${line}`; eslint-5.16.0~dfsg/lib/linter.js-917- } ############################################## eslint-5.16.0~dfsg/lib/linter.js-1030- currentText = text; eslint-5.16.0~dfsg/lib/linter.js:1031: const debugTextDescription = options && options.filename || `${text.slice(0, 10)}...`; eslint-5.16.0~dfsg/lib/linter.js-1032- const shouldFix = options && typeof options.fix !== "undefined" ? options.fix : true; ############################################## eslint-5.16.0~dfsg/lib/linter.js-1045- eslint-5.16.0~dfsg/lib/linter.js:1046: debug(`Linting code for ${debugTextDescription} (pass ${passNumber})`); eslint-5.16.0~dfsg/lib/linter.js-1047- messages = this.verify(currentText, config, options); eslint-5.16.0~dfsg/lib/linter.js-1048- eslint-5.16.0~dfsg/lib/linter.js:1049: debug(`Generating fixed text for ${debugTextDescription} (pass ${passNumber})`); eslint-5.16.0~dfsg/lib/linter.js-1050- fixedResult = SourceCodeFixer.applyFixes(currentText, messages, shouldFix); ############################################## eslint-5.16.0~dfsg/lib/rules.js-23- * @returns {{create: function(RuleContext): Object}} A rule that reports an error at the first location eslint-5.16.0~dfsg/lib/rules.js:24: * in the program. The report has the message `Definition for rule '${ruleId}' was not found` if the rule is unknown, eslint-5.16.0~dfsg/lib/rules.js:25: * or `Rule '${ruleId}' was removed and replaced by: ${replacements.join(", ")}` if the rule is known to have been eslint-5.16.0~dfsg/lib/rules.js-26- * replaced. ############################################## eslint-5.16.0~dfsg/lib/rules.js-29- const message = Object.prototype.hasOwnProperty.call(ruleReplacements, ruleId) eslint-5.16.0~dfsg/lib/rules.js:30: ? `Rule '${ruleId}' was removed and replaced by: ${ruleReplacements[ruleId].join(", ")}` eslint-5.16.0~dfsg/lib/rules.js:31: : `Definition for rule '${ruleId}' was not found`; eslint-5.16.0~dfsg/lib/rules.js-32- ############################################## eslint-5.16.0~dfsg/lib/rules/arrow-parens.js-88- closingParenToken.range[1] eslint-5.16.0~dfsg/lib/rules/arrow-parens.js:89: ], `${shouldAddSpaceForAsync ? " " : ""}${paramToken.value}`); eslint-5.16.0~dfsg/lib/rules/arrow-parens.js-90- } ############################################## eslint-5.16.0~dfsg/lib/rules/arrow-parens.js-119- fix(fixer) { eslint-5.16.0~dfsg/lib/rules/arrow-parens.js:120: return fixer.replaceText(firstTokenOfParam, `(${firstTokenOfParam.value})`); eslint-5.16.0~dfsg/lib/rules/arrow-parens.js-121- } ############################################## eslint-5.16.0~dfsg/lib/rules/arrow-parens.js-152- fix(fixer) { eslint-5.16.0~dfsg/lib/rules/arrow-parens.js:153: return fixer.replaceText(firstTokenOfParam, `(${firstTokenOfParam.value})`); eslint-5.16.0~dfsg/lib/rules/arrow-parens.js-154- } ############################################## eslint-5.16.0~dfsg/lib/rules/comma-style.js-87- case "between": eslint-5.16.0~dfsg/lib/rules/comma-style.js:88: return `,${text.replace(astUtils.LINEBREAK_MATCHER, "")}`; eslint-5.16.0~dfsg/lib/rules/comma-style.js-89- eslint-5.16.0~dfsg/lib/rules/comma-style.js-90- case "first": eslint-5.16.0~dfsg/lib/rules/comma-style.js:91: return `${text},`; eslint-5.16.0~dfsg/lib/rules/comma-style.js-92- eslint-5.16.0~dfsg/lib/rules/comma-style.js-93- case "last": eslint-5.16.0~dfsg/lib/rules/comma-style.js:94: return `,${text}`; eslint-5.16.0~dfsg/lib/rules/comma-style.js-95- ############################################## eslint-5.16.0~dfsg/lib/rules/curly.js-262- }, eslint-5.16.0~dfsg/lib/rules/curly.js:263: fix: fixer => fixer.replaceText(body, `{${sourceCode.getText(body)}}`) eslint-5.16.0~dfsg/lib/rules/curly.js-264- }); ############################################## eslint-5.16.0~dfsg/lib/rules/dot-location.js-68- messageId: "expectedDotAfterObject", eslint-5.16.0~dfsg/lib/rules/dot-location.js:69: fix: fixer => fixer.replaceTextRange([obj.range[1], prop.range[0]], `${neededTextAfterObj}.${textBeforeDot}${textAfterDot}`) eslint-5.16.0~dfsg/lib/rules/dot-location.js-70- }); ############################################## eslint-5.16.0~dfsg/lib/rules/dot-location.js-76- messageId: "expectedDotBeforeProperty", eslint-5.16.0~dfsg/lib/rules/dot-location.js:77: fix: fixer => fixer.replaceTextRange([obj.range[1], prop.range[0]], `${textBeforeDot}${textAfterDot}.`) eslint-5.16.0~dfsg/lib/rules/dot-location.js-78- }); ############################################## eslint-5.16.0~dfsg/lib/rules/dot-notation.js-78- ) { eslint-5.16.0~dfsg/lib/rules/dot-notation.js:79: const formattedValue = node.property.type === "Literal" ? JSON.stringify(value) : `\`${value}\``; eslint-5.16.0~dfsg/lib/rules/dot-notation.js-80- ############################################## eslint-5.16.0~dfsg/lib/rules/dot-notation.js-106- [leftBracket.range[0], rightBracket.range[1]], eslint-5.16.0~dfsg/lib/rules/dot-notation.js:107: `${textBeforeDot}.${value}${textAfterProperty}` eslint-5.16.0~dfsg/lib/rules/dot-notation.js-108- ); ############################################## eslint-5.16.0~dfsg/lib/rules/dot-notation.js-160- [dot.range[0], node.property.range[1]], eslint-5.16.0~dfsg/lib/rules/dot-notation.js:161: `[${textAfterDot}"${node.property.name}"]` eslint-5.16.0~dfsg/lib/rules/dot-notation.js-162- ); ############################################## eslint-5.16.0~dfsg/lib/rules/eol-last.js-55- LF = "\n", eslint-5.16.0~dfsg/lib/rules/eol-last.js:56: CRLF = `\r${LF}`, eslint-5.16.0~dfsg/lib/rules/eol-last.js-57- endsWithNewline = lodash.endsWith(src, LF); ############################################## eslint-5.16.0~dfsg/lib/rules/eqeqeq.js-180- eslint-5.16.0~dfsg/lib/rules/eqeqeq.js:181: report(node, `${node.operator}=`); eslint-5.16.0~dfsg/lib/rules/eqeqeq.js-182- } ############################################## eslint-5.16.0~dfsg/lib/rules/function-paren-newline.js-203- default: eslint-5.16.0~dfsg/lib/rules/function-paren-newline.js:204: throw new TypeError(`unexpected node with type ${node.type}`); eslint-5.16.0~dfsg/lib/rules/function-paren-newline.js-205- } ############################################## eslint-5.16.0~dfsg/lib/rules/generator-star-spacing.js-155- const node = after ? leftToken : rightToken; eslint-5.16.0~dfsg/lib/rules/generator-star-spacing.js:156: const messageId = `${spaceRequired ? "missing" : "unexpected"}${capitalize(side)}`; eslint-5.16.0~dfsg/lib/rules/generator-star-spacing.js-157- ############################################## eslint-5.16.0~dfsg/lib/rules/indent-legacy.js-274- function createErrorMessageData(expectedAmount, actualSpaces, actualTabs) { eslint-5.16.0~dfsg/lib/rules/indent-legacy.js:275: const expectedStatement = `${expectedAmount} ${indentType}${expectedAmount === 1 ? "" : "s"}`; // e.g. "2 tabs" eslint-5.16.0~dfsg/lib/rules/indent-legacy.js:276: const foundSpacesWord = `space${actualSpaces === 1 ? "" : "s"}`; // e.g. "space" eslint-5.16.0~dfsg/lib/rules/indent-legacy.js:277: const foundTabsWord = `tab${actualTabs === 1 ? "" : "s"}`; // e.g. "tabs" eslint-5.16.0~dfsg/lib/rules/indent-legacy.js-278- let foundStatement; ############################################## eslint-5.16.0~dfsg/lib/rules/indent-legacy.js-280- if (actualSpaces > 0 && actualTabs > 0) { eslint-5.16.0~dfsg/lib/rules/indent-legacy.js:281: foundStatement = `${actualSpaces} ${foundSpacesWord} and ${actualTabs} ${foundTabsWord}`; // e.g. "1 space and 2 tabs" eslint-5.16.0~dfsg/lib/rules/indent-legacy.js-282- } else if (actualSpaces > 0) { ############################################## eslint-5.16.0~dfsg/lib/rules/indent-legacy.js-287- */ eslint-5.16.0~dfsg/lib/rules/indent-legacy.js:288: foundStatement = indentType === "space" ? actualSpaces : `${actualSpaces} ${foundSpacesWord}`; eslint-5.16.0~dfsg/lib/rules/indent-legacy.js-289- } else if (actualTabs > 0) { eslint-5.16.0~dfsg/lib/rules/indent-legacy.js:290: foundStatement = indentType === "tab" ? actualTabs : `${actualTabs} ${foundTabsWord}`; eslint-5.16.0~dfsg/lib/rules/indent-legacy.js-291- } else { ############################################## eslint-5.16.0~dfsg/lib/rules/indent.js-680- function createErrorMessageData(expectedAmount, actualSpaces, actualTabs) { eslint-5.16.0~dfsg/lib/rules/indent.js:681: const expectedStatement = `${expectedAmount} ${indentType}${expectedAmount === 1 ? "" : "s"}`; // e.g. "2 tabs" eslint-5.16.0~dfsg/lib/rules/indent.js:682: const foundSpacesWord = `space${actualSpaces === 1 ? "" : "s"}`; // e.g. "space" eslint-5.16.0~dfsg/lib/rules/indent.js:683: const foundTabsWord = `tab${actualTabs === 1 ? "" : "s"}`; // e.g. "tabs" eslint-5.16.0~dfsg/lib/rules/indent.js-684- let foundStatement; ############################################## eslint-5.16.0~dfsg/lib/rules/indent.js-691- */ eslint-5.16.0~dfsg/lib/rules/indent.js:692: foundStatement = indentType === "space" ? actualSpaces : `${actualSpaces} ${foundSpacesWord}`; eslint-5.16.0~dfsg/lib/rules/indent.js-693- } else if (actualTabs > 0) { eslint-5.16.0~dfsg/lib/rules/indent.js:694: foundStatement = indentType === "tab" ? actualTabs : `${actualTabs} ${foundTabsWord}`; eslint-5.16.0~dfsg/lib/rules/indent.js-695- } else { ############################################## eslint-5.16.0~dfsg/lib/rules/keyword-spacing.js-32- if (KEYS[i] === KEYS[i - 1]) { eslint-5.16.0~dfsg/lib/rules/keyword-spacing.js:33: throw new Error(`Duplication was found in the keyword list: ${KEYS[i]}`); eslint-5.16.0~dfsg/lib/rules/keyword-spacing.js-34- } ############################################## eslint-5.16.0~dfsg/lib/rules/multiline-comment-style.js-65- const initialOffset = sourceCode.text.slice(firstComment.range[0] - firstComment.loc.start.column, firstComment.range[0]); eslint-5.16.0~dfsg/lib/rules/multiline-comment-style.js:66: const starredLines = commentLinesList.map(line => `${initialOffset} *${line}`); eslint-5.16.0~dfsg/lib/rules/multiline-comment-style.js-67- eslint-5.16.0~dfsg/lib/rules/multiline-comment-style.js:68: return `\n${starredLines.join("\n")}\n${initialOffset} `; eslint-5.16.0~dfsg/lib/rules/multiline-comment-style.js-69- } ############################################## eslint-5.16.0~dfsg/lib/rules/multiline-comment-style.js-78- const initialOffset = sourceCode.text.slice(firstComment.range[0] - firstComment.loc.start.column, firstComment.range[0]); eslint-5.16.0~dfsg/lib/rules/multiline-comment-style.js:79: const separateLines = commentLinesList.map(line => `// ${line.trim()}`); eslint-5.16.0~dfsg/lib/rules/multiline-comment-style.js-80- eslint-5.16.0~dfsg/lib/rules/multiline-comment-style.js:81: return separateLines.join(`\n${initialOffset}`); eslint-5.16.0~dfsg/lib/rules/multiline-comment-style.js-82- } ############################################## eslint-5.16.0~dfsg/lib/rules/multiline-comment-style.js-93- eslint-5.16.0~dfsg/lib/rules/multiline-comment-style.js:94: return `/* ${blockLines.join(`\n${initialOffset} `)} */`; eslint-5.16.0~dfsg/lib/rules/multiline-comment-style.js-95- } ############################################## eslint-5.16.0~dfsg/lib/rules/multiline-comment-style.js-133- const range = [commentGroup[0].range[0], commentGroup[commentGroup.length - 1].range[1]]; eslint-5.16.0~dfsg/lib/rules/multiline-comment-style.js:134: const starredBlock = `/*${convertToStarredBlock(commentGroup[0], commentLines)}*/`; eslint-5.16.0~dfsg/lib/rules/multiline-comment-style.js-135- ############################################## eslint-5.16.0~dfsg/lib/rules/multiline-comment-style.js-143- const lines = block.value.split(astUtils.LINEBREAK_MATCHER); eslint-5.16.0~dfsg/lib/rules/multiline-comment-style.js:144: const expectedLinePrefix = `${sourceCode.text.slice(block.range[0] - block.loc.start.column, block.range[0])} *`; eslint-5.16.0~dfsg/lib/rules/multiline-comment-style.js-145- ############################################## eslint-5.16.0~dfsg/lib/rules/multiline-comment-style.js-154- messageId: "startNewline", eslint-5.16.0~dfsg/lib/rules/multiline-comment-style.js:155: fix: fixer => fixer.insertTextAfterRange([start, start + 2], `\n${expectedLinePrefix}`) eslint-5.16.0~dfsg/lib/rules/multiline-comment-style.js-156- }); ############################################## eslint-5.16.0~dfsg/lib/rules/multiline-comment-style.js-165- messageId: "endNewline", eslint-5.16.0~dfsg/lib/rules/multiline-comment-style.js:166: fix: fixer => fixer.replaceTextRange([block.range[1] - 2, block.range[1]], `\n${expectedLinePrefix}/`) eslint-5.16.0~dfsg/lib/rules/multiline-comment-style.js-167- }); ############################################## eslint-5.16.0~dfsg/lib/rules/multiline-comment-style.js-188- ? expectedLinePrefix eslint-5.16.0~dfsg/lib/rules/multiline-comment-style.js:189: : `${expectedLinePrefix} `; eslint-5.16.0~dfsg/lib/rules/multiline-comment-style.js-190- ############################################## eslint-5.16.0~dfsg/lib/rules/multiline-ternary.js-57- node, eslint-5.16.0~dfsg/lib/rules/multiline-ternary.js:58: messageId: `${expected ? "expected" : "unexpected"}${node === parentNode.test ? "TestCons" : "ConsAlt"}` eslint-5.16.0~dfsg/lib/rules/multiline-ternary.js-59- }); ############################################## eslint-5.16.0~dfsg/lib/rules/new-cap.js-39- if (Object.prototype.hasOwnProperty.call(obj, key) && !Array.isArray(obj[key])) { eslint-5.16.0~dfsg/lib/rules/new-cap.js:40: throw new TypeError(`${key}, if provided, must be an Array`); eslint-5.16.0~dfsg/lib/rules/new-cap.js-41- } ############################################## eslint-5.16.0~dfsg/lib/rules/newline-after-var.js-219- eslint-5.16.0~dfsg/lib/rules/newline-after-var.js:220: return fixer.replaceTextRange([lastToken.range[1], nextToken.range[0]], `${linesBetween.slice(0, -1).join("")}\n${linesBetween[linesBetween.length - 1]}`); eslint-5.16.0~dfsg/lib/rules/newline-after-var.js-221- } ############################################## eslint-5.16.0~dfsg/lib/rules/no-confusing-arrow.js-72- // if `allowParens` is not set to true dont bother wrapping in parens eslint-5.16.0~dfsg/lib/rules/no-confusing-arrow.js:73: return config.allowParens && fixer.replaceText(node.body, `(${sourceCode.getText(node.body)})`); eslint-5.16.0~dfsg/lib/rules/no-confusing-arrow.js-74- } ############################################## eslint-5.16.0~dfsg/lib/rules/no-dupe-class-members.js-43- const stateMap = stack[stack.length - 1]; eslint-5.16.0~dfsg/lib/rules/no-dupe-class-members.js:44: const key = `$${name}`; // to avoid "__proto__". eslint-5.16.0~dfsg/lib/rules/no-dupe-class-members.js-45- ############################################## eslint-5.16.0~dfsg/lib/rules/no-extra-boolean-cast.js-118- if (astUtils.getPrecedence(argument) < astUtils.getPrecedence(node.parent)) { eslint-5.16.0~dfsg/lib/rules/no-extra-boolean-cast.js:119: return fixer.replaceText(node, `(${sourceCode.getText(argument)})`); eslint-5.16.0~dfsg/lib/rules/no-extra-boolean-cast.js-120- } ############################################## eslint-5.16.0~dfsg/lib/rules/no-floating-decimal.js-51- tokenBefore.range[1] === node.range[0] && eslint-5.16.0~dfsg/lib/rules/no-floating-decimal.js:52: !astUtils.canTokensBeAdjacent(tokenBefore, `0${node.raw}`); eslint-5.16.0~dfsg/lib/rules/no-floating-decimal.js-53- ############################################## eslint-5.16.0~dfsg/lib/rules/no-implicit-coercion.js-222- ) { eslint-5.16.0~dfsg/lib/rules/no-implicit-coercion.js:223: return fixer.replaceText(node, ` ${recommendation}`); eslint-5.16.0~dfsg/lib/rules/no-implicit-coercion.js-224- } ############################################## eslint-5.16.0~dfsg/lib/rules/no-implicit-coercion.js-236- if (!operatorAllowed && options.boolean && isDoubleLogicalNegating(node)) { eslint-5.16.0~dfsg/lib/rules/no-implicit-coercion.js:237: const recommendation = `Boolean(${sourceCode.getText(node.argument.argument)})`; eslint-5.16.0~dfsg/lib/rules/no-implicit-coercion.js-238- ############################################## eslint-5.16.0~dfsg/lib/rules/no-implicit-coercion.js-244- if (!operatorAllowed && options.boolean && isBinaryNegatingOfIndexOf(node)) { eslint-5.16.0~dfsg/lib/rules/no-implicit-coercion.js:245: const recommendation = `${sourceCode.getText(node.argument)} !== -1`; eslint-5.16.0~dfsg/lib/rules/no-implicit-coercion.js-246- ############################################## eslint-5.16.0~dfsg/lib/rules/no-implicit-coercion.js-252- if (!operatorAllowed && options.number && node.operator === "+" && !isNumeric(node.argument)) { eslint-5.16.0~dfsg/lib/rules/no-implicit-coercion.js:253: const recommendation = `Number(${sourceCode.getText(node.argument)})`; eslint-5.16.0~dfsg/lib/rules/no-implicit-coercion.js-254- ############################################## eslint-5.16.0~dfsg/lib/rules/no-implicit-coercion.js-267- if (nonNumericOperand) { eslint-5.16.0~dfsg/lib/rules/no-implicit-coercion.js:268: const recommendation = `Number(${sourceCode.getText(nonNumericOperand)})`; eslint-5.16.0~dfsg/lib/rules/no-implicit-coercion.js-269- ############################################## eslint-5.16.0~dfsg/lib/rules/no-implicit-coercion.js-275- if (!operatorAllowed && options.string && isConcatWithEmptyString(node)) { eslint-5.16.0~dfsg/lib/rules/no-implicit-coercion.js:276: const recommendation = `String(${sourceCode.getText(getNonEmptyOperand(node))})`; eslint-5.16.0~dfsg/lib/rules/no-implicit-coercion.js-277- ############################################## eslint-5.16.0~dfsg/lib/rules/no-implicit-coercion.js-288- const code = sourceCode.getText(getNonEmptyOperand(node)); eslint-5.16.0~dfsg/lib/rules/no-implicit-coercion.js:289: const recommendation = `${code} = String(${code})`; eslint-5.16.0~dfsg/lib/rules/no-implicit-coercion.js-290- ############################################## eslint-5.16.0~dfsg/lib/rules/no-magic-numbers.js-129- value = -node.value; eslint-5.16.0~dfsg/lib/rules/no-magic-numbers.js:130: raw = `-${node.raw}`; eslint-5.16.0~dfsg/lib/rules/no-magic-numbers.js-131- } else { ############################################## eslint-5.16.0~dfsg/lib/rules/no-multi-spaces.js-65- const value = valueLines[0]; eslint-5.16.0~dfsg/lib/rules/no-multi-spaces.js:66: const formattedValue = `${value.slice(0, 12)}...`; eslint-5.16.0~dfsg/lib/rules/no-multi-spaces.js-67- ############################################## eslint-5.16.0~dfsg/lib/rules/no-multi-spaces.js-114- if (rightToken.type === "Block") { eslint-5.16.0~dfsg/lib/rules/no-multi-spaces.js:115: displayValue = `/*${formatReportedCommentValue(rightToken)}*/`; eslint-5.16.0~dfsg/lib/rules/no-multi-spaces.js-116- } else if (rightToken.type === "Line") { eslint-5.16.0~dfsg/lib/rules/no-multi-spaces.js:117: displayValue = `//${formatReportedCommentValue(rightToken)}`; eslint-5.16.0~dfsg/lib/rules/no-multi-spaces.js-118- } else { ############################################## eslint-5.16.0~dfsg/lib/rules/no-regex-spaces.js-54- [valueStart + regexResults.index, valueStart + regexResults.index + count], eslint-5.16.0~dfsg/lib/rules/no-regex-spaces.js:55: ` {${count}}` eslint-5.16.0~dfsg/lib/rules/no-regex-spaces.js-56- ); ############################################## eslint-5.16.0~dfsg/lib/rules/no-restricted-properties.js-112- if (matchedObjectProperty) { eslint-5.16.0~dfsg/lib/rules/no-restricted-properties.js:113: const message = matchedObjectProperty.message ? ` ${matchedObjectProperty.message}` : ""; eslint-5.16.0~dfsg/lib/rules/no-restricted-properties.js-114- ############################################## eslint-5.16.0~dfsg/lib/rules/no-restricted-properties.js-125- } else if (globalMatchedProperty) { eslint-5.16.0~dfsg/lib/rules/no-restricted-properties.js:126: const message = globalMatchedProperty.message ? ` ${globalMatchedProperty.message}` : ""; eslint-5.16.0~dfsg/lib/rules/no-restricted-properties.js-127- ############################################## eslint-5.16.0~dfsg/lib/rules/no-trailing-spaces.js-51- const BLANK_CLASS = "[ \t\u00a0\u2000-\u200b\u3000]", eslint-5.16.0~dfsg/lib/rules/no-trailing-spaces.js:52: SKIP_BLANK = `^${BLANK_CLASS}*$`, eslint-5.16.0~dfsg/lib/rules/no-trailing-spaces.js:53: NONBLANK = `${BLANK_CLASS}+$`; eslint-5.16.0~dfsg/lib/rules/no-trailing-spaces.js-54- ############################################## eslint-5.16.0~dfsg/lib/rules/no-unneeded-ternary.js-85- if (astUtils.getPrecedence(node) < astUtils.getPrecedence({ type: "UnaryExpression" })) { eslint-5.16.0~dfsg/lib/rules/no-unneeded-ternary.js:86: return `!(${astUtils.getParenthesisedText(sourceCode, node)})`; eslint-5.16.0~dfsg/lib/rules/no-unneeded-ternary.js-87- } eslint-5.16.0~dfsg/lib/rules/no-unneeded-ternary.js:88: return `!${astUtils.getParenthesisedText(sourceCode, node)}`; eslint-5.16.0~dfsg/lib/rules/no-unneeded-ternary.js-89- } ############################################## eslint-5.16.0~dfsg/lib/rules/no-unneeded-ternary.js-134- eslint-5.16.0~dfsg/lib/rules/no-unneeded-ternary.js:135: return fixer.replaceText(node, isBooleanExpression(node.test) ? astUtils.getParenthesisedText(sourceCode, node.test) : `!${invertExpression(node.test)}`); eslint-5.16.0~dfsg/lib/rules/no-unneeded-ternary.js-136- } ############################################## eslint-5.16.0~dfsg/lib/rules/no-unneeded-ternary.js-148- eslint-5.16.0~dfsg/lib/rules/no-unneeded-ternary.js:149: nodeAlternate = isAlternateParenthesised ? nodeAlternate : `(${nodeAlternate})`; eslint-5.16.0~dfsg/lib/rules/no-unneeded-ternary.js-150- } eslint-5.16.0~dfsg/lib/rules/no-unneeded-ternary.js-151- eslint-5.16.0~dfsg/lib/rules/no-unneeded-ternary.js:152: return fixer.replaceText(node, `${astUtils.getParenthesisedText(sourceCode, node.test)} || ${nodeAlternate}`); eslint-5.16.0~dfsg/lib/rules/no-unneeded-ternary.js-153- } ############################################## eslint-5.16.0~dfsg/lib/rules/no-unsafe-negation.js-79- eslint-5.16.0~dfsg/lib/rules/no-unsafe-negation.js:80: return fixer.replaceTextRange(fixRange, `(${text})`); eslint-5.16.0~dfsg/lib/rules/no-unsafe-negation.js-81- } ############################################## eslint-5.16.0~dfsg/lib/rules/no-unused-vars.js-125- eslint-5.16.0~dfsg/lib/rules/no-unused-vars.js:126: const additional = type ? ` Allowed unused ${type} must match ${pattern}.` : ""; eslint-5.16.0~dfsg/lib/rules/no-unused-vars.js-127- eslint-5.16.0~dfsg/lib/rules/no-unused-vars.js:128: return `'{{name}}' is defined but never used.${additional}`; eslint-5.16.0~dfsg/lib/rules/no-unused-vars.js-129- } ############################################## eslint-5.16.0~dfsg/lib/rules/no-unused-vars.js-136- function getAssignedMessage() { eslint-5.16.0~dfsg/lib/rules/no-unused-vars.js:137: const additional = config.varsIgnorePattern ? ` Allowed unused vars must match ${config.varsIgnorePattern.toString()}.` : ""; eslint-5.16.0~dfsg/lib/rules/no-unused-vars.js-138- eslint-5.16.0~dfsg/lib/rules/no-unused-vars.js:139: return `'{{name}}' is assigned a value but never used.${additional}`; eslint-5.16.0~dfsg/lib/rules/no-unused-vars.js-140- } ############################################## eslint-5.16.0~dfsg/lib/rules/no-unused-vars.js-598- function getColumnInComment(variable, comment) { eslint-5.16.0~dfsg/lib/rules/no-unused-vars.js:599: const namePattern = new RegExp(`[\\s,]${lodash.escapeRegExp(variable.name)}(?:$|[\\s,:])`, "gu"); eslint-5.16.0~dfsg/lib/rules/no-unused-vars.js-600- ############################################## eslint-5.16.0~dfsg/lib/rules/no-warning-comments.js-62- const wordBoundary = "\\b"; eslint-5.16.0~dfsg/lib/rules/no-warning-comments.js:63: const eitherOrWordBoundary = `|${wordBoundary}`; eslint-5.16.0~dfsg/lib/rules/no-warning-comments.js-64- let prefix; ############################################## eslint-5.16.0~dfsg/lib/rules/object-shorthand.js-261- const oldParamText = sourceCode.text.slice(sourceCode.getFirstToken(node.value, node.value.async ? 1 : 0).range[0], tokenBeforeArrow.range[1]); eslint-5.16.0~dfsg/lib/rules/object-shorthand.js:262: const newParamText = hasParensAroundParameters ? oldParamText : `(${oldParamText})`; eslint-5.16.0~dfsg/lib/rules/object-shorthand.js-263- ############################################## eslint-5.16.0~dfsg/lib/rules/object-shorthand.js-283- if (node.value.async) { eslint-5.16.0~dfsg/lib/rules/object-shorthand.js:284: functionHeader = `async ${functionHeader}`; eslint-5.16.0~dfsg/lib/rules/object-shorthand.js-285- } eslint-5.16.0~dfsg/lib/rules/object-shorthand.js-286- if (node.value.generator) { eslint-5.16.0~dfsg/lib/rules/object-shorthand.js:287: functionHeader = `${functionHeader}*`; eslint-5.16.0~dfsg/lib/rules/object-shorthand.js-288- } eslint-5.16.0~dfsg/lib/rules/object-shorthand.js-289- eslint-5.16.0~dfsg/lib/rules/object-shorthand.js:290: return fixer.replaceTextRange([node.range[0], lastKeyToken.range[1]], `${keyText}: ${functionHeader}`); eslint-5.16.0~dfsg/lib/rules/object-shorthand.js-291- } ############################################## eslint-5.16.0~dfsg/lib/rules/object-shorthand.js-411- message: "Expected longform property syntax.", eslint-5.16.0~dfsg/lib/rules/object-shorthand.js:412: fix: fixer => fixer.insertTextAfter(node.key, `: ${node.key.name}`) eslint-5.16.0~dfsg/lib/rules/object-shorthand.js-413- }); ############################################## eslint-5.16.0~dfsg/lib/rules/one-var.js-312- if (afterComma.range[0] === tokenAfterDeclarator.range[1]) { eslint-5.16.0~dfsg/lib/rules/one-var.js:313: return fixer.replaceText(tokenAfterDeclarator, `; ${declaration.kind} `); eslint-5.16.0~dfsg/lib/rules/one-var.js-314- } ############################################## eslint-5.16.0~dfsg/lib/rules/one-var.js-334- [tokenAfterDeclarator.range[0], lastComment.range[0]], eslint-5.16.0~dfsg/lib/rules/one-var.js:335: `;${sourceCode.text.slice(tokenAfterDeclarator.range[1], lastComment.range[0])}${declaration.kind} ` eslint-5.16.0~dfsg/lib/rules/one-var.js-336- ); ############################################## eslint-5.16.0~dfsg/lib/rules/one-var.js-338- eslint-5.16.0~dfsg/lib/rules/one-var.js:339: return fixer.replaceText(tokenAfterDeclarator, `; ${declaration.kind}`); eslint-5.16.0~dfsg/lib/rules/one-var.js-340- }).filter(x => x); ############################################## eslint-5.16.0~dfsg/lib/rules/operator-assignment.js-152- eslint-5.16.0~dfsg/lib/rules/operator-assignment.js:153: return fixer.replaceText(node, `${leftText}${expr.operator}=${rightText}`); eslint-5.16.0~dfsg/lib/rules/operator-assignment.js-154- } ############################################## eslint-5.16.0~dfsg/lib/rules/operator-assignment.js-194- ) { eslint-5.16.0~dfsg/lib/rules/operator-assignment.js:195: rightText = `${sourceCode.text.slice(operatorToken.range[1], node.right.range[0])}(${sourceCode.getText(node.right)})`; eslint-5.16.0~dfsg/lib/rules/operator-assignment.js-196- } else { ############################################## eslint-5.16.0~dfsg/lib/rules/operator-assignment.js-199- eslint-5.16.0~dfsg/lib/rules/operator-assignment.js:200: return fixer.replaceText(node, `${leftText}= ${leftText}${newOperator}${rightText}`); eslint-5.16.0~dfsg/lib/rules/operator-assignment.js-201- } ############################################## eslint-5.16.0~dfsg/lib/rules/padding-line-between-statements.js-17- eslint-5.16.0~dfsg/lib/rules/padding-line-between-statements.js:18:const LT = `[${Array.from(astUtils.LINEBREAKS).join("")}]`; eslint-5.16.0~dfsg/lib/rules/padding-line-between-statements.js-19-const PADDING_LINE_SEQUENCE = new RegExp( eslint-5.16.0~dfsg/lib/rules/padding-line-between-statements.js:20: String.raw`^(\s*?${LT})\s*${LT}(\s*;?)$`, eslint-5.16.0~dfsg/lib/rules/padding-line-between-statements.js-21- "u" ############################################## eslint-5.16.0~dfsg/lib/rules/prefer-arrow-callback.js-286- const paramsFullText = sourceCode.text.slice(paramsLeftParen.range[0], paramsRightParen.range[1]); eslint-5.16.0~dfsg/lib/rules/prefer-arrow-callback.js:287: const arrowFunctionText = `${asyncKeyword}${paramsFullText} => ${sourceCode.getText(node.body)}`; eslint-5.16.0~dfsg/lib/rules/prefer-arrow-callback.js-288- ############################################## eslint-5.16.0~dfsg/lib/rules/prefer-arrow-callback.js-300- const needsParens = replacedNode.parent.type !== "CallExpression" && replacedNode.parent.type !== "ConditionalExpression"; eslint-5.16.0~dfsg/lib/rules/prefer-arrow-callback.js:301: const replacementText = needsParens ? `(${arrowFunctionText})` : arrowFunctionText; eslint-5.16.0~dfsg/lib/rules/prefer-arrow-callback.js-302- ############################################## eslint-5.16.0~dfsg/lib/rules/prefer-destructuring.js-181- node, eslint-5.16.0~dfsg/lib/rules/prefer-destructuring.js:182: `{${rightNode.property.name}} = ${sourceCode.getText(rightNode.object)}` eslint-5.16.0~dfsg/lib/rules/prefer-destructuring.js-183- ); ############################################## eslint-5.16.0~dfsg/lib/rules/prefer-template.js-108-/** eslint-5.16.0~dfsg/lib/rules/prefer-template.js:109: * Determines whether a given node will start with a template curly expression (`${}`) when being converted to a template literal. eslint-5.16.0~dfsg/lib/rules/prefer-template.js-110- * @param {ASTNode} node The node that will be fixed to a template literal ############################################## eslint-5.16.0~dfsg/lib/rules/prefer-template.js-123-/** eslint-5.16.0~dfsg/lib/rules/prefer-template.js:124: * Determines whether a given node end with a template curly expression (`${}`) when being converted to a template literal. eslint-5.16.0~dfsg/lib/rules/prefer-template.js-125- * @param {ASTNode} node The node that will be fixed to a template literal ############################################## eslint-5.16.0~dfsg/lib/rules/prefer-template.js-189- */ eslint-5.16.0~dfsg/lib/rules/prefer-template.js:190: return `\`${currentNode.raw.slice(1, -1).replace(/\\*(\$\{|`)/gu, matched => { eslint-5.16.0~dfsg/lib/rules/prefer-template.js-191- if (matched.lastIndexOf("\\") % 2) { eslint-5.16.0~dfsg/lib/rules/prefer-template.js:192: return `\\${matched}`; eslint-5.16.0~dfsg/lib/rules/prefer-template.js-193- } ############################################## eslint-5.16.0~dfsg/lib/rules/prefer-template.js-196- // Unescape any quotes that appear in the original Literal that no longer need to be escaped. eslint-5.16.0~dfsg/lib/rules/prefer-template.js:197: }).replace(new RegExp(`\\\\${currentNode.raw[0]}`, "gu"), currentNode.raw[0])}\``; eslint-5.16.0~dfsg/lib/rules/prefer-template.js-198- } ############################################## eslint-5.16.0~dfsg/lib/rules/prefer-template.js-213- // If the left side of the expression ends with a template curly, add the extra text to the end of the curly bracket. eslint-5.16.0~dfsg/lib/rules/prefer-template.js:214: // `foo${bar}` /* comment */ + 'baz' --> `foo${bar /* comment */ }${baz}` eslint-5.16.0~dfsg/lib/rules/prefer-template.js-215- return getTemplateLiteral(currentNode.left, textBeforeNode, textBeforePlus + textAfterPlus).slice(0, -1) + ############################################## eslint-5.16.0~dfsg/lib/rules/prefer-template.js-220- // Otherwise, if the right side of the expression starts with a template curly, add the text there. eslint-5.16.0~dfsg/lib/rules/prefer-template.js:221: // 'foo' /* comment */ + `${bar}baz` --> `foo${ /* comment */ bar}baz` eslint-5.16.0~dfsg/lib/rules/prefer-template.js-222- return getTemplateLiteral(currentNode.left, textBeforeNode, null).slice(0, -1) + ############################################## eslint-5.16.0~dfsg/lib/rules/prefer-template.js-229- */ eslint-5.16.0~dfsg/lib/rules/prefer-template.js:230: return `${getTemplateLiteral(currentNode.left, textBeforeNode, null)}${textBeforePlus}+${textAfterPlus}${getTemplateLiteral(currentNode.right, textAfterNode, null)}`; eslint-5.16.0~dfsg/lib/rules/prefer-template.js-231- } eslint-5.16.0~dfsg/lib/rules/prefer-template.js-232- eslint-5.16.0~dfsg/lib/rules/prefer-template.js:233: return `\`\${${textBeforeNode || ""}${sourceCode.getText(currentNode)}${textAfterNode || ""}}\``; eslint-5.16.0~dfsg/lib/rules/prefer-template.js-234- } ############################################## eslint-5.16.0~dfsg/lib/rules/quote-props.js-130- // Otherwise, the key is either an identifier or a number literal. eslint-5.16.0~dfsg/lib/rules/quote-props.js:131: return `"${key.type === "Identifier" ? key.name : key.value}"`; eslint-5.16.0~dfsg/lib/rules/quote-props.js-132- } ############################################## eslint-5.16.0~dfsg/lib/rules/quotes.js-36-// An unescaped newline is a newline preceded by an even number of backslashes. eslint-5.16.0~dfsg/lib/rules/quotes.js:37:const UNESCAPED_LINEBREAK_PATTERN = new RegExp(String.raw`(^|[^\\])(\\\\)*[${Array.from(astUtils.LINEBREAKS).join("")}]`, "u"); eslint-5.16.0~dfsg/lib/rules/quotes.js-38- ############################################## eslint-5.16.0~dfsg/lib/rules/quotes.js-61- if (match === newQuote || newQuote === "`" && match === "${") { eslint-5.16.0~dfsg/lib/rules/quotes.js:62: return `\\${match}`; // escape eslint-5.16.0~dfsg/lib/rules/quotes.js-63- } ############################################## eslint-5.16.0~dfsg/lib/rules/spaced-comment.js-19-function escape(s) { eslint-5.16.0~dfsg/lib/rules/spaced-comment.js:20: return `(?:${lodash.escapeRegExp(s)})`; eslint-5.16.0~dfsg/lib/rules/spaced-comment.js-21-} ############################################## eslint-5.16.0~dfsg/lib/rules/spaced-comment.js-29-function escapeAndRepeat(s) { eslint-5.16.0~dfsg/lib/rules/spaced-comment.js:30: return `${escape(s)}+`; eslint-5.16.0~dfsg/lib/rules/spaced-comment.js-31-} ############################################## eslint-5.16.0~dfsg/lib/rules/spaced-comment.js-87- } eslint-5.16.0~dfsg/lib/rules/spaced-comment.js:88: pattern += `(?:$|[${Array.from(astUtils.LINEBREAKS).join("")}]))`; eslint-5.16.0~dfsg/lib/rules/spaced-comment.js-89- } ############################################## eslint-5.16.0~dfsg/lib/rules/spaced-comment.js-142-function createNeverStylePattern(markers) { eslint-5.16.0~dfsg/lib/rules/spaced-comment.js:143: const pattern = `^(${markers.map(escape).join("|")})?[ \t]+`; eslint-5.16.0~dfsg/lib/rules/spaced-comment.js-144- ############################################## eslint-5.16.0~dfsg/lib/rules/spaced-comment.js-252- beginRegex: requireSpace ? createAlwaysStylePattern(markers, exceptions) : createNeverStylePattern(markers), eslint-5.16.0~dfsg/lib/rules/spaced-comment.js:253: endRegex: balanced && requireSpace ? new RegExp(`${createExceptionsPattern(exceptions)}$`) : new RegExp(endNeverPattern), // eslint-disable-line require-unicode-regexp eslint-5.16.0~dfsg/lib/rules/spaced-comment.js-254- hasExceptions: exceptions.length > 0, eslint-5.16.0~dfsg/lib/rules/spaced-comment.js:255: markers: new RegExp(`^(${markers.map(escape).join("|")})`) // eslint-disable-line require-unicode-regexp eslint-5.16.0~dfsg/lib/rules/spaced-comment.js-256- }; ############################################## eslint-5.16.0~dfsg/lib/rules/template-curly-spacing.js-68- loc: token.loc.start, eslint-5.16.0~dfsg/lib/rules/template-curly-spacing.js:69: messageId: `${prefix}Before`, eslint-5.16.0~dfsg/lib/rules/template-curly-spacing.js-70- fix(fixer) { ############################################## eslint-5.16.0~dfsg/lib/rules/template-curly-spacing.js-83- /** eslint-5.16.0~dfsg/lib/rules/template-curly-spacing.js:84: * Checks spacing after `${` of a given token. eslint-5.16.0~dfsg/lib/rules/template-curly-spacing.js-85- * @param {Token} token - A token to check. This is a Template token. ############################################## eslint-5.16.0~dfsg/lib/rules/template-curly-spacing.js-100- }, eslint-5.16.0~dfsg/lib/rules/template-curly-spacing.js:101: messageId: `${prefix}After`, eslint-5.16.0~dfsg/lib/rules/template-curly-spacing.js-102- fix(fixer) { ############################################## eslint-5.16.0~dfsg/lib/rules/valid-jsdoc.js-360- line: entireTagRange.start.line, eslint-5.16.0~dfsg/lib/rules/valid-jsdoc.js:361: column: entireTagRange.start.column + `@${tag.title}`.length eslint-5.16.0~dfsg/lib/rules/valid-jsdoc.js-362- } ############################################## eslint-5.16.0~dfsg/lib/rules/wrap-iife.js-111- eslint-5.16.0~dfsg/lib/rules/wrap-iife.js:112: return fixer.replaceText(nodeToSurround, `(${sourceCode.getText(nodeToSurround)})`); eslint-5.16.0~dfsg/lib/rules/wrap-iife.js-113- } ############################################## eslint-5.16.0~dfsg/lib/rules/wrap-iife.js-130- [innerNode.range[1], parenAfter.range[1]], eslint-5.16.0~dfsg/lib/rules/wrap-iife.js:131: `)${sourceCode.getText().slice(innerNode.range[1], parenAfter.range[0])}` eslint-5.16.0~dfsg/lib/rules/wrap-iife.js-132- ); ############################################## eslint-5.16.0~dfsg/lib/rules/wrap-iife.js-150- [parenAfter.range[0], node.range[1]], eslint-5.16.0~dfsg/lib/rules/wrap-iife.js:151: `${sourceCode.getText().slice(parenAfter.range[1], node.range[1])})` eslint-5.16.0~dfsg/lib/rules/wrap-iife.js-152- ); ############################################## eslint-5.16.0~dfsg/lib/rules/wrap-regex.js-50- messageId: "requireParens", eslint-5.16.0~dfsg/lib/rules/wrap-regex.js:51: fix: fixer => fixer.replaceText(node, `(${sourceCode.getText(node)})`) eslint-5.16.0~dfsg/lib/rules/wrap-regex.js-52- }); ############################################## eslint-5.16.0~dfsg/lib/rules/yoda.js-80- value: -node.argument.value, eslint-5.16.0~dfsg/lib/rules/yoda.js:81: raw: `-${node.argument.value}` eslint-5.16.0~dfsg/lib/rules/yoda.js-82- }; ############################################## eslint-5.16.0~dfsg/lib/rules/capitalized-comments.js-95- if (ignorePatternStr) { eslint-5.16.0~dfsg/lib/rules/capitalized-comments.js:96: const regExp = RegExp(`^\\s*(?:${ignorePatternStr})`); // eslint-disable-line require-unicode-regexp eslint-5.16.0~dfsg/lib/rules/capitalized-comments.js-97- ############################################## eslint-5.16.0~dfsg/lib/rules/no-control-regex.js-98- eslint-5.16.0~dfsg/lib/rules/no-control-regex.js:99: return `\\${match[0]}`; eslint-5.16.0~dfsg/lib/rules/no-control-regex.js-100- }); ############################################## eslint-5.16.0~dfsg/lib/rules/no-control-regex.js-104- return controlChars.map(x => { eslint-5.16.0~dfsg/lib/rules/no-control-regex.js:105: const hexCode = `0${x.charCodeAt(0).toString(16)}`.slice(-2); eslint-5.16.0~dfsg/lib/rules/no-control-regex.js-106- eslint-5.16.0~dfsg/lib/rules/no-control-regex.js:107: return `\\x${hexCode}`; eslint-5.16.0~dfsg/lib/rules/no-control-regex.js-108- }).concat(stringControlChars); ############################################## eslint-5.16.0~dfsg/lib/rules/no-invalid-regexp.js-71- if (allowedFlags) { eslint-5.16.0~dfsg/lib/rules/no-invalid-regexp.js:72: flags = flags.replace(new RegExp(`[${allowedFlags}]`, "gi"), ""); eslint-5.16.0~dfsg/lib/rules/no-invalid-regexp.js-73- } ############################################## eslint-5.16.0~dfsg/lib/rules/no-invalid-regexp.js-87- try { eslint-5.16.0~dfsg/lib/rules/no-invalid-regexp.js:88: espree.parse(`/./${flags}`, context.parserOptions); eslint-5.16.0~dfsg/lib/rules/no-invalid-regexp.js-89- } catch (ex) { ############################################## eslint-5.16.0~dfsg/lib/testers/rule-tester.js-145- if (err instanceof assert.AssertionError) { eslint-5.16.0~dfsg/lib/testers/rule-tester.js:146: err.message += ` (${util.inspect(err.actual)} ${err.operator} ${util.inspect(err.expected)})`; eslint-5.16.0~dfsg/lib/testers/rule-tester.js-147- } ############################################## eslint-5.16.0~dfsg/lib/testers/rule-tester.js-277- if (lodash.isNil(test) || typeof test !== "object") { eslint-5.16.0~dfsg/lib/testers/rule-tester.js:278: throw new TypeError(`Test Scenarios for rule ${ruleName} : Could not find test scenario object`); eslint-5.16.0~dfsg/lib/testers/rule-tester.js-279- } ############################################## eslint-5.16.0~dfsg/lib/testers/rule-tester.js-282- if (lodash.isNil(test[scenarioType])) { eslint-5.16.0~dfsg/lib/testers/rule-tester.js:283: scenarioErrors.push(`Could not find any ${scenarioType} test scenarios`); eslint-5.16.0~dfsg/lib/testers/rule-tester.js-284- } ############################################## eslint-5.16.0~dfsg/lib/testers/rule-tester.js-288- throw new Error([ eslint-5.16.0~dfsg/lib/testers/rule-tester.js:289: `Test Scenarios for rule ${ruleName} is invalid:` eslint-5.16.0~dfsg/lib/testers/rule-tester.js-290- ].concat(scenarioErrors).join("\n")); ############################################## eslint-5.16.0~dfsg/lib/testers/rule-tester.js-374- eslint-5.16.0~dfsg/lib/testers/rule-tester.js:375: return `\t${field}: ${error.message}`; eslint-5.16.0~dfsg/lib/testers/rule-tester.js-376- }).join("\n"); eslint-5.16.0~dfsg/lib/testers/rule-tester.js-377- eslint-5.16.0~dfsg/lib/testers/rule-tester.js:378: throw new Error([`Schema for rule ${ruleName} is invalid:`, errors]); eslint-5.16.0~dfsg/lib/testers/rule-tester.js-379- } ############################################## eslint-5.16.0~dfsg/lib/testers/rule-tester.js-435- expected.test(actual), eslint-5.16.0~dfsg/lib/testers/rule-tester.js:436: `Expected '${actual}' to match ${expected}` eslint-5.16.0~dfsg/lib/testers/rule-tester.js-437- ); ############################################## eslint-5.16.0~dfsg/lib/testers/rule-tester.js-451- assert.ok(item.errors || item.errors === 0, eslint-5.16.0~dfsg/lib/testers/rule-tester.js:452: `Did not specify errors for an invalid test of ${ruleName}`); eslint-5.16.0~dfsg/lib/testers/rule-tester.js-453- ############################################## eslint-5.16.0~dfsg/lib/testers/rule-tester.js-475- eslint-5.16.0~dfsg/lib/testers/rule-tester.js:476: assert(!message.fatal, `A fatal parsing error occurred: ${message.message}`); eslint-5.16.0~dfsg/lib/testers/rule-tester.js-477- assert(hasMessageOfThisRule, "Error rule name should be the same as the name of the rule being tested"); ############################################## eslint-5.16.0~dfsg/lib/testers/rule-tester.js-499- if (!hasOwnProperty(rule.meta.messages, error.messageId)) { eslint-5.16.0~dfsg/lib/testers/rule-tester.js:500: const friendlyIDList = `[${Object.keys(rule.meta.messages).map(key => `'${key}'`).join(", ")}]`; eslint-5.16.0~dfsg/lib/testers/rule-tester.js-501- eslint-5.16.0~dfsg/lib/testers/rule-tester.js:502: assert(false, `Invalid messageId '${error.messageId}'. Expected one of ${friendlyIDList}.`); eslint-5.16.0~dfsg/lib/testers/rule-tester.js-503- } ############################################## eslint-5.16.0~dfsg/lib/testers/rule-tester.js-506- message.messageId, eslint-5.16.0~dfsg/lib/testers/rule-tester.js:507: `messageId '${message.messageId}' does not match expected messageId '${error.messageId}'.` eslint-5.16.0~dfsg/lib/testers/rule-tester.js-508- ); ############################################## eslint-5.16.0~dfsg/lib/testers/rule-tester.js-521- rehydratedMessage, eslint-5.16.0~dfsg/lib/testers/rule-tester.js:522: `Hydrated message "${rehydratedMessage}" does not match "${message.message}"` eslint-5.16.0~dfsg/lib/testers/rule-tester.js-523- ); ############################################## eslint-5.16.0~dfsg/lib/testers/rule-tester.js-532- if (error.type) { eslint-5.16.0~dfsg/lib/testers/rule-tester.js:533: assert.strictEqual(message.nodeType, error.type, `Error type should be ${error.type}, found ${message.nodeType}`); eslint-5.16.0~dfsg/lib/testers/rule-tester.js-534- } ############################################## eslint-5.16.0~dfsg/lib/testers/rule-tester.js-536- if (Object.prototype.hasOwnProperty.call(error, "line")) { eslint-5.16.0~dfsg/lib/testers/rule-tester.js:537: assert.strictEqual(message.line, error.line, `Error line should be ${error.line}`); eslint-5.16.0~dfsg/lib/testers/rule-tester.js-538- } ############################################## eslint-5.16.0~dfsg/lib/testers/rule-tester.js-540- if (Object.prototype.hasOwnProperty.call(error, "column")) { eslint-5.16.0~dfsg/lib/testers/rule-tester.js:541: assert.strictEqual(message.column, error.column, `Error column should be ${error.column}`); eslint-5.16.0~dfsg/lib/testers/rule-tester.js-542- } ############################################## eslint-5.16.0~dfsg/lib/testers/rule-tester.js-544- if (Object.prototype.hasOwnProperty.call(error, "endLine")) { eslint-5.16.0~dfsg/lib/testers/rule-tester.js:545: assert.strictEqual(message.endLine, error.endLine, `Error endLine should be ${error.endLine}`); eslint-5.16.0~dfsg/lib/testers/rule-tester.js-546- } ############################################## eslint-5.16.0~dfsg/lib/testers/rule-tester.js-548- if (Object.prototype.hasOwnProperty.call(error, "endColumn")) { eslint-5.16.0~dfsg/lib/testers/rule-tester.js:549: assert.strictEqual(message.endColumn, error.endColumn, `Error endColumn should be ${error.endColumn}`); eslint-5.16.0~dfsg/lib/testers/rule-tester.js-550- } ############################################## eslint-5.16.0~dfsg/lib/testers/rule-tester.js-553- // Message was an unexpected type eslint-5.16.0~dfsg/lib/testers/rule-tester.js:554: assert.fail(`Error should be a string, object, or RegExp, but found (${util.inspect(message)})`); eslint-5.16.0~dfsg/lib/testers/rule-tester.js-555- } ############################################## eslint-5.16.0~dfsg/lib/util/apply-disable-directives.js-91- message: directive.ruleId eslint-5.16.0~dfsg/lib/util/apply-disable-directives.js:92: ? `Unused eslint-disable directive (no problems were reported from '${directive.ruleId}').` eslint-5.16.0~dfsg/lib/util/apply-disable-directives.js-93- : "Unused eslint-disable directive (no problems were reported).", ############################################## eslint-5.16.0~dfsg/lib/util/apply-disable-directives.js-145- default: eslint-5.16.0~dfsg/lib/util/apply-disable-directives.js:146: throw new TypeError(`Unrecognized directive type '${directive.type}'`); eslint-5.16.0~dfsg/lib/util/apply-disable-directives.js-147- } ############################################## eslint-5.16.0~dfsg/lib/util/ast-utils.js-899- * a[tag`b`] // => null eslint-5.16.0~dfsg/lib/util/ast-utils.js:900: * a[`${b}`] // => null eslint-5.16.0~dfsg/lib/util/ast-utils.js-901- * ############################################## eslint-5.16.0~dfsg/lib/util/ast-utils.js-909- * let a = {[tag`b`]: 1} // => null eslint-5.16.0~dfsg/lib/util/ast-utils.js:910: * let a = {[`${b}`]: 1} // => null eslint-5.16.0~dfsg/lib/util/ast-utils.js-911- * ############################################## eslint-5.16.0~dfsg/lib/util/ast-utils.js-1092- if (node.id) { eslint-5.16.0~dfsg/lib/util/ast-utils.js:1093: tokens.push(`'${node.id.name}'`); eslint-5.16.0~dfsg/lib/util/ast-utils.js-1094- } else { ############################################## eslint-5.16.0~dfsg/lib/util/ast-utils.js-1097- if (name) { eslint-5.16.0~dfsg/lib/util/ast-utils.js:1098: tokens.push(`'${name}'`); eslint-5.16.0~dfsg/lib/util/ast-utils.js-1099- } ############################################## eslint-5.16.0~dfsg/lib/util/config-comment-parser.js-95- try { eslint-5.16.0~dfsg/lib/util/config-comment-parser.js:96: items = JSON.parse(`{${normalizedString}}`); eslint-5.16.0~dfsg/lib/util/config-comment-parser.js-97- } catch (ex) { ############################################## eslint-5.16.0~dfsg/lib/util/config-comment-parser.js-105- severity: 2, eslint-5.16.0~dfsg/lib/util/config-comment-parser.js:106: message: `Failed to parse JSON from '${normalizedString}': ${ex.message}`, eslint-5.16.0~dfsg/lib/util/config-comment-parser.js-107- line: location.start.line, ############################################## eslint-5.16.0~dfsg/lib/util/glob-utils.js-59- if (extensions.length === 1) { eslint-5.16.0~dfsg/lib/util/glob-utils.js:60: suffix += `/*.${extensions[0]}`; eslint-5.16.0~dfsg/lib/util/glob-utils.js-61- } else { eslint-5.16.0~dfsg/lib/util/glob-utils.js:62: suffix += `/*.{${extensions.join(",")}}`; eslint-5.16.0~dfsg/lib/util/glob-utils.js-63- } ############################################## eslint-5.16.0~dfsg/lib/util/glob-utils.js-96- constructor(pattern) { eslint-5.16.0~dfsg/lib/util/glob-utils.js:97: super(`No files matching '${pattern}' were found.`); eslint-5.16.0~dfsg/lib/util/glob-utils.js-98- ############################################## eslint-5.16.0~dfsg/lib/util/glob-utils.js-113- constructor(pattern) { eslint-5.16.0~dfsg/lib/util/glob-utils.js:114: super(`All files matched by '${pattern}' are ignored.`); eslint-5.16.0~dfsg/lib/util/glob-utils.js-115- this.messageTemplate = "all-files-ignored"; ############################################## eslint-5.16.0~dfsg/lib/util/glob-utils.js-271- default: eslint-5.16.0~dfsg/lib/util/glob-utils.js:272: throw new Error(`Unexpected file behavior for ${pathDescriptor.filename}`); eslint-5.16.0~dfsg/lib/util/glob-utils.js-273- } ############################################## eslint-5.16.0~dfsg/lib/util/ignored-paths.js-91- ? (str => str) eslint-5.16.0~dfsg/lib/util/ignored-paths.js:92: : ((seps, str) => str.replace(seps, "/")).bind(null, new RegExp(`\\${path.sep}`, "gu")); eslint-5.16.0~dfsg/lib/util/ignored-paths.js-93-/* eslint-enable valid-jsdoc */ ############################################## eslint-5.16.0~dfsg/lib/util/ignored-paths.js-109- if (globWithoutPrefix.startsWith("/")) { eslint-5.16.0~dfsg/lib/util/ignored-paths.js:110: return `${prefix}/${normalizePathSeps(relativePathToOldBaseDir)}${globWithoutPrefix}`; eslint-5.16.0~dfsg/lib/util/ignored-paths.js-111- } ############################################## eslint-5.16.0~dfsg/lib/util/ignored-paths.js-173- } catch (e) { eslint-5.16.0~dfsg/lib/util/ignored-paths.js:174: e.message = `Cannot read ignore file: ${options.ignorePath}\nError: ${e.message}`; eslint-5.16.0~dfsg/lib/util/ignored-paths.js-175- throw e; ############################################## eslint-5.16.0~dfsg/lib/util/ignored-paths.js-177- } else { eslint-5.16.0~dfsg/lib/util/ignored-paths.js:178: debug(`Looking for ignore file in ${options.cwd}`); eslint-5.16.0~dfsg/lib/util/ignored-paths.js-179- ignorePath = findIgnoreFile(options.cwd); ############################################## eslint-5.16.0~dfsg/lib/util/ignored-paths.js-182- fs.statSync(ignorePath); eslint-5.16.0~dfsg/lib/util/ignored-paths.js:183: debug(`Loaded ignore file ${ignorePath}`); eslint-5.16.0~dfsg/lib/util/ignored-paths.js-184- } catch (e) { ############################################## eslint-5.16.0~dfsg/lib/util/ignored-paths.js-189- if (ignorePath) { eslint-5.16.0~dfsg/lib/util/ignored-paths.js:190: debug(`Adding ${ignorePath}`); eslint-5.16.0~dfsg/lib/util/ignored-paths.js-191- this.addIgnoreFile(this.ig.custom, ignorePath); ############################################## eslint-5.16.0~dfsg/lib/util/module-resolver.js-71- if (!result) { eslint-5.16.0~dfsg/lib/util/module-resolver.js:72: throw new Error(`Cannot find module '${name}'`); eslint-5.16.0~dfsg/lib/util/module-resolver.js-73- } ############################################## eslint-5.16.0~dfsg/lib/util/naming.js-42- */ eslint-5.16.0~dfsg/lib/util/naming.js:43: const scopedPackageShortcutRegex = new RegExp(`^(@[^/]+)(?:/(?:${prefix})?)?$`, "u"), eslint-5.16.0~dfsg/lib/util/naming.js:44: scopedPackageNameRegex = new RegExp(`^${prefix}(-|$)`, "u"); eslint-5.16.0~dfsg/lib/util/naming.js-45- eslint-5.16.0~dfsg/lib/util/naming.js-46- if (scopedPackageShortcutRegex.test(normalizedName)) { eslint-5.16.0~dfsg/lib/util/naming.js:47: normalizedName = normalizedName.replace(scopedPackageShortcutRegex, `$1/${prefix}`); eslint-5.16.0~dfsg/lib/util/naming.js-48- } else if (!scopedPackageNameRegex.test(normalizedName.split("/")[1])) { ############################################## eslint-5.16.0~dfsg/lib/util/naming.js-53- */ eslint-5.16.0~dfsg/lib/util/naming.js:54: normalizedName = normalizedName.replace(/^@([^/]+)\/(.*)$/u, `@$1/${prefix}-$2`); eslint-5.16.0~dfsg/lib/util/naming.js-55- } eslint-5.16.0~dfsg/lib/util/naming.js:56: } else if (normalizedName.indexOf(`${prefix}-`) !== 0) { eslint-5.16.0~dfsg/lib/util/naming.js:57: normalizedName = `${prefix}-${normalizedName}`; eslint-5.16.0~dfsg/lib/util/naming.js-58- } ############################################## eslint-5.16.0~dfsg/lib/util/naming.js-70- if (fullname[0] === "@") { eslint-5.16.0~dfsg/lib/util/naming.js:71: let matchResult = new RegExp(`^(@[^/]+)/${prefix}$`, "u").exec(fullname); eslint-5.16.0~dfsg/lib/util/naming.js-72- ############################################## eslint-5.16.0~dfsg/lib/util/naming.js-76- eslint-5.16.0~dfsg/lib/util/naming.js:77: matchResult = new RegExp(`^(@[^/]+)/${prefix}-(.+)$`, "u").exec(fullname); eslint-5.16.0~dfsg/lib/util/naming.js-78- if (matchResult) { eslint-5.16.0~dfsg/lib/util/naming.js:79: return `${matchResult[1]}/${matchResult[2]}`; eslint-5.16.0~dfsg/lib/util/naming.js-80- } eslint-5.16.0~dfsg/lib/util/naming.js:81: } else if (fullname.startsWith(`${prefix}-`)) { eslint-5.16.0~dfsg/lib/util/naming.js-82- return fullname.slice(prefix.length + 1); ############################################## eslint-5.16.0~dfsg/lib/util/node-event-generator.js-162- if (typeof err.offset === "number") { eslint-5.16.0~dfsg/lib/util/node-event-generator.js:163: throw new SyntaxError(`Syntax error in selector "${rawSelector}" at position ${err.offset}: ${err.message}`); eslint-5.16.0~dfsg/lib/util/node-event-generator.js-164- } ############################################## eslint-5.16.0~dfsg/lib/util/path-utils.js-56- if (!path.isAbsolute(baseDir)) { eslint-5.16.0~dfsg/lib/util/path-utils.js:57: throw new Error(`baseDir should be an absolute path: ${baseDir}`); eslint-5.16.0~dfsg/lib/util/path-utils.js-58- } ############################################## eslint-5.16.0~dfsg/lib/util/report-translator.js-260- if (!messages || !Object.prototype.hasOwnProperty.call(messages, id)) { eslint-5.16.0~dfsg/lib/util/report-translator.js:261: throw new TypeError(`context.report() called with a messageId of '${id}' which is not present in the 'messages' config: ${JSON.stringify(messages, null, 2)}`); eslint-5.16.0~dfsg/lib/util/report-translator.js-262- } ############################################## eslint-5.16.0~dfsg/lib/util/source-code-utils.js-37- eslint-5.16.0~dfsg/lib/util/source-code-utils.js:38: throw new Error(`(${filename}:${msg.line}:${msg.column}) ${msg.message}`); eslint-5.16.0~dfsg/lib/util/source-code-utils.js-39- } ############################################## eslint-5.16.0~dfsg/lib/util/source-code-utils.js-86- if (filenames.length === 0) { eslint-5.16.0~dfsg/lib/util/source-code-utils.js:87: debug(`Did not find any files matching pattern(s): ${globPatternsList}`); eslint-5.16.0~dfsg/lib/util/source-code-utils.js-88- } ############################################## eslint-5.16.0~dfsg/lib/util/source-code.js-439- if (index < 0 || index > this.text.length) { eslint-5.16.0~dfsg/lib/util/source-code.js:440: throw new RangeError(`Index out of range (requested index ${index}, but source text has length ${this.text.length}).`); eslint-5.16.0~dfsg/lib/util/source-code.js-441- } ############################################## eslint-5.16.0~dfsg/lib/util/source-code.js-476- if (loc.line <= 0) { eslint-5.16.0~dfsg/lib/util/source-code.js:477: throw new RangeError(`Line number out of range (line ${loc.line} requested). Line numbers should be 1-based.`); eslint-5.16.0~dfsg/lib/util/source-code.js-478- } ############################################## eslint-5.16.0~dfsg/lib/util/source-code.js-480- if (loc.line > this.lineStartIndices.length) { eslint-5.16.0~dfsg/lib/util/source-code.js:481: throw new RangeError(`Line number out of range (line ${loc.line} requested, but only ${this.lineStartIndices.length} lines present).`); eslint-5.16.0~dfsg/lib/util/source-code.js-482- } ############################################## eslint-5.16.0~dfsg/lib/util/source-code.js-499- ) { eslint-5.16.0~dfsg/lib/util/source-code.js:500: throw new RangeError(`Column number out of range (column ${loc.column} requested, but the length of line ${loc.line} is ${lineEndIndex - lineStartIndex}).`); eslint-5.16.0~dfsg/lib/util/source-code.js-501- } ############################################## eslint-5.16.0~dfsg/lib/util/timing.js-66- rows.forEach(row => { eslint-5.16.0~dfsg/lib/util/timing.js:67: row.push(`${(row[1] * 100 / total).toFixed(1)}%`); eslint-5.16.0~dfsg/lib/util/timing.js-68- row[1] = row[1].toFixed(3); ############################################## eslint-5.16.0~dfsg/lib/util/xml-escape.js-17-module.exports = function(s) { eslint-5.16.0~dfsg/lib/util/xml-escape.js:18: return (`${s}`).replace(/[<>&"'\x00-\x1F\x7F\u0080-\uFFFF]/gu, c => { // eslint-disable-line no-control-regex eslint-5.16.0~dfsg/lib/util/xml-escape.js-19- switch (c) { ############################################## eslint-5.16.0~dfsg/lib/util/xml-escape.js-30- default: eslint-5.16.0~dfsg/lib/util/xml-escape.js:31: return `&#${c.charCodeAt(0)};`; eslint-5.16.0~dfsg/lib/util/xml-escape.js-32- } ############################################## eslint-5.16.0~dfsg/lib/util/npm-utils.js-60- eslint-5.16.0~dfsg/lib/util/npm-utils.js:61: log.error(`Could not execute npm. Please install the following package${pluralS} with a package manager of your choice: ${packageList.join(", ")}`); eslint-5.16.0~dfsg/lib/util/npm-utils.js-62- } ############################################## eslint-5.16.0~dfsg/lib/util/lint-result-cache.js-33- if (!configHashCache.has(config)) { eslint-5.16.0~dfsg/lib/util/lint-result-cache.js:34: configHashCache.set(config, hash(`${pkg.version}_${stringify(config)}`)); eslint-5.16.0~dfsg/lib/util/lint-result-cache.js-35- } ############################################## eslint-5.16.0~dfsg/templates/blogpost.md.ejs-12-<% eslint-5.16.0~dfsg/templates/blogpost.md.ejs:13:const RULE_REGEX = new RegExp(`\`?\\b(${ruleList.join("|")})\\b\`?`, "g"); eslint-5.16.0~dfsg/templates/blogpost.md.ejs-14- ############################################## eslint-5.16.0~dfsg/tests/bin/eslint.js-10-const assert = require("chai").assert; eslint-5.16.0~dfsg/tests/bin/eslint.js:11:const EXECUTABLE_PATH = require("path").resolve(`${__dirname}/../../bin/eslint.js`); eslint-5.16.0~dfsg/tests/bin/eslint.js-12- ############################################## eslint-5.16.0~dfsg/tests/bin/eslint.js-29- return awaitExit(exitingProcess).then(exitCode => { eslint-5.16.0~dfsg/tests/bin/eslint.js:30: assert.strictEqual(exitCode, expectedExitCode, `Expected an exit code of ${expectedExitCode} but got ${exitCode}.`); eslint-5.16.0~dfsg/tests/bin/eslint.js-31- }); ############################################## eslint-5.16.0~dfsg/tests/bin/eslint.js-175- describe("automatically fixing files", () => { eslint-5.16.0~dfsg/tests/bin/eslint.js:176: const fixturesPath = `${__dirname}/../fixtures/autofix-integration`; eslint-5.16.0~dfsg/tests/bin/eslint.js:177: const tempFilePath = `${fixturesPath}/temp.js`; eslint-5.16.0~dfsg/tests/bin/eslint.js:178: const startingText = fs.readFileSync(`${fixturesPath}/left-pad.js`).toString(); eslint-5.16.0~dfsg/tests/bin/eslint.js:179: const expectedFixedText = fs.readFileSync(`${fixturesPath}/left-pad-expected.js`).toString(); eslint-5.16.0~dfsg/tests/bin/eslint.js:180: const expectedFixedTextQuiet = fs.readFileSync(`${fixturesPath}/left-pad-expected-quiet.js`).toString(); eslint-5.16.0~dfsg/tests/bin/eslint.js-181- ############################################## eslint-5.16.0~dfsg/tests/bin/eslint.js-352- it("prints the error message pointing to line of code", () => { eslint-5.16.0~dfsg/tests/bin/eslint.js:353: const invalidConfig = `${__dirname}/../fixtures/bin/.eslintrc.yml`; eslint-5.16.0~dfsg/tests/bin/eslint.js-354- const child = runESLint(["--no-ignore", invalidConfig]); ############################################## eslint-5.16.0~dfsg/tests/fixtures/fixture-parser.js-14- eslint-5.16.0~dfsg/tests/fixtures/fixture-parser.js:15: return path.resolve(__dirname, "parsers", parts.join(path.sep), `${name}.js`); eslint-5.16.0~dfsg/tests/fixtures/fixture-parser.js-16-}; ############################################## eslint-5.16.0~dfsg/tests/lib/cli-engine.js-112- new CLIEngine({ ignorePath: fixtureDir }); eslint-5.16.0~dfsg/tests/lib/cli-engine.js:113: }, `Error: Could not load file ${fixtureDir}\nError: ${fixtureDir} is not a file`); eslint-5.16.0~dfsg/tests/lib/cli-engine.js-114- }); ############################################## eslint-5.16.0~dfsg/tests/lib/cli-engine.js-907- engine.executeOnFiles(["fixtures/files/*"]); eslint-5.16.0~dfsg/tests/lib/cli-engine.js:908: }, `ENOENT: no such file or directory, open '${getFixturePath("..", "fixtures", "files", "*")}`); eslint-5.16.0~dfsg/tests/lib/cli-engine.js-909- }); ############################################## eslint-5.16.0~dfsg/tests/lib/cli-engine.js-1221- engine.executeOnFiles([getFixturePath("./")]); eslint-5.16.0~dfsg/tests/lib/cli-engine.js:1222: }, `All files matched by '${getFixturePath("./")}' are ignored.`); eslint-5.16.0~dfsg/tests/lib/cli-engine.js-1223- }); ############################################## eslint-5.16.0~dfsg/tests/lib/cli-engine.js-1600- eslint-5.16.0~dfsg/tests/lib/cli-engine.js:1601: const report = engine.executeOnFiles([path.resolve(fixtureDir, `${fixtureDir}/fixmode`)]); eslint-5.16.0~dfsg/tests/lib/cli-engine.js-1602- ############################################## eslint-5.16.0~dfsg/tests/lib/cli-engine.js-1684- // Do initial lint run and populate the cache file eslint-5.16.0~dfsg/tests/lib/cli-engine.js:1685: engine.executeOnFiles([path.resolve(fixtureDir, `${fixtureDir}/fixmode`)]); eslint-5.16.0~dfsg/tests/lib/cli-engine.js-1686- ############################################## eslint-5.16.0~dfsg/tests/lib/cli-engine.js-1688- eslint-5.16.0~dfsg/tests/lib/cli-engine.js:1689: const report = engine.executeOnFiles([path.resolve(fixtureDir, `${fixtureDir}/fixmode`)]); eslint-5.16.0~dfsg/tests/lib/cli-engine.js-1690- ############################################## eslint-5.16.0~dfsg/tests/lib/cli-engine.js-1707- eslint-5.16.0~dfsg/tests/lib/cli-engine.js:1708: const report = engine.executeOnFiles([fs.realpathSync(`${fixtureDir}/config-hierarchy/broken/console-wrong-quotes.js`)]); eslint-5.16.0~dfsg/tests/lib/cli-engine.js-1709- ############################################## eslint-5.16.0~dfsg/tests/lib/cli-engine.js-1722- eslint-5.16.0~dfsg/tests/lib/cli-engine.js:1723: const report = engine.executeOnFiles([fs.realpathSync(`${fixtureDir}/config-hierarchy/broken/console-wrong-quotes-node.js`)]); eslint-5.16.0~dfsg/tests/lib/cli-engine.js-1724- ############################################## eslint-5.16.0~dfsg/tests/lib/cli-engine.js-1735- eslint-5.16.0~dfsg/tests/lib/cli-engine.js:1736: const report = engine.executeOnFiles([fs.realpathSync(`${fixtureDir}/config-hierarchy/broken/process-exit.js`)]); eslint-5.16.0~dfsg/tests/lib/cli-engine.js-1737- ############################################## eslint-5.16.0~dfsg/tests/lib/cli-engine.js-1748- eslint-5.16.0~dfsg/tests/lib/cli-engine.js:1749: const report = engine.executeOnFiles([fs.realpathSync(`${fixtureDir}/config-hierarchy/broken/process-exit.js`)]); eslint-5.16.0~dfsg/tests/lib/cli-engine.js-1750- ############################################## eslint-5.16.0~dfsg/tests/lib/cli-engine.js-1761- eslint-5.16.0~dfsg/tests/lib/cli-engine.js:1762: const report = engine.executeOnFiles([fs.realpathSync(`${fixtureDir}/config-hierarchy/broken/console-wrong-quotes.js`)]); eslint-5.16.0~dfsg/tests/lib/cli-engine.js-1763- ############################################## eslint-5.16.0~dfsg/tests/lib/cli-engine.js-1776- eslint-5.16.0~dfsg/tests/lib/cli-engine.js:1777: const report = engine.executeOnFiles([fs.realpathSync(`${fixtureDir}/config-hierarchy/broken/subbroken/console-wrong-quotes.js`)]); eslint-5.16.0~dfsg/tests/lib/cli-engine.js-1778- ############################################## eslint-5.16.0~dfsg/tests/lib/cli-engine.js-1791- eslint-5.16.0~dfsg/tests/lib/cli-engine.js:1792: const report = engine.executeOnFiles([fs.realpathSync(`${fixtureDir}/config-hierarchy/broken/subbroken/subsubbroken/console-wrong-quotes.js`)]); eslint-5.16.0~dfsg/tests/lib/cli-engine.js-1793- ############################################## eslint-5.16.0~dfsg/tests/lib/cli-engine.js-1806- eslint-5.16.0~dfsg/tests/lib/cli-engine.js:1807: const report = engine.executeOnFiles([fs.realpathSync(`${fixtureDir}/config-hierarchy/packagejson/subdir/wrong-quotes.js`)]); eslint-5.16.0~dfsg/tests/lib/cli-engine.js-1808- ############################################## eslint-5.16.0~dfsg/tests/lib/cli-engine.js-1821- eslint-5.16.0~dfsg/tests/lib/cli-engine.js:1822: const report = engine.executeOnFiles([fs.realpathSync(`${fixtureDir}/config-hierarchy/packagejson/subdir/subsubdir/wrong-quotes.js`)]); eslint-5.16.0~dfsg/tests/lib/cli-engine.js-1823- ############################################## eslint-5.16.0~dfsg/tests/lib/cli-engine.js-1834- eslint-5.16.0~dfsg/tests/lib/cli-engine.js:1835: const report = engine.executeOnFiles([fs.realpathSync(`${fixtureDir}/config-hierarchy/packagejson/subdir/subsubdir/subsubsubdir/wrong-quotes.js`)]); eslint-5.16.0~dfsg/tests/lib/cli-engine.js-1836- ############################################## eslint-5.16.0~dfsg/tests/lib/cli-engine.js-1849- eslint-5.16.0~dfsg/tests/lib/cli-engine.js:1850: const report = engine.executeOnFiles([fs.realpathSync(`${fixtureDir}/config-hierarchy/packagejson/wrong-quotes.js`)]); eslint-5.16.0~dfsg/tests/lib/cli-engine.js-1851- ############################################## eslint-5.16.0~dfsg/tests/lib/cli-engine.js-1862- cwd: path.join(fixtureDir, ".."), eslint-5.16.0~dfsg/tests/lib/cli-engine.js:1863: configFile: `${fixtureDir}/config-hierarchy/broken/add-conf.yaml` eslint-5.16.0~dfsg/tests/lib/cli-engine.js-1864- }); eslint-5.16.0~dfsg/tests/lib/cli-engine.js-1865- eslint-5.16.0~dfsg/tests/lib/cli-engine.js:1866: const report = engine.executeOnFiles([fs.realpathSync(`${fixtureDir}/config-hierarchy/broken/console-wrong-quotes.js`)]); eslint-5.16.0~dfsg/tests/lib/cli-engine.js-1867- ############################################## eslint-5.16.0~dfsg/tests/lib/cli-engine.js-1880- cwd: path.join(fixtureDir, ".."), eslint-5.16.0~dfsg/tests/lib/cli-engine.js:1881: configFile: `${fixtureDir}/config-hierarchy/broken/override-conf.yaml` eslint-5.16.0~dfsg/tests/lib/cli-engine.js-1882- }); eslint-5.16.0~dfsg/tests/lib/cli-engine.js-1883- eslint-5.16.0~dfsg/tests/lib/cli-engine.js:1884: const report = engine.executeOnFiles([fs.realpathSync(`${fixtureDir}/config-hierarchy/broken/console-wrong-quotes.js`)]); eslint-5.16.0~dfsg/tests/lib/cli-engine.js-1885- ############################################## eslint-5.16.0~dfsg/tests/lib/cli-engine.js-1894- cwd: path.join(fixtureDir, ".."), eslint-5.16.0~dfsg/tests/lib/cli-engine.js:1895: configFile: `${fixtureDir}/config-hierarchy/broken/add-conf.yaml` eslint-5.16.0~dfsg/tests/lib/cli-engine.js-1896- }); eslint-5.16.0~dfsg/tests/lib/cli-engine.js-1897- eslint-5.16.0~dfsg/tests/lib/cli-engine.js:1898: const report = engine.executeOnFiles([fs.realpathSync(`${fixtureDir}/config-hierarchy/broken/subbroken/console-wrong-quotes.js`)]); eslint-5.16.0~dfsg/tests/lib/cli-engine.js-1899- ############################################## eslint-5.16.0~dfsg/tests/lib/cli-engine.js-1915- eslint-5.16.0~dfsg/tests/lib/cli-engine.js:1916: const report = engine.executeOnFiles([fs.realpathSync(`${fixtureDir}/config-hierarchy/broken/subbroken/console-wrong-quotes.js`)]); eslint-5.16.0~dfsg/tests/lib/cli-engine.js-1917- ############################################## eslint-5.16.0~dfsg/tests/lib/cli-engine.js-1928- cwd: path.join(fixtureDir, ".."), eslint-5.16.0~dfsg/tests/lib/cli-engine.js:1929: configFile: `${fixtureDir}/config-hierarchy/broken/override-conf.yaml` eslint-5.16.0~dfsg/tests/lib/cli-engine.js-1930- }); eslint-5.16.0~dfsg/tests/lib/cli-engine.js-1931- eslint-5.16.0~dfsg/tests/lib/cli-engine.js:1932: const report = engine.executeOnFiles([fs.realpathSync(`${fixtureDir}/config-hierarchy/broken/console-wrong-quotes.js`)]); eslint-5.16.0~dfsg/tests/lib/cli-engine.js-1933- ############################################## eslint-5.16.0~dfsg/tests/lib/cli-engine.js-1948- eslint-5.16.0~dfsg/tests/lib/cli-engine.js:1949: const report = engine.executeOnFiles([fs.realpathSync(`${fixtureDir}/config-hierarchy/broken/console-wrong-quotes.js`)]); eslint-5.16.0~dfsg/tests/lib/cli-engine.js-1950- ############################################## eslint-5.16.0~dfsg/tests/lib/cli-engine.js-2153- eslint-5.16.0~dfsg/tests/lib/cli-engine.js:2154: assert.isTrue(shell.test("-f", path.resolve(`./tmp/.cacheFileDir/.cache_${hash(process.cwd())}`)), "the cache for eslint was created"); eslint-5.16.0~dfsg/tests/lib/cli-engine.js-2155- ############################################## eslint-5.16.0~dfsg/tests/lib/cli-engine.js-2180- eslint-5.16.0~dfsg/tests/lib/cli-engine.js:2181: assert.isTrue(shell.test("-f", path.resolve(`./tmp/.cacheFileDir/.cache_${hash(process.cwd())}`)), "the cache for eslint was created"); eslint-5.16.0~dfsg/tests/lib/cli-engine.js-2182- ############################################## eslint-5.16.0~dfsg/tests/lib/cli-engine.js-3032- engine.getFormatter(formatterPath); eslint-5.16.0~dfsg/tests/lib/cli-engine.js:3033: }, `There was a problem loading formatter: ${formatterPath}\nError: Cannot find module '${formatterPath}'`); eslint-5.16.0~dfsg/tests/lib/cli-engine.js-3034- }); ############################################## eslint-5.16.0~dfsg/tests/lib/cli-engine.js-3049- engine.getFormatter(formatterPath); eslint-5.16.0~dfsg/tests/lib/cli-engine.js:3050: }, `There was a problem loading formatter: ${formatterPath}\nError: Cannot find module 'this-module-does-not-exist'`); eslint-5.16.0~dfsg/tests/lib/cli-engine.js-3051- }); ############################################## eslint-5.16.0~dfsg/tests/lib/cli-engine.js-3254- eslint-5.16.0~dfsg/tests/lib/cli-engine.js:3255: it(`should correctly resolve ${input} to ${expected}`, () => { eslint-5.16.0~dfsg/tests/lib/cli-engine.js-3256- const engine = new CLIEngine(); ############################################## eslint-5.16.0~dfsg/tests/lib/cli.js-80- before(() => { eslint-5.16.0~dfsg/tests/lib/cli.js:81: fixtureDir = `${os.tmpdir()}/eslint/fixtures`; eslint-5.16.0~dfsg/tests/lib/cli.js-82- sh.mkdir("-p", fixtureDir); ############################################## eslint-5.16.0~dfsg/tests/lib/cli.js-97- const configFile = getFixturePath("configurations", "quotes-error.json"); eslint-5.16.0~dfsg/tests/lib/cli.js:98: const result = cli.execute(`-c ${configFile}`, "var foo = 'bar';"); eslint-5.16.0~dfsg/tests/lib/cli.js-99- ############################################## eslint-5.16.0~dfsg/tests/lib/cli.js-111- const filePath = getFixturePath("files"); eslint-5.16.0~dfsg/tests/lib/cli.js:112: const result = cli.execute(`--ext .js2 ${filePath}`); eslint-5.16.0~dfsg/tests/lib/cli.js-113- ############################################## eslint-5.16.0~dfsg/tests/lib/cli.js-118- const filePath = getFixturePath("files"); eslint-5.16.0~dfsg/tests/lib/cli.js:119: const result = cli.execute(`--blah --another ${filePath}`); eslint-5.16.0~dfsg/tests/lib/cli.js-120- ############################################## eslint-5.16.0~dfsg/tests/lib/cli.js-130- eslint-5.16.0~dfsg/tests/lib/cli.js:131: cli.execute(`--config ${configPath} ${filePath}`); eslint-5.16.0~dfsg/tests/lib/cli.js-132- }); ############################################## eslint-5.16.0~dfsg/tests/lib/cli.js-152- const filePath = getFixturePath("single-quoted.js"); eslint-5.16.0~dfsg/tests/lib/cli.js:153: const code = `--no-ignore --config ${configPath} ${filePath}`; eslint-5.16.0~dfsg/tests/lib/cli.js-154- ############################################## eslint-5.16.0~dfsg/tests/lib/cli.js-164- const filePath = getFixturePath("formatters"); eslint-5.16.0~dfsg/tests/lib/cli.js:165: const code = `--config ${configPath} ${filePath}`; eslint-5.16.0~dfsg/tests/lib/cli.js-166- ############################################## eslint-5.16.0~dfsg/tests/lib/cli.js-176- const filePath = getFixturePath("globals-browser.js"); eslint-5.16.0~dfsg/tests/lib/cli.js:177: const code = `--config ${configPath} ${filePath}`; eslint-5.16.0~dfsg/tests/lib/cli.js-178- ############################################## eslint-5.16.0~dfsg/tests/lib/cli.js-188- const filePath = getFixturePath("globals-node.js"); eslint-5.16.0~dfsg/tests/lib/cli.js:189: const code = `--config ${configPath} ${filePath}`; eslint-5.16.0~dfsg/tests/lib/cli.js-190- ############################################## eslint-5.16.0~dfsg/tests/lib/cli.js-200- const filePath = getFixturePath("globals-nashorn.js"); eslint-5.16.0~dfsg/tests/lib/cli.js:201: const code = `--config ${configPath} ${filePath}`; eslint-5.16.0~dfsg/tests/lib/cli.js-202- ############################################## eslint-5.16.0~dfsg/tests/lib/cli.js-212- const filePath = getFixturePath("globals-webextensions.js"); eslint-5.16.0~dfsg/tests/lib/cli.js:213: const code = `--config ${configPath} ${filePath}`; eslint-5.16.0~dfsg/tests/lib/cli.js-214- ############################################## eslint-5.16.0~dfsg/tests/lib/cli.js-223- const filePath = getFixturePath("passing.js"); eslint-5.16.0~dfsg/tests/lib/cli.js:224: const exit = cli.execute(`-f checkstyle ${filePath}`); eslint-5.16.0~dfsg/tests/lib/cli.js-225- ############################################## eslint-5.16.0~dfsg/tests/lib/cli.js-232- const filePath = getFixturePath("passing.js"); eslint-5.16.0~dfsg/tests/lib/cli.js:233: const exit = cli.execute(`-f fakeformatter ${filePath}`); eslint-5.16.0~dfsg/tests/lib/cli.js-234- ############################################## eslint-5.16.0~dfsg/tests/lib/cli.js-242- const filePath = getFixturePath("passing.js"); eslint-5.16.0~dfsg/tests/lib/cli.js:243: const exit = cli.execute(`-f ${formatterPath} ${filePath}`); eslint-5.16.0~dfsg/tests/lib/cli.js-244- ############################################## eslint-5.16.0~dfsg/tests/lib/cli.js-252- const filePath = getFixturePath("passing.js"); eslint-5.16.0~dfsg/tests/lib/cli.js:253: const exit = cli.execute(`-f ${formatterPath} ${filePath}`); eslint-5.16.0~dfsg/tests/lib/cli.js-254- ############################################## eslint-5.16.0~dfsg/tests/lib/cli.js-261- const filePath = getFixturePath("undef.js"); eslint-5.16.0~dfsg/tests/lib/cli.js:262: const code = `--no-ignore --rule no-undef:2 ${filePath}`; eslint-5.16.0~dfsg/tests/lib/cli.js-263- ############################################## eslint-5.16.0~dfsg/tests/lib/cli.js-272- const filePath = getFixturePath("passing.js"); eslint-5.16.0~dfsg/tests/lib/cli.js:273: const code = `--fix-type suggestion ${filePath}`; eslint-5.16.0~dfsg/tests/lib/cli.js-274- ############################################## eslint-5.16.0~dfsg/tests/lib/cli.js-283- const filePath = getFixturePath("syntax-error.js"); eslint-5.16.0~dfsg/tests/lib/cli.js:284: const exit = cli.execute(`--no-ignore ${filePath}`); eslint-5.16.0~dfsg/tests/lib/cli.js-285- ############################################## eslint-5.16.0~dfsg/tests/lib/cli.js-294- eslint-5.16.0~dfsg/tests/lib/cli.js:295: cli.execute(`--no-ignore --rule semi:2 ${filePath}`); eslint-5.16.0~dfsg/tests/lib/cli.js-296- ############################################## eslint-5.16.0~dfsg/tests/lib/cli.js-300- eslint-5.16.0~dfsg/tests/lib/cli.js:301: cli.execute(`--no-ignore --rule semi:2 ${passingPath}`); eslint-5.16.0~dfsg/tests/lib/cli.js-302- assert.isTrue(log.info.notCalled); ############################################## eslint-5.16.0~dfsg/tests/lib/cli.js-328- assert.throws(() => { eslint-5.16.0~dfsg/tests/lib/cli.js:329: cli.execute(`--ignore-path ${ignorePath} ${filePath}`); eslint-5.16.0~dfsg/tests/lib/cli.js:330: }, `All files matched by '${filePath}' are ignored.`); eslint-5.16.0~dfsg/tests/lib/cli.js-331- }); ############################################## eslint-5.16.0~dfsg/tests/lib/cli.js-338- const filePath = getFixturePath("passing.js"); eslint-5.16.0~dfsg/tests/lib/cli.js:339: const exit = cli.execute(`--ignore-path ${ignorePath} ${filePath}`); eslint-5.16.0~dfsg/tests/lib/cli.js-340- ############################################## eslint-5.16.0~dfsg/tests/lib/cli.js-348- const filePath = getFixturePath("passing.js"); eslint-5.16.0~dfsg/tests/lib/cli.js:349: const exit = cli.execute(`--ignore-path ${ignorePath} --no-ignore ${filePath}`); eslint-5.16.0~dfsg/tests/lib/cli.js-350- ############################################## eslint-5.16.0~dfsg/tests/lib/cli.js-360- const filePath = getFixturePath("cli/passing.js"); eslint-5.16.0~dfsg/tests/lib/cli.js:361: const exit = cli.execute(`--ignore-pattern cli/ ${ignoredFile} ${filePath}`); eslint-5.16.0~dfsg/tests/lib/cli.js-362- ############################################## eslint-5.16.0~dfsg/tests/lib/cli.js-372- eslint-5.16.0~dfsg/tests/lib/cli.js:373: const cmd = ignorePaths.map(ignorePath => `--ignore-pattern ${ignorePath}`).concat(".").join(" "); eslint-5.16.0~dfsg/tests/lib/cli.js-374- ############################################## eslint-5.16.0~dfsg/tests/lib/cli.js-386- const filePath = getFixturePath("shebang.js"); eslint-5.16.0~dfsg/tests/lib/cli.js:387: const exit = cli.execute(`--no-ignore ${filePath}`); eslint-5.16.0~dfsg/tests/lib/cli.js-388- ############################################## eslint-5.16.0~dfsg/tests/lib/cli.js-398- const filePath = getFixturePath("rules", "test", "test-custom-rule.js"); eslint-5.16.0~dfsg/tests/lib/cli.js:399: const code = `--rulesdir ${rulesPath} --config ${configPath} --no-ignore ${filePath}`; eslint-5.16.0~dfsg/tests/lib/cli.js-400- ############################################## eslint-5.16.0~dfsg/tests/lib/cli.js-411- const filePath = getFixturePath("rules", "test", "test-custom-rule.js"); eslint-5.16.0~dfsg/tests/lib/cli.js:412: const code = `--rulesdir ${rulesPath} --config ${configPath} --no-ignore ${filePath}`; eslint-5.16.0~dfsg/tests/lib/cli.js-413- ############################################## eslint-5.16.0~dfsg/tests/lib/cli.js-424- const filePath = getFixturePath("rules", "test-multi-rulesdirs.js"); eslint-5.16.0~dfsg/tests/lib/cli.js:425: const code = `--rulesdir ${rulesPath} --rulesdir ${rulesPath2} --config ${configPath} --no-ignore ${filePath}`; eslint-5.16.0~dfsg/tests/lib/cli.js-426- const exit = cli.execute(code); ############################################## eslint-5.16.0~dfsg/tests/lib/cli.js-443- const filePath = getFixturePath("eslintrc", "quotes.js"); eslint-5.16.0~dfsg/tests/lib/cli.js:444: const exit = cli.execute(`--no-eslintrc --no-ignore ${filePath}`); eslint-5.16.0~dfsg/tests/lib/cli.js-445- ############################################## eslint-5.16.0~dfsg/tests/lib/cli.js-453- const filePath = getFixturePath("eslintrc", "quotes.js"); eslint-5.16.0~dfsg/tests/lib/cli.js:454: const exit = cli.execute(`--no-ignore ${filePath}`); eslint-5.16.0~dfsg/tests/lib/cli.js-455- ############################################## eslint-5.16.0~dfsg/tests/lib/cli.js-467- eslint-5.16.0~dfsg/tests/lib/cli.js:468: cli.execute(`--no-eslintrc --config ./conf/eslint-recommended.js --no-ignore ${files.join(" ")}`); eslint-5.16.0~dfsg/tests/lib/cli.js-469- ############################################## eslint-5.16.0~dfsg/tests/lib/cli.js-476- const filePath = getFixturePath("undef.js"); eslint-5.16.0~dfsg/tests/lib/cli.js:477: const exit = cli.execute(`--global baz,bat --no-ignore --rule no-global-assign:2 ${filePath}`); eslint-5.16.0~dfsg/tests/lib/cli.js-478- ############################################## eslint-5.16.0~dfsg/tests/lib/cli.js-484- const filePath = getFixturePath("undef.js"); eslint-5.16.0~dfsg/tests/lib/cli.js:485: const exit = cli.execute(`--global baz:false,bat:true --no-ignore ${filePath}`); eslint-5.16.0~dfsg/tests/lib/cli.js-486- ############################################## eslint-5.16.0~dfsg/tests/lib/cli.js-492- const filePath = getFixturePath("undef.js"); eslint-5.16.0~dfsg/tests/lib/cli.js:493: const exit = cli.execute(`--global baz --global bat:true --no-ignore ${filePath}`); eslint-5.16.0~dfsg/tests/lib/cli.js-494- ############################################## eslint-5.16.0~dfsg/tests/lib/cli.js-502- const filePath = getFixturePath("single-quoted.js"); eslint-5.16.0~dfsg/tests/lib/cli.js:503: const code = `--no-ignore --rule 'quotes: [2, double]' ${filePath}`; eslint-5.16.0~dfsg/tests/lib/cli.js-504- const exitStatus = cli.execute(code); ############################################## eslint-5.16.0~dfsg/tests/lib/cli.js-513- const filePath = getFixturePath("single-quoted.js"); eslint-5.16.0~dfsg/tests/lib/cli.js:514: const cliArgs = `--no-ignore --quiet -f compact --rule 'quotes: [2, double]' --rule 'no-unused-vars: 1' ${filePath}`; eslint-5.16.0~dfsg/tests/lib/cli.js-515- ############################################## eslint-5.16.0~dfsg/tests/lib/cli.js-527- const filePath = getFixturePath("single-quoted.js"); eslint-5.16.0~dfsg/tests/lib/cli.js:528: const cliArgs = `--quiet -f compact --rule 'quotes: [1, double]' --rule 'no-unused-vars: 1' ${filePath}`; eslint-5.16.0~dfsg/tests/lib/cli.js-529- ############################################## eslint-5.16.0~dfsg/tests/lib/cli.js-543- const filePath = getFixturePath("single-quoted.js"); eslint-5.16.0~dfsg/tests/lib/cli.js:544: const code = `--no-ignore --rule 'quotes: [1, double]' --o tests/output/eslint-output.txt ${filePath}`; eslint-5.16.0~dfsg/tests/lib/cli.js-545- ############################################## eslint-5.16.0~dfsg/tests/lib/cli.js-553- const filePath = getFixturePath("single-quoted.js"); eslint-5.16.0~dfsg/tests/lib/cli.js:554: const code = `--no-ignore --rule 'quotes: [1, double]' --o tests/output ${filePath}`; eslint-5.16.0~dfsg/tests/lib/cli.js-555- ############################################## eslint-5.16.0~dfsg/tests/lib/cli.js-566- const filePath = getFixturePath("single-quoted.js"); eslint-5.16.0~dfsg/tests/lib/cli.js:567: const code = `--no-ignore --rule 'quotes: [1, double]' --o tests/output/eslint-output.txt ${filePath}`; eslint-5.16.0~dfsg/tests/lib/cli.js-568- ############################################## eslint-5.16.0~dfsg/tests/lib/cli.js-583- eslint-5.16.0~dfsg/tests/lib/cli.js:584: verifyCLIEngineOpts(`--no-ignore --plugin ${examplePluginName} foo.js`, { eslint-5.16.0~dfsg/tests/lib/cli.js-585- plugins: [examplePluginName] ############################################## eslint-5.16.0~dfsg/tests/lib/cli.js-593- const filePath = getFixturePath("passing.js"); eslint-5.16.0~dfsg/tests/lib/cli.js:594: const exit = cli.execute(`--no-ignore --parser test111 ${filePath}`); eslint-5.16.0~dfsg/tests/lib/cli.js-595- ############################################## eslint-5.16.0~dfsg/tests/lib/cli.js-600- const filePath = getFixturePath("passing.js"); eslint-5.16.0~dfsg/tests/lib/cli.js:601: const exit = cli.execute(`--no-ignore --parser espree ${filePath}`); eslint-5.16.0~dfsg/tests/lib/cli.js-602- ############################################## eslint-5.16.0~dfsg/tests/lib/cli.js-609- const filePath = getFixturePath("passing.js"); eslint-5.16.0~dfsg/tests/lib/cli.js:610: const exit = cli.execute(`--no-ignore --parser-options test111 ${filePath}`); eslint-5.16.0~dfsg/tests/lib/cli.js-611- ############################################## eslint-5.16.0~dfsg/tests/lib/cli.js-616- const filePath = getFixturePath("passing.js"); eslint-5.16.0~dfsg/tests/lib/cli.js:617: const exit = cli.execute(`--no-ignore --parser-options=ecmaVersion:6 ${filePath}`); eslint-5.16.0~dfsg/tests/lib/cli.js-618- ############################################## eslint-5.16.0~dfsg/tests/lib/cli.js-623- const filePath = getFixturePath("passing-es7.js"); eslint-5.16.0~dfsg/tests/lib/cli.js:624: const exit = cli.execute(`--no-ignore --parser-options=ecmaVersion:6 ${filePath}`); eslint-5.16.0~dfsg/tests/lib/cli.js-625- ############################################## eslint-5.16.0~dfsg/tests/lib/cli.js-630- const filePath = getFixturePath("passing-es7.js"); eslint-5.16.0~dfsg/tests/lib/cli.js:631: const exit = cli.execute(`--no-ignore --parser-options=ecmaVersion:7 ${filePath}`); eslint-5.16.0~dfsg/tests/lib/cli.js-632- ############################################## eslint-5.16.0~dfsg/tests/lib/cli.js-638- const filePath = getFixturePath("passing-es7.js"); eslint-5.16.0~dfsg/tests/lib/cli.js:639: const exit = cli.execute(`--no-ignore --config ${configPath} --parser-options=ecmaVersion:7 ${filePath}`); eslint-5.16.0~dfsg/tests/lib/cli.js-640- ############################################## eslint-5.16.0~dfsg/tests/lib/cli.js-647- const filePath = getFixturePath("max-warnings"); eslint-5.16.0~dfsg/tests/lib/cli.js:648: const exitCode = cli.execute(`--no-ignore --max-warnings 10 ${filePath}`); eslint-5.16.0~dfsg/tests/lib/cli.js-649- ############################################## eslint-5.16.0~dfsg/tests/lib/cli.js-654- const filePath = getFixturePath("max-warnings"); eslint-5.16.0~dfsg/tests/lib/cli.js:655: const exitCode = cli.execute(`--no-ignore --max-warnings 5 ${filePath}`); eslint-5.16.0~dfsg/tests/lib/cli.js-656- ############################################## eslint-5.16.0~dfsg/tests/lib/cli.js-663- const filePath = getFixturePath("max-warnings"); eslint-5.16.0~dfsg/tests/lib/cli.js:664: const exitCode = cli.execute(`--no-ignore --max-warnings 6 ${filePath}`); eslint-5.16.0~dfsg/tests/lib/cli.js-665- ############################################## eslint-5.16.0~dfsg/tests/lib/cli.js-1067- eslint-5.16.0~dfsg/tests/lib/cli.js:1068: const exitCode = cli.execute(`--print-config ${filePath}`); eslint-5.16.0~dfsg/tests/lib/cli.js-1069- ############################################## eslint-5.16.0~dfsg/tests/lib/cli.js-1077- eslint-5.16.0~dfsg/tests/lib/cli.js:1078: const exitCode = cli.execute(`--print-config ${filePath1} ${filePath2}`); eslint-5.16.0~dfsg/tests/lib/cli.js-1079- ############################################## eslint-5.16.0~dfsg/tests/lib/config.js-135- before(() => { eslint-5.16.0~dfsg/tests/lib/config.js:136: fixtureDir = `${os.tmpdir()}/eslint/fixtures`; eslint-5.16.0~dfsg/tests/lib/config.js-137- mkdir("-p", fixtureDir); ############################################## eslint-5.16.0~dfsg/tests/lib/config.js-1396- warning.message, eslint-5.16.0~dfsg/tests/lib/config.js:1397: `The 'ecmaFeatures' config file property is deprecated, and has no effect. (found in "tests${path.sep}fixtures${path.sep}config-file${path.sep}ecma-features${path.sep}.eslintrc.yml")` eslint-5.16.0~dfsg/tests/lib/config.js-1398- ); ############################################## eslint-5.16.0~dfsg/tests/lib/config.js-1414- warning.message, eslint-5.16.0~dfsg/tests/lib/config.js:1415: `The 'parserOptions.ecmaFeatures.experimentalObjectRestSpread' option is deprecated. Use 'parserOptions.ecmaVersion' instead. (found in "tests${path.sep}fixtures${path.sep}config-file${path.sep}experimental-object-rest-spread${path.sep}basic${path.sep}.eslintrc.yml")` eslint-5.16.0~dfsg/tests/lib/config.js-1416- ); ############################################## eslint-5.16.0~dfsg/tests/lib/config.js-1432- warning.message, eslint-5.16.0~dfsg/tests/lib/config.js:1433: `The 'parserOptions.ecmaFeatures.experimentalObjectRestSpread' option is deprecated. Use 'parserOptions.ecmaVersion' instead. (found in "tests${path.sep}fixtures${path.sep}config-file${path.sep}experimental-object-rest-spread${path.sep}subdir${path.sep}.eslintrc.yml")` eslint-5.16.0~dfsg/tests/lib/config.js-1434- ); ############################################## eslint-5.16.0~dfsg/tests/lib/config.js-1450- warning.message, eslint-5.16.0~dfsg/tests/lib/config.js:1451: `The 'parserOptions.ecmaFeatures.experimentalObjectRestSpread' option is deprecated. Use 'parserOptions.ecmaVersion' instead. (found in "tests${path.sep}fixtures${path.sep}config-file${path.sep}experimental-object-rest-spread${path.sep}extends${path.sep}common.yml")` eslint-5.16.0~dfsg/tests/lib/config.js-1452- ); ############################################## eslint-5.16.0~dfsg/tests/lib/config/config-file.js-81- tmpFilePath = path.join(tmpFileDir, filename), eslint-5.16.0~dfsg/tests/lib/config/config-file.js:82: tmpFileContents = `module.exports = ${JSON.stringify(config)}`; eslint-5.16.0~dfsg/tests/lib/config/config-file.js-83- ############################################## eslint-5.16.0~dfsg/tests/lib/config/config-file.js-126- eslint-5.16.0~dfsg/tests/lib/config/config-file.js:127: throw new Error(`Cannot find module '${name}'`); eslint-5.16.0~dfsg/tests/lib/config/config-file.js-128- } ############################################## eslint-5.16.0~dfsg/tests/lib/config/config-file.js-1027- } catch (err) { eslint-5.16.0~dfsg/tests/lib/config/config-file.js:1028: assert.include(err.message, `ESLint configuration in ${configFilePath} is invalid`); eslint-5.16.0~dfsg/tests/lib/config/config-file.js-1029- return; ############################################## eslint-5.16.0~dfsg/tests/lib/config/config-file.js-1050- ], (input, expected) => { eslint-5.16.0~dfsg/tests/lib/config/config-file.js:1051: it(`should return ${expected} when passed ${input}`, () => { eslint-5.16.0~dfsg/tests/lib/config/config-file.js-1052- ############################################## eslint-5.16.0~dfsg/tests/lib/config/config-file.js-1088- ], (input, expected, relativeTo) => { eslint-5.16.0~dfsg/tests/lib/config/config-file.js:1089: it(`should return ${expected} when passed ${input}`, () => { eslint-5.16.0~dfsg/tests/lib/config/config-file.js-1090- ############################################## eslint-5.16.0~dfsg/tests/lib/config/config-file.js-1113- ], (input, expected, relativeTo) => { eslint-5.16.0~dfsg/tests/lib/config/config-file.js:1114: it(`should return ${expected} when passed ${input}`, () => { eslint-5.16.0~dfsg/tests/lib/config/config-file.js-1115- ############################################## eslint-5.16.0~dfsg/tests/lib/config/config-file.js-1208- ], (input, expected) => { eslint-5.16.0~dfsg/tests/lib/config/config-file.js:1209: it(`should return ${expected} when passed ${input}`, () => { eslint-5.16.0~dfsg/tests/lib/config/config-file.js-1210- const result = ConfigFile.getFilenameForDirectory(input); ############################################## eslint-5.16.0~dfsg/tests/lib/config/config-file.js-1247- eslint-5.16.0~dfsg/tests/lib/config/config-file.js:1248: it(`should write a file through fs when a ${fileType} path is passed`, () => { eslint-5.16.0~dfsg/tests/lib/config/config-file.js-1249- const fakeFS = leche.fake(fs); ############################################## eslint-5.16.0~dfsg/tests/lib/config/config-initializer.js-51- if (localESLintVersion) { eslint-5.16.0~dfsg/tests/lib/config/config-initializer.js:52: return `local-eslint-${localESLintVersion}`; eslint-5.16.0~dfsg/tests/lib/config/config-initializer.js-53- } ############################################## eslint-5.16.0~dfsg/tests/lib/config/config-initializer.js-78- before(() => { eslint-5.16.0~dfsg/tests/lib/config/config-initializer.js:79: fixtureDir = `${os.tmpdir()}/eslint/fixtures/config-initializer`; eslint-5.16.0~dfsg/tests/lib/config/config-initializer.js-80- sh.mkdir("-p", fixtureDir); ############################################## eslint-5.16.0~dfsg/tests/lib/config/config-ops.js-579- for (const key of EXPECTED_RESULTS.keys()) { eslint-5.16.0~dfsg/tests/lib/config/config-ops.js:580: it(`returns ${util.inspect(EXPECTED_RESULTS.get(key))} for ${util.inspect(key)}`, () => { eslint-5.16.0~dfsg/tests/lib/config/config-ops.js-581- assert.strictEqual(ConfigOps.getRuleSeverity(key), EXPECTED_RESULTS.get(key)); ############################################## eslint-5.16.0~dfsg/tests/lib/config/config-ops.js-745- eslint-5.16.0~dfsg/tests/lib/config/config-ops.js:746: it(`should return ${expected}when passed ${input}`, () => { eslint-5.16.0~dfsg/tests/lib/config/config-ops.js-747- const result = ConfigOps.isErrorSeverity(input); ############################################## eslint-5.16.0~dfsg/tests/lib/config/config-ops.js-819- function match(filePath, patterns, excludedPatterns) { eslint-5.16.0~dfsg/tests/lib/config/config-ops.js:820: it(`matches ${filePath} given '${patterns.join("','")}' includes and '${excludedPatterns.join("','")}' excludes`, () => { eslint-5.16.0~dfsg/tests/lib/config/config-ops.js-821- const result = ConfigOps.pathMatchesGlobs(filePath, patterns, excludedPatterns); ############################################## eslint-5.16.0~dfsg/tests/lib/config/config-ops.js-834- function noMatch(filePath, patterns, excludedPatterns) { eslint-5.16.0~dfsg/tests/lib/config/config-ops.js:835: it(`does not match ${filePath} given '${patterns.join("','")}' includes and '${excludedPatterns.join("','")}' excludes`, () => { eslint-5.16.0~dfsg/tests/lib/config/config-ops.js-836- const result = ConfigOps.pathMatchesGlobs(filePath, patterns, excludedPatterns); ############################################## eslint-5.16.0~dfsg/tests/lib/config/config-ops.js-849- function error(filePath, pattern, expectedMessage) { eslint-5.16.0~dfsg/tests/lib/config/config-ops.js:850: it(`emits an error given '${pattern}'`, () => { eslint-5.16.0~dfsg/tests/lib/config/config-ops.js-851- let errorMessage; ############################################## eslint-5.16.0~dfsg/tests/lib/formatters/codeframe.js-90- assert.strictEqual(stripAnsi(result), [ eslint-5.16.0~dfsg/tests/lib/formatters/codeframe.js:91: `warning: Unexpected foo (foo) at ${path.join("lib", "foo.js")}:1:5:`, eslint-5.16.0~dfsg/tests/lib/formatters/codeframe.js-92- "> 1 | var foo = 1;", ############################################## eslint-5.16.0~dfsg/tests/lib/formatters/codeframe.js-119- assert.strictEqual(stripAnsi(result), [ eslint-5.16.0~dfsg/tests/lib/formatters/codeframe.js:120: `warning: Unexpected foo (foo) at ${path.join("lib", "foo.js")}:1:5:`, eslint-5.16.0~dfsg/tests/lib/formatters/codeframe.js-121- "> 1 | var foo = 1;", ############################################## eslint-5.16.0~dfsg/tests/lib/formatters/codeframe.js-151- assert.strictEqual(stripAnsi(result), [ eslint-5.16.0~dfsg/tests/lib/formatters/codeframe.js:152: `error: Unexpected foo (foo) at ${path.join("lib", "foo.js")}:1:5:`, eslint-5.16.0~dfsg/tests/lib/formatters/codeframe.js-153- "> 1 | var foo = 1;", ############################################## eslint-5.16.0~dfsg/tests/lib/linter.js-26- } eslint-5.16.0~dfsg/tests/lib/linter.js:27: throw new Error(`Cannot find object '${name}'.`); eslint-5.16.0~dfsg/tests/lib/linter.js-28- ############################################## eslint-5.16.0~dfsg/tests/lib/linter.js-101- linter.verify(code, config, filename); eslint-5.16.0~dfsg/tests/lib/linter.js:102: }, `Intentional error.\nOccurred while linting ${filename}:1`); eslint-5.16.0~dfsg/tests/lib/linter.js-103- }); ############################################## eslint-5.16.0~dfsg/tests/lib/linter.js-3438- "class B { superInFunc() { super.foo(); } }", eslint-5.16.0~dfsg/tests/lib/linter.js:3439: "var template = `hello, ${a}`;", eslint-5.16.0~dfsg/tests/lib/linter.js-3440- "var unicode = '\\u{20BB7}';" ############################################## eslint-5.16.0~dfsg/tests/lib/linter.js-4364- assert.strictEqual(fixResult.fixed, true); eslint-5.16.0~dfsg/tests/lib/linter.js:4365: assert.strictEqual(fixResult.output, `${" ".repeat(10)}a`); eslint-5.16.0~dfsg/tests/lib/linter.js-4366- assert.strictEqual(fixResult.messages.length, 1); ############################################## eslint-5.16.0~dfsg/tests/lib/rules/array-bracket-spacing.js-25-function parser(name) { eslint-5.16.0~dfsg/tests/lib/rules/array-bracket-spacing.js:26: return path.resolve(__dirname, `../../fixtures/parsers/array-bracket-spacing/${name}.js`); eslint-5.16.0~dfsg/tests/lib/rules/array-bracket-spacing.js-27-} ############################################## eslint-5.16.0~dfsg/tests/lib/rules/array-callback-return.js-59- "var every = function() {}", eslint-5.16.0~dfsg/tests/lib/rules/array-callback-return.js:60: { code: "foo[`${every}`](function() {})", parserOptions: { ecmaVersion: 6 } }, eslint-5.16.0~dfsg/tests/lib/rules/array-callback-return.js-61- { code: "foo.every(() => true)", parserOptions: { ecmaVersion: 6 } }, ############################################## eslint-5.16.0~dfsg/tests/lib/rules/comma-dangle.js-28- __dirname, eslint-5.16.0~dfsg/tests/lib/rules/comma-dangle.js:29: `../../fixtures/parsers/comma-dangle/${name}.js` eslint-5.16.0~dfsg/tests/lib/rules/comma-dangle.js-30- ); ############################################## eslint-5.16.0~dfsg/tests/lib/rules/comma-spacing.js-62- { code: "[` , `]", parserOptions: { ecmaVersion: 6 } }, eslint-5.16.0~dfsg/tests/lib/rules/comma-spacing.js:63: { code: "`${[1, 2]}`", parserOptions: { ecmaVersion: 6 } }, eslint-5.16.0~dfsg/tests/lib/rules/comma-spacing.js-64- { code: "fn(a, b,)", parserOptions: { ecmaVersion: 2018 } }, // #11295 ############################################## eslint-5.16.0~dfsg/tests/lib/rules/comma-spacing.js-119- { code: "var a = (1 + 2,2)", options: [{ before: false, after: false }] }, eslint-5.16.0~dfsg/tests/lib/rules/comma-spacing.js:120: { code: "var a; console.log(`${a}`, \"a\");", parserOptions: { ecmaVersion: 6 } }, eslint-5.16.0~dfsg/tests/lib/rules/comma-spacing.js-121- { code: "var [a, b] = [1, 2];", parserOptions: { ecmaVersion: 6 } }, ############################################## eslint-5.16.0~dfsg/tests/lib/rules/complexity.js-28- for (let i = 2; i < complexity; i++) { eslint-5.16.0~dfsg/tests/lib/rules/complexity.js:29: funcString += `} else if (a === ${i}) {`; eslint-5.16.0~dfsg/tests/lib/rules/complexity.js-30- } ############################################## eslint-5.16.0~dfsg/tests/lib/rules/dot-notation.js-24- * @param {string} str The string to quote eslint-5.16.0~dfsg/tests/lib/rules/dot-notation.js:25: * @returns {string} `"${str}"` eslint-5.16.0~dfsg/tests/lib/rules/dot-notation.js-26- */ eslint-5.16.0~dfsg/tests/lib/rules/dot-notation.js-27-function q(str) { eslint-5.16.0~dfsg/tests/lib/rules/dot-notation.js:28: return `"${str}"`; eslint-5.16.0~dfsg/tests/lib/rules/dot-notation.js-29-} ############################################## eslint-5.16.0~dfsg/tests/lib/rules/dot-notation.js-52- { code: "a['lots_of_snake_case'];", options: [{ allowPattern: "^[a-z]+(_[a-z]+)+$" }] }, eslint-5.16.0~dfsg/tests/lib/rules/dot-notation.js:53: { code: "a[`time${range}`];", parserOptions: { ecmaVersion: 6 } }, eslint-5.16.0~dfsg/tests/lib/rules/dot-notation.js-54- { code: "a[`while`];", options: [{ allowKeywords: false }], parserOptions: { ecmaVersion: 6 } }, ############################################## eslint-5.16.0~dfsg/tests/lib/rules/indent-legacy.js-47- ? err[1] eslint-5.16.0~dfsg/tests/lib/rules/indent-legacy.js:48: : `${err[1]} ${indentType}${err[1] === 1 ? "" : "s"}`, eslint-5.16.0~dfsg/tests/lib/rules/indent-legacy.js-49- actual: err[2] ############################################## eslint-5.16.0~dfsg/tests/lib/rules/indent.js-50- ? err[1] eslint-5.16.0~dfsg/tests/lib/rules/indent.js:51: : `${err[1]} ${indentType}${err[1] === 1 ? "" : "s"}`, eslint-5.16.0~dfsg/tests/lib/rules/indent.js-52- actual: err[2] ############################################## eslint-5.16.0~dfsg/tests/lib/rules/keyword-spacing.js-211- // not conflict with `template-curly-spacing` eslint-5.16.0~dfsg/tests/lib/rules/keyword-spacing.js:212: { code: "`${async function foo() {}}`", parserOptions: { ecmaVersion: 8 } }, eslint-5.16.0~dfsg/tests/lib/rules/keyword-spacing.js:213: { code: "`${ async function foo() {}}`", options: [NEITHER], parserOptions: { ecmaVersion: 8 } }, eslint-5.16.0~dfsg/tests/lib/rules/keyword-spacing.js-214- ############################################## eslint-5.16.0~dfsg/tests/lib/rules/keyword-spacing.js-270- // not conflict with `template-curly-spacing` eslint-5.16.0~dfsg/tests/lib/rules/keyword-spacing.js:271: { code: "async function wrap() { `${await a}` }", parserOptions: { ecmaVersion: 8 } }, eslint-5.16.0~dfsg/tests/lib/rules/keyword-spacing.js:272: { code: "async function wrap() { `${ await a}` }", options: [NEITHER], parserOptions: { ecmaVersion: 8 } }, eslint-5.16.0~dfsg/tests/lib/rules/keyword-spacing.js-273- ############################################## eslint-5.16.0~dfsg/tests/lib/rules/keyword-spacing.js-377- // not conflict with `template-curly-spacing` eslint-5.16.0~dfsg/tests/lib/rules/keyword-spacing.js:378: { code: "`${class {}}`", parserOptions: { ecmaVersion: 6 } }, eslint-5.16.0~dfsg/tests/lib/rules/keyword-spacing.js:379: { code: "`${ class{}}`", options: [NEITHER], parserOptions: { ecmaVersion: 6 } }, eslint-5.16.0~dfsg/tests/lib/rules/keyword-spacing.js-380- ############################################## eslint-5.16.0~dfsg/tests/lib/rules/keyword-spacing.js-508- // not conflict with `template-curly-spacing` eslint-5.16.0~dfsg/tests/lib/rules/keyword-spacing.js:509: { code: "`${delete foo.a}`", parserOptions: { ecmaVersion: 6 } }, eslint-5.16.0~dfsg/tests/lib/rules/keyword-spacing.js:510: { code: "`${ delete foo.a}`", options: [NEITHER], parserOptions: { ecmaVersion: 6 } }, eslint-5.16.0~dfsg/tests/lib/rules/keyword-spacing.js-511- ############################################## eslint-5.16.0~dfsg/tests/lib/rules/keyword-spacing.js-703- // not conflict with `template-curly-spacing` eslint-5.16.0~dfsg/tests/lib/rules/keyword-spacing.js:704: { code: "`${function() {}}`", parserOptions: { ecmaVersion: 6 } }, eslint-5.16.0~dfsg/tests/lib/rules/keyword-spacing.js:705: { code: "`${ function() {}}`", options: [NEITHER], parserOptions: { ecmaVersion: 6 } }, eslint-5.16.0~dfsg/tests/lib/rules/keyword-spacing.js-706- ############################################## eslint-5.16.0~dfsg/tests/lib/rules/keyword-spacing.js-859- // not conflict with `template-curly-spacing` eslint-5.16.0~dfsg/tests/lib/rules/keyword-spacing.js:860: { code: "`${new foo()}`", parserOptions: { ecmaVersion: 6 } }, eslint-5.16.0~dfsg/tests/lib/rules/keyword-spacing.js:861: { code: "`${ new foo()}`", options: [NEITHER], parserOptions: { ecmaVersion: 6 } }, eslint-5.16.0~dfsg/tests/lib/rules/keyword-spacing.js-862- ############################################## eslint-5.16.0~dfsg/tests/lib/rules/keyword-spacing.js-984- // not conflict with `template-curly-spacing` eslint-5.16.0~dfsg/tests/lib/rules/keyword-spacing.js:985: { code: "class A extends B { constructor() { `${super()}` } }", parserOptions: { ecmaVersion: 6 } }, eslint-5.16.0~dfsg/tests/lib/rules/keyword-spacing.js:986: { code: "class A extends B { constructor() { `${ super() }` } }", options: [NEITHER], parserOptions: { ecmaVersion: 6 } }, eslint-5.16.0~dfsg/tests/lib/rules/keyword-spacing.js-987- ############################################## eslint-5.16.0~dfsg/tests/lib/rules/keyword-spacing.js-1060- // not conflict with `template-curly-spacing` eslint-5.16.0~dfsg/tests/lib/rules/keyword-spacing.js:1061: { code: "`${this}`", parserOptions: { ecmaVersion: 6 } }, eslint-5.16.0~dfsg/tests/lib/rules/keyword-spacing.js:1062: { code: "`${ this }`", options: [NEITHER], parserOptions: { ecmaVersion: 6 } }, eslint-5.16.0~dfsg/tests/lib/rules/keyword-spacing.js-1063- ############################################## eslint-5.16.0~dfsg/tests/lib/rules/keyword-spacing.js-1155- // not conflict with `template-curly-spacing` eslint-5.16.0~dfsg/tests/lib/rules/keyword-spacing.js:1156: { code: "`${typeof foo}`", parserOptions: { ecmaVersion: 6 } }, eslint-5.16.0~dfsg/tests/lib/rules/keyword-spacing.js:1157: { code: "`${ typeof foo}`", options: [NEITHER], parserOptions: { ecmaVersion: 6 } }, eslint-5.16.0~dfsg/tests/lib/rules/keyword-spacing.js-1158- ############################################## eslint-5.16.0~dfsg/tests/lib/rules/keyword-spacing.js-1232- // not conflict with `template-curly-spacing` eslint-5.16.0~dfsg/tests/lib/rules/keyword-spacing.js:1233: { code: "`${void foo}`", parserOptions: { ecmaVersion: 6 } }, eslint-5.16.0~dfsg/tests/lib/rules/keyword-spacing.js:1234: { code: "`${ void foo}`", options: [NEITHER], parserOptions: { ecmaVersion: 6 } }, eslint-5.16.0~dfsg/tests/lib/rules/keyword-spacing.js-1235- ############################################## eslint-5.16.0~dfsg/tests/lib/rules/keyword-spacing.js-1335- // not conflict with `template-curly-spacing` eslint-5.16.0~dfsg/tests/lib/rules/keyword-spacing.js:1336: { code: "`${yield}`", parserOptions: { ecmaVersion: 6 } }, eslint-5.16.0~dfsg/tests/lib/rules/keyword-spacing.js:1337: { code: "`${ yield}`", options: [NEITHER], parserOptions: { ecmaVersion: 6 } }, eslint-5.16.0~dfsg/tests/lib/rules/keyword-spacing.js-1338- ############################################## eslint-5.16.0~dfsg/tests/lib/rules/no-empty-function.js-54- { eslint-5.16.0~dfsg/tests/lib/rules/no-empty-function.js:55: code: `${item.code} // allow: ${item.allow}`, eslint-5.16.0~dfsg/tests/lib/rules/no-empty-function.js-56- options: [{ allow: [item.allow] }], ############################################## eslint-5.16.0~dfsg/tests/lib/rules/no-empty-function.js-74- patterns.invalid.push({ eslint-5.16.0~dfsg/tests/lib/rules/no-empty-function.js:75: code: `${item.code} // allow: ${allow}`, eslint-5.16.0~dfsg/tests/lib/rules/no-empty-function.js-76- errors: [error], ############################################## eslint-5.16.0~dfsg/tests/lib/rules/no-extra-bind.js-30- "var a = function() { return 1; }[bind](b)", eslint-5.16.0~dfsg/tests/lib/rules/no-extra-bind.js:31: { code: "var a = function() { return 1; }[`bi${n}d`](b)", parserOptions: { ecmaVersion: 6 } }, eslint-5.16.0~dfsg/tests/lib/rules/no-extra-bind.js-32- { code: "var a = function() { return () => this; }.bind(b)", parserOptions: { ecmaVersion: 6 } } ############################################## eslint-5.16.0~dfsg/tests/lib/rules/no-implicit-coercion.js-66- "foo + 'bar'", eslint-5.16.0~dfsg/tests/lib/rules/no-implicit-coercion.js:67: { code: "foo + `${bar}`", parserOptions: { ecmaVersion: 6 } }, eslint-5.16.0~dfsg/tests/lib/rules/no-implicit-coercion.js-68- ############################################## eslint-5.16.0~dfsg/tests/lib/rules/no-implicit-coercion.js-84- { code: "`` + 'foo'", parserOptions: { ecmaVersion: 6 } }, eslint-5.16.0~dfsg/tests/lib/rules/no-implicit-coercion.js:85: { code: "'' + `${foo}`", parserOptions: { ecmaVersion: 6 } }, eslint-5.16.0~dfsg/tests/lib/rules/no-implicit-coercion.js-86- "'foo' + ''", eslint-5.16.0~dfsg/tests/lib/rules/no-implicit-coercion.js-87- { code: "'foo' + ``", parserOptions: { ecmaVersion: 6 } }, eslint-5.16.0~dfsg/tests/lib/rules/no-implicit-coercion.js:88: { code: "`${foo}` + ''", parserOptions: { ecmaVersion: 6 } }, eslint-5.16.0~dfsg/tests/lib/rules/no-implicit-coercion.js-89- "foo += 'bar'", eslint-5.16.0~dfsg/tests/lib/rules/no-implicit-coercion.js:90: { code: "foo += `${bar}`", parserOptions: { ecmaVersion: 6 } }, eslint-5.16.0~dfsg/tests/lib/rules/no-implicit-coercion.js-91- "+42" ############################################## eslint-5.16.0~dfsg/tests/lib/rules/no-implied-eval.js-74- // template literals eslint-5.16.0~dfsg/tests/lib/rules/no-implied-eval.js:75: { code: "setTimeout(`foo${bar}`)", parserOptions: { ecmaVersion: 6 }, errors: [expectedError] }, eslint-5.16.0~dfsg/tests/lib/rules/no-implied-eval.js-76- ############################################## eslint-5.16.0~dfsg/tests/lib/rules/no-invalid-this.js-35-function USE_STRICT(pattern) { eslint-5.16.0~dfsg/tests/lib/rules/no-invalid-this.js:36: pattern.code = `"use strict"; ${pattern.code}`; eslint-5.16.0~dfsg/tests/lib/rules/no-invalid-this.js-37-} ############################################## eslint-5.16.0~dfsg/tests/lib/rules/no-invalid-this.js-45-function IMPLIED_STRICT(pattern) { eslint-5.16.0~dfsg/tests/lib/rules/no-invalid-this.js:46: pattern.code = `/* implied strict mode */ ${pattern.code}`; eslint-5.16.0~dfsg/tests/lib/rules/no-invalid-this.js-47- pattern.parserOptions.ecmaFeatures = pattern.parserOptions.ecmaFeatures || {}; ############################################## eslint-5.16.0~dfsg/tests/lib/rules/no-invalid-this.js-57-function MODULES(pattern) { eslint-5.16.0~dfsg/tests/lib/rules/no-invalid-this.js:58: pattern.code = `/* modules */ ${pattern.code}`; eslint-5.16.0~dfsg/tests/lib/rules/no-invalid-this.js-59- pattern.parserOptions.sourceType = "module"; ############################################## eslint-5.16.0~dfsg/tests/lib/rules/no-irregular-whitespace.js-531- { eslint-5.16.0~dfsg/tests/lib/rules/no-irregular-whitespace.js:532: code: "`something ${\u3000 10} another thing`", eslint-5.16.0~dfsg/tests/lib/rules/no-irregular-whitespace.js-533- options: [{ skipTemplates: true }], ############################################## eslint-5.16.0~dfsg/tests/lib/rules/no-mixed-spaces-and-tabs.js-60- { eslint-5.16.0~dfsg/tests/lib/rules/no-mixed-spaces-and-tabs.js:61: code: "const foo = `${console}\n\t foo`;", eslint-5.16.0~dfsg/tests/lib/rules/no-mixed-spaces-and-tabs.js-62- env: { es6: true } ############################################## eslint-5.16.0~dfsg/tests/lib/rules/no-mixed-spaces-and-tabs.js-68- { eslint-5.16.0~dfsg/tests/lib/rules/no-mixed-spaces-and-tabs.js:69: code: "`foo${ 5 }\t `;", eslint-5.16.0~dfsg/tests/lib/rules/no-mixed-spaces-and-tabs.js-70- env: { es6: true } ############################################## eslint-5.16.0~dfsg/tests/lib/rules/no-mixed-spaces-and-tabs.js-136- { eslint-5.16.0~dfsg/tests/lib/rules/no-mixed-spaces-and-tabs.js:137: code: "`foo${\n \t 5 }bar`;", eslint-5.16.0~dfsg/tests/lib/rules/no-mixed-spaces-and-tabs.js-138- options: ["smart-tabs"], ############################################## eslint-5.16.0~dfsg/tests/lib/rules/no-mixed-spaces-and-tabs.js-149- { eslint-5.16.0~dfsg/tests/lib/rules/no-mixed-spaces-and-tabs.js:150: code: "`foo${\n\t 5 }bar`;", eslint-5.16.0~dfsg/tests/lib/rules/no-mixed-spaces-and-tabs.js-151- env: { es6: true }, ############################################## eslint-5.16.0~dfsg/tests/lib/rules/no-multiple-empty-lines.js-28- ? "More than 1 blank line not allowed." eslint-5.16.0~dfsg/tests/lib/rules/no-multiple-empty-lines.js:29: : `More than ${lines} blank lines not allowed.`; eslint-5.16.0~dfsg/tests/lib/rules/no-multiple-empty-lines.js-30- ############################################## eslint-5.16.0~dfsg/tests/lib/rules/no-multiple-empty-lines.js-45- return { eslint-5.16.0~dfsg/tests/lib/rules/no-multiple-empty-lines.js:46: message: `Too many blank lines at the end of file. Max of ${lines} allowed.`, eslint-5.16.0~dfsg/tests/lib/rules/no-multiple-empty-lines.js-47- type: "Program", ############################################## eslint-5.16.0~dfsg/tests/lib/rules/no-multiple-empty-lines.js-59- return { eslint-5.16.0~dfsg/tests/lib/rules/no-multiple-empty-lines.js:60: message: `Too many blank lines at the beginning of file. Max of ${lines} allowed.`, eslint-5.16.0~dfsg/tests/lib/rules/no-multiple-empty-lines.js-61- type: "Program", ############################################## eslint-5.16.0~dfsg/tests/lib/rules/no-multiple-empty-lines.js-298- { eslint-5.16.0~dfsg/tests/lib/rules/no-multiple-empty-lines.js:299: code: "`template ${foo\n\n\n} literal`;", eslint-5.16.0~dfsg/tests/lib/rules/no-multiple-empty-lines.js:300: output: "`template ${foo\n\n} literal`;", eslint-5.16.0~dfsg/tests/lib/rules/no-multiple-empty-lines.js-301- options: [{ max: 1 }], ############################################## eslint-5.16.0~dfsg/tests/lib/rules/no-multiple-empty-lines.js-307- // https://github.com/eslint/eslint/issues/7893 eslint-5.16.0~dfsg/tests/lib/rules/no-multiple-empty-lines.js:308: code: `a\n\n\n\n${"a".repeat(1e5)}`, eslint-5.16.0~dfsg/tests/lib/rules/no-multiple-empty-lines.js:309: output: `a\n\n\n${"a".repeat(1e5)}`, eslint-5.16.0~dfsg/tests/lib/rules/no-multiple-empty-lines.js-310- errors: [getExpectedError(2)] ############################################## eslint-5.16.0~dfsg/tests/lib/rules/no-template-curly-in-string.js-25- valid: [ eslint-5.16.0~dfsg/tests/lib/rules/no-template-curly-in-string.js:26: { code: "`Hello, ${name}`;", parserOptions }, eslint-5.16.0~dfsg/tests/lib/rules/no-template-curly-in-string.js:27: { code: "templateFunction`Hello, ${name}`;", parserOptions }, eslint-5.16.0~dfsg/tests/lib/rules/no-template-curly-in-string.js-28- { code: "`Hello, name`;", parserOptions }, ############################################## eslint-5.16.0~dfsg/tests/lib/rules/no-template-curly-in-string.js-30- { code: "'Hello, ' + name;", parserOptions }, eslint-5.16.0~dfsg/tests/lib/rules/no-template-curly-in-string.js:31: { code: "`Hello, ${index + 1}`", parserOptions }, eslint-5.16.0~dfsg/tests/lib/rules/no-template-curly-in-string.js:32: { code: "`Hello, ${name + \" foo\"}`", parserOptions }, eslint-5.16.0~dfsg/tests/lib/rules/no-template-curly-in-string.js:33: { code: "`Hello, ${name || \"foo\"}`", parserOptions }, eslint-5.16.0~dfsg/tests/lib/rules/no-template-curly-in-string.js:34: { code: "`Hello, ${{foo: \"bar\"}.foo}`", parserOptions }, eslint-5.16.0~dfsg/tests/lib/rules/no-template-curly-in-string.js-35- { code: "'$2'", parserOptions }, ############################################## eslint-5.16.0~dfsg/tests/lib/rules/no-throw-literal.js-38- "throw foo ? 'literal' : new Error();", // ConditionalExpression (alternate) eslint-5.16.0~dfsg/tests/lib/rules/no-throw-literal.js:39: { code: "throw tag `${foo}`;", parserOptions: { ecmaVersion: 6 } }, // TaggedTemplateExpression eslint-5.16.0~dfsg/tests/lib/rules/no-throw-literal.js-40- { code: "function* foo() { var index = 0; throw yield index++; }", parserOptions: { ecmaVersion: 6 } }, // YieldExpression ############################################## eslint-5.16.0~dfsg/tests/lib/rules/no-throw-literal.js-133- { eslint-5.16.0~dfsg/tests/lib/rules/no-throw-literal.js:134: code: "throw `${err}`;", eslint-5.16.0~dfsg/tests/lib/rules/no-throw-literal.js-135- parserOptions: { ecmaVersion: 6 }, ############################################## eslint-5.16.0~dfsg/tests/lib/rules/no-trailing-spaces.js-61- { eslint-5.16.0~dfsg/tests/lib/rules/no-trailing-spaces.js:62: code: "let str = `${a}\n \n${b}`;", eslint-5.16.0~dfsg/tests/lib/rules/no-trailing-spaces.js-63- parserOptions: { ecmaVersion: 6 } ############################################## eslint-5.16.0~dfsg/tests/lib/rules/no-trailing-spaces.js-65- { eslint-5.16.0~dfsg/tests/lib/rules/no-trailing-spaces.js:66: code: "let str = `${a}\n \n${b}`;\n \n ", eslint-5.16.0~dfsg/tests/lib/rules/no-trailing-spaces.js-67- options: [{ skipBlankLines: true }], ############################################## eslint-5.16.0~dfsg/tests/lib/rules/no-trailing-spaces.js-344- { eslint-5.16.0~dfsg/tests/lib/rules/no-trailing-spaces.js:345: code: "let str = `${a}\n \n${b}`; \n", eslint-5.16.0~dfsg/tests/lib/rules/no-trailing-spaces.js:346: output: "let str = `${a}\n \n${b}`;\n", eslint-5.16.0~dfsg/tests/lib/rules/no-trailing-spaces.js-347- parserOptions: { ecmaVersion: 6 }, ############################################## eslint-5.16.0~dfsg/tests/lib/rules/no-trailing-spaces.js-355- { eslint-5.16.0~dfsg/tests/lib/rules/no-trailing-spaces.js:356: code: "let str = `\n${a}\n \n${b}`; \n\t", eslint-5.16.0~dfsg/tests/lib/rules/no-trailing-spaces.js:357: output: "let str = `\n${a}\n \n${b}`;\n", eslint-5.16.0~dfsg/tests/lib/rules/no-trailing-spaces.js-358- parserOptions: { ecmaVersion: 6 }, ############################################## eslint-5.16.0~dfsg/tests/lib/rules/no-trailing-spaces.js-374- { eslint-5.16.0~dfsg/tests/lib/rules/no-trailing-spaces.js:375: code: "let str = ` \n ${a}\n \n${b}`; \n", eslint-5.16.0~dfsg/tests/lib/rules/no-trailing-spaces.js:376: output: "let str = ` \n ${a}\n \n${b}`;\n", eslint-5.16.0~dfsg/tests/lib/rules/no-trailing-spaces.js-377- parserOptions: { ecmaVersion: 6 }, ############################################## eslint-5.16.0~dfsg/tests/lib/rules/no-trailing-spaces.js-387- { eslint-5.16.0~dfsg/tests/lib/rules/no-trailing-spaces.js:388: code: "let str = `${a}\n \n${b}`; \n \n", eslint-5.16.0~dfsg/tests/lib/rules/no-trailing-spaces.js:389: output: "let str = `${a}\n \n${b}`;\n \n", eslint-5.16.0~dfsg/tests/lib/rules/no-trailing-spaces.js-390- options: [{ ############################################## eslint-5.16.0~dfsg/tests/lib/rules/no-unexpected-multiline.js-38- { eslint-5.16.0~dfsg/tests/lib/rules/no-unexpected-multiline.js:39: code: "String.raw `Hi\n${2+3}!`;", eslint-5.16.0~dfsg/tests/lib/rules/no-unexpected-multiline.js-40- parserOptions: { ecmaVersion: 6 } ############################################## eslint-5.16.0~dfsg/tests/lib/rules/no-unused-vars.js-43-function definedError(varName, type) { eslint-5.16.0~dfsg/tests/lib/rules/no-unused-vars.js:44: return { message: `'${varName}' is defined but never used.`, type: type || "Identifier" }; eslint-5.16.0~dfsg/tests/lib/rules/no-unused-vars.js-45-} ############################################## eslint-5.16.0~dfsg/tests/lib/rules/no-unused-vars.js-53-function assignedError(varName, type) { eslint-5.16.0~dfsg/tests/lib/rules/no-unused-vars.js:54: return { message: `'${varName}' is assigned a value but never used.`, type: type || "Identifier" }; eslint-5.16.0~dfsg/tests/lib/rules/no-unused-vars.js-55-} ############################################## eslint-5.16.0~dfsg/tests/lib/rules/no-unused-vars.js-92- { code: " ", globals: { a: true } }, eslint-5.16.0~dfsg/tests/lib/rules/no-unused-vars.js:93: { code: "var who = \"Paul\";\nmodule.exports = `Hello ${who}!`;", parserOptions: { ecmaVersion: 6 } }, eslint-5.16.0~dfsg/tests/lib/rules/no-unused-vars.js-94- { code: "export var foo = 123;", parserOptions: { sourceType: "module" } }, ############################################## eslint-5.16.0~dfsg/tests/lib/rules/no-unused-vars.js-221- { code: "function* foo(cb) { cb = yield function(a) { cb(1 + a); }; } foo();", parserOptions: { ecmaVersion: 6 } }, eslint-5.16.0~dfsg/tests/lib/rules/no-unused-vars.js:222: { code: "function foo(cb) { cb = tag`hello${function(a) { cb(1 + a); }}`; } foo();", parserOptions: { ecmaVersion: 6 } }, eslint-5.16.0~dfsg/tests/lib/rules/no-unused-vars.js-223- "function foo(cb) { var b; cb = b = function(a) { cb(1 + a); }; b(); } foo();", ############################################## eslint-5.16.0~dfsg/tests/lib/rules/no-useless-escape.js-66- { code: "var foo = `\\\r\n`;", parserOptions: { ecmaVersion: 6 } }, eslint-5.16.0~dfsg/tests/lib/rules/no-useless-escape.js:67: { code: "var foo = `${foo} \\x123`", parserOptions: { ecmaVersion: 6 } }, eslint-5.16.0~dfsg/tests/lib/rules/no-useless-escape.js:68: { code: "var foo = `${foo} \\u00a9`", parserOptions: { ecmaVersion: 6 } }, eslint-5.16.0~dfsg/tests/lib/rules/no-useless-escape.js:69: { code: "var foo = `${foo} xs\\u2111`", parserOptions: { ecmaVersion: 6 } }, eslint-5.16.0~dfsg/tests/lib/rules/no-useless-escape.js:70: { code: "var foo = `${foo} \\\\ ${bar}`;", parserOptions: { ecmaVersion: 6 } }, eslint-5.16.0~dfsg/tests/lib/rules/no-useless-escape.js:71: { code: "var foo = `${foo} \\b ${bar}`;", parserOptions: { ecmaVersion: 6 } }, eslint-5.16.0~dfsg/tests/lib/rules/no-useless-escape.js:72: { code: "var foo = `${foo}\\t`;", parserOptions: { ecmaVersion: 6 } }, eslint-5.16.0~dfsg/tests/lib/rules/no-useless-escape.js:73: { code: "var foo = `${foo}\\n`;", parserOptions: { ecmaVersion: 6 } }, eslint-5.16.0~dfsg/tests/lib/rules/no-useless-escape.js:74: { code: "var foo = `${foo}\\r`;", parserOptions: { ecmaVersion: 6 } }, eslint-5.16.0~dfsg/tests/lib/rules/no-useless-escape.js:75: { code: "var foo = `${foo}\\v`;", parserOptions: { ecmaVersion: 6 } }, eslint-5.16.0~dfsg/tests/lib/rules/no-useless-escape.js:76: { code: "var foo = `${foo}\\f`;", parserOptions: { ecmaVersion: 6 } }, eslint-5.16.0~dfsg/tests/lib/rules/no-useless-escape.js:77: { code: "var foo = `${foo}\\\n`;", parserOptions: { ecmaVersion: 6 } }, eslint-5.16.0~dfsg/tests/lib/rules/no-useless-escape.js:78: { code: "var foo = `${foo}\\\r\n`;", parserOptions: { ecmaVersion: 6 } }, eslint-5.16.0~dfsg/tests/lib/rules/no-useless-escape.js-79- { code: "var foo = `\\``", parserOptions: { ecmaVersion: 6 } }, eslint-5.16.0~dfsg/tests/lib/rules/no-useless-escape.js:80: { code: "var foo = `\\`${foo}\\``", parserOptions: { ecmaVersion: 6 } }, eslint-5.16.0~dfsg/tests/lib/rules/no-useless-escape.js:81: { code: "var foo = `\\${{${foo}`;", parserOptions: { ecmaVersion: 6 } }, eslint-5.16.0~dfsg/tests/lib/rules/no-useless-escape.js:82: { code: "var foo = `$\\{{${foo}`;", parserOptions: { ecmaVersion: 6 } }, eslint-5.16.0~dfsg/tests/lib/rules/no-useless-escape.js-83- { code: "var foo = String.raw`\\.`", parserOptions: { ecmaVersion: 6 } }, ############################################## eslint-5.16.0~dfsg/tests/lib/rules/no-useless-escape.js-166- { eslint-5.16.0~dfsg/tests/lib/rules/no-useless-escape.js:167: code: "var foo = `\\\"${foo}\\\"`;", eslint-5.16.0~dfsg/tests/lib/rules/no-useless-escape.js-168- parserOptions: { ecmaVersion: 6 }, ############################################## eslint-5.16.0~dfsg/tests/lib/rules/no-useless-escape.js-174- { eslint-5.16.0~dfsg/tests/lib/rules/no-useless-escape.js:175: code: "var foo = `\\'${foo}\\'`;", eslint-5.16.0~dfsg/tests/lib/rules/no-useless-escape.js-176- parserOptions: { ecmaVersion: 6 }, ############################################## eslint-5.16.0~dfsg/tests/lib/rules/no-useless-escape.js-182- { eslint-5.16.0~dfsg/tests/lib/rules/no-useless-escape.js:183: code: "var foo = `\\#${foo}`;", eslint-5.16.0~dfsg/tests/lib/rules/no-useless-escape.js-184- parserOptions: { ecmaVersion: 6 }, ############################################## eslint-5.16.0~dfsg/tests/lib/rules/no-useless-escape.js-197- { eslint-5.16.0~dfsg/tests/lib/rules/no-useless-escape.js:198: code: "var foo = `\\$\\{{${foo}`;", eslint-5.16.0~dfsg/tests/lib/rules/no-useless-escape.js-199- parserOptions: { ecmaVersion: 6 }, ############################################## eslint-5.16.0~dfsg/tests/lib/rules/no-useless-escape.js-204- { eslint-5.16.0~dfsg/tests/lib/rules/no-useless-escape.js:205: code: "var foo = `\\$a${foo}`;", eslint-5.16.0~dfsg/tests/lib/rules/no-useless-escape.js-206- parserOptions: { ecmaVersion: 6 }, ############################################## eslint-5.16.0~dfsg/tests/lib/rules/no-useless-escape.js-211- { eslint-5.16.0~dfsg/tests/lib/rules/no-useless-escape.js:212: code: "var foo = `a\\{{${foo}`;", eslint-5.16.0~dfsg/tests/lib/rules/no-useless-escape.js-213- parserOptions: { ecmaVersion: 6 }, ############################################## eslint-5.16.0~dfsg/tests/lib/rules/no-useless-escape.js-246- { eslint-5.16.0~dfsg/tests/lib/rules/no-useless-escape.js:247: code: String.raw`var foo = /[ab\$]/`, eslint-5.16.0~dfsg/tests/lib/rules/no-useless-escape.js-248- errors: [{ line: 1, column: 15, message: "Unnecessary escape character: \\$.", type: "Literal" }] ############################################## eslint-5.16.0~dfsg/tests/lib/rules/prefer-object-spread.js-797- code: ` eslint-5.16.0~dfsg/tests/lib/rules/prefer-object-spread.js:798: eventData = Object.assign({}, eventData, { outsideLocality: \`\${originLocality} - \${destinationLocality}\` }) eslint-5.16.0~dfsg/tests/lib/rules/prefer-object-spread.js-799- `, eslint-5.16.0~dfsg/tests/lib/rules/prefer-object-spread.js-800- output: ` eslint-5.16.0~dfsg/tests/lib/rules/prefer-object-spread.js:801: eventData = { ...eventData, outsideLocality: \`\${originLocality} - \${destinationLocality}\`} eslint-5.16.0~dfsg/tests/lib/rules/prefer-object-spread.js-802- `, ############################################## eslint-5.16.0~dfsg/tests/lib/rules/prefer-template.js-33- "var foo = `bar`;", eslint-5.16.0~dfsg/tests/lib/rules/prefer-template.js:34: "var foo = `hello, ${name}!`;", eslint-5.16.0~dfsg/tests/lib/rules/prefer-template.js-35- ############################################## eslint-5.16.0~dfsg/tests/lib/rules/prefer-template.js-42- code: "var foo = 'hello, ' + name + '!';", eslint-5.16.0~dfsg/tests/lib/rules/prefer-template.js:43: output: "var foo = `hello, ${ name }!`;", eslint-5.16.0~dfsg/tests/lib/rules/prefer-template.js-44- errors ############################################## eslint-5.16.0~dfsg/tests/lib/rules/prefer-template.js-47- code: "var foo = bar + 'baz';", eslint-5.16.0~dfsg/tests/lib/rules/prefer-template.js:48: output: "var foo = `${bar }baz`;", eslint-5.16.0~dfsg/tests/lib/rules/prefer-template.js-49- errors ############################################## eslint-5.16.0~dfsg/tests/lib/rules/prefer-template.js-52- code: "var foo = bar + `baz`;", eslint-5.16.0~dfsg/tests/lib/rules/prefer-template.js:53: output: "var foo = `${bar }baz`;", eslint-5.16.0~dfsg/tests/lib/rules/prefer-template.js-54- errors ############################################## eslint-5.16.0~dfsg/tests/lib/rules/prefer-template.js-57- code: "var foo = +100 + 'yen';", eslint-5.16.0~dfsg/tests/lib/rules/prefer-template.js:58: output: "var foo = `${+100 }yen`;", eslint-5.16.0~dfsg/tests/lib/rules/prefer-template.js-59- errors ############################################## eslint-5.16.0~dfsg/tests/lib/rules/prefer-template.js-62- code: "var foo = 'bar' + baz;", eslint-5.16.0~dfsg/tests/lib/rules/prefer-template.js:63: output: "var foo = `bar${ baz}`;", eslint-5.16.0~dfsg/tests/lib/rules/prefer-template.js-64- errors ############################################## eslint-5.16.0~dfsg/tests/lib/rules/prefer-template.js-67- code: "var foo = 'ï¿¥' + (n * 1000) + '-'", eslint-5.16.0~dfsg/tests/lib/rules/prefer-template.js:68: output: "var foo = `ï¿¥${ n * 1000 }-`", eslint-5.16.0~dfsg/tests/lib/rules/prefer-template.js-69- errors ############################################## eslint-5.16.0~dfsg/tests/lib/rules/prefer-template.js-72- code: "var foo = 'aaa' + aaa; var bar = 'bbb' + bbb;", eslint-5.16.0~dfsg/tests/lib/rules/prefer-template.js:73: output: "var foo = `aaa${ aaa}`; var bar = `bbb${ bbb}`;", eslint-5.16.0~dfsg/tests/lib/rules/prefer-template.js-74- errors: [errors[0], errors[0]] ############################################## eslint-5.16.0~dfsg/tests/lib/rules/prefer-template.js-77- code: "var string = (number + 1) + 'px';", eslint-5.16.0~dfsg/tests/lib/rules/prefer-template.js:78: output: "var string = `${number + 1 }px`;", eslint-5.16.0~dfsg/tests/lib/rules/prefer-template.js-79- errors ############################################## eslint-5.16.0~dfsg/tests/lib/rules/prefer-template.js-82- code: "var foo = 'bar' + baz + 'qux';", eslint-5.16.0~dfsg/tests/lib/rules/prefer-template.js:83: output: "var foo = `bar${ baz }qux`;", eslint-5.16.0~dfsg/tests/lib/rules/prefer-template.js-84- errors ############################################## eslint-5.16.0~dfsg/tests/lib/rules/prefer-template.js-87- code: "var foo = '0 backslashes: ${bar}' + baz;", eslint-5.16.0~dfsg/tests/lib/rules/prefer-template.js:88: output: "var foo = `0 backslashes: \\${bar}${ baz}`;", eslint-5.16.0~dfsg/tests/lib/rules/prefer-template.js-89- errors ############################################## eslint-5.16.0~dfsg/tests/lib/rules/prefer-template.js-92- code: "var foo = '1 backslash: \\${bar}' + baz;", eslint-5.16.0~dfsg/tests/lib/rules/prefer-template.js:93: output: "var foo = `1 backslash: \\${bar}${ baz}`;", eslint-5.16.0~dfsg/tests/lib/rules/prefer-template.js-94- errors ############################################## eslint-5.16.0~dfsg/tests/lib/rules/prefer-template.js-97- code: "var foo = '2 backslashes: \\\\${bar}' + baz;", eslint-5.16.0~dfsg/tests/lib/rules/prefer-template.js:98: output: "var foo = `2 backslashes: \\\\\\${bar}${ baz}`;", eslint-5.16.0~dfsg/tests/lib/rules/prefer-template.js-99- errors ############################################## eslint-5.16.0~dfsg/tests/lib/rules/prefer-template.js-102- code: "var foo = '3 backslashes: \\\\\\${bar}' + baz;", eslint-5.16.0~dfsg/tests/lib/rules/prefer-template.js:103: output: "var foo = `3 backslashes: \\\\\\${bar}${ baz}`;", eslint-5.16.0~dfsg/tests/lib/rules/prefer-template.js-104- errors ############################################## eslint-5.16.0~dfsg/tests/lib/rules/prefer-template.js-107- code: "var foo = bar + 'this is a backtick: `' + baz;", eslint-5.16.0~dfsg/tests/lib/rules/prefer-template.js:108: output: "var foo = `${bar }this is a backtick: \\`${ baz}`;", eslint-5.16.0~dfsg/tests/lib/rules/prefer-template.js-109- errors ############################################## eslint-5.16.0~dfsg/tests/lib/rules/prefer-template.js-112- code: "var foo = bar + 'this is a backtick preceded by a backslash: \\`' + baz;", eslint-5.16.0~dfsg/tests/lib/rules/prefer-template.js:113: output: "var foo = `${bar }this is a backtick preceded by a backslash: \\`${ baz}`;", eslint-5.16.0~dfsg/tests/lib/rules/prefer-template.js-114- errors ############################################## eslint-5.16.0~dfsg/tests/lib/rules/prefer-template.js-117- code: "var foo = bar + 'this is a backtick preceded by two backslashes: \\\\`' + baz;", eslint-5.16.0~dfsg/tests/lib/rules/prefer-template.js:118: output: "var foo = `${bar }this is a backtick preceded by two backslashes: \\\\\\`${ baz}`;", eslint-5.16.0~dfsg/tests/lib/rules/prefer-template.js-119- errors ############################################## eslint-5.16.0~dfsg/tests/lib/rules/prefer-template.js-121- { eslint-5.16.0~dfsg/tests/lib/rules/prefer-template.js:122: code: "var foo = bar + `${baz}foo`;", eslint-5.16.0~dfsg/tests/lib/rules/prefer-template.js:123: output: "var foo = `${bar }${baz}foo`;", eslint-5.16.0~dfsg/tests/lib/rules/prefer-template.js-124- errors ############################################## eslint-5.16.0~dfsg/tests/lib/rules/prefer-template.js-138- code: "var foo = bar + baz + 'qux';", eslint-5.16.0~dfsg/tests/lib/rules/prefer-template.js:139: output: "var foo = `${bar + baz }qux`;", eslint-5.16.0~dfsg/tests/lib/rules/prefer-template.js-140- errors ############################################## eslint-5.16.0~dfsg/tests/lib/rules/prefer-template.js-158- code: "var foo = /* a */ 'bar' /* b */ + /* c */ baz /* d */ + 'qux' /* e */ ;", eslint-5.16.0~dfsg/tests/lib/rules/prefer-template.js:159: output: "var foo = /* a */ `bar${ /* b */ /* c */ baz /* d */ }qux` /* e */ ;", eslint-5.16.0~dfsg/tests/lib/rules/prefer-template.js-160- errors ############################################## eslint-5.16.0~dfsg/tests/lib/rules/prefer-template.js-163- code: "var foo = bar + ('baz') + 'qux' + (boop);", eslint-5.16.0~dfsg/tests/lib/rules/prefer-template.js:164: output: "var foo = `${bar }baz` + `qux${ boop}`;", eslint-5.16.0~dfsg/tests/lib/rules/prefer-template.js-165- errors ############################################## eslint-5.16.0~dfsg/tests/lib/rules/prefer-template.js-168- code: "foo + 'unescapes an escaped single quote in a single-quoted string: \\''", eslint-5.16.0~dfsg/tests/lib/rules/prefer-template.js:169: output: "`${foo }unescapes an escaped single quote in a single-quoted string: '`", eslint-5.16.0~dfsg/tests/lib/rules/prefer-template.js-170- errors ############################################## eslint-5.16.0~dfsg/tests/lib/rules/prefer-template.js-173- code: "foo + \"unescapes an escaped double quote in a double-quoted string: \\\"\"", eslint-5.16.0~dfsg/tests/lib/rules/prefer-template.js:174: output: "`${foo }unescapes an escaped double quote in a double-quoted string: \"`", eslint-5.16.0~dfsg/tests/lib/rules/prefer-template.js-175- errors ############################################## eslint-5.16.0~dfsg/tests/lib/rules/prefer-template.js-178- code: "foo + 'does not unescape an escaped double quote in a single-quoted string: \\\"'", eslint-5.16.0~dfsg/tests/lib/rules/prefer-template.js:179: output: "`${foo }does not unescape an escaped double quote in a single-quoted string: \\\"`", eslint-5.16.0~dfsg/tests/lib/rules/prefer-template.js-180- errors ############################################## eslint-5.16.0~dfsg/tests/lib/rules/prefer-template.js-183- code: "foo + \"does not unescape an escaped single quote in a double-quoted string: \\'\"", eslint-5.16.0~dfsg/tests/lib/rules/prefer-template.js:184: output: "`${foo }does not unescape an escaped single quote in a double-quoted string: \\'`", eslint-5.16.0~dfsg/tests/lib/rules/prefer-template.js-185- errors ############################################## eslint-5.16.0~dfsg/tests/lib/rules/prefer-template.js-188- code: "foo + 'handles unicode escapes correctly: \\x27'", // "\x27" === "'" eslint-5.16.0~dfsg/tests/lib/rules/prefer-template.js:189: output: "`${foo }handles unicode escapes correctly: \\x27`", eslint-5.16.0~dfsg/tests/lib/rules/prefer-template.js-190- errors ############################################## eslint-5.16.0~dfsg/tests/lib/rules/prefer-template.js-203- code: "foo + '\\\\033'", eslint-5.16.0~dfsg/tests/lib/rules/prefer-template.js:204: output: "`${foo }\\\\033`", eslint-5.16.0~dfsg/tests/lib/rules/prefer-template.js-205- errors ############################################## eslint-5.16.0~dfsg/tests/lib/rules/prefer-template.js-208- code: "foo + '\\0'", eslint-5.16.0~dfsg/tests/lib/rules/prefer-template.js:209: output: "`${foo }\\0`", eslint-5.16.0~dfsg/tests/lib/rules/prefer-template.js-210- errors ############################################## eslint-5.16.0~dfsg/tests/lib/rules/quotes.js-53- { code: "var foo = `\n`;", options: ["single"], parserOptions: { ecmaVersion: 6 } }, eslint-5.16.0~dfsg/tests/lib/rules/quotes.js:54: { code: "var foo = `back${x}tick`;", options: ["double"], parserOptions: { ecmaVersion: 6 } }, eslint-5.16.0~dfsg/tests/lib/rules/quotes.js-55- { code: "var foo = tag`backtick`;", options: ["double"], parserOptions: { ecmaVersion: 6 } }, ############################################## eslint-5.16.0~dfsg/tests/lib/rules/quotes.js-166- code: "var foo = 'b${x}a$r';", eslint-5.16.0~dfsg/tests/lib/rules/quotes.js:167: output: "var foo = `b\\${x}a$r`;", eslint-5.16.0~dfsg/tests/lib/rules/quotes.js-168- options: ["backtick"], ############################################## eslint-5.16.0~dfsg/tests/lib/rules/sort-vars.js-220- { eslint-5.16.0~dfsg/tests/lib/rules/sort-vars.js:221: code: "var b = 0, a = `${b}`;", eslint-5.16.0~dfsg/tests/lib/rules/sort-vars.js-222- output: null, ############################################## eslint-5.16.0~dfsg/tests/lib/rules/sort-vars.js-226- { eslint-5.16.0~dfsg/tests/lib/rules/sort-vars.js:227: code: "var b = 0, a = `${f()}`", eslint-5.16.0~dfsg/tests/lib/rules/sort-vars.js-228- output: null, ############################################## eslint-5.16.0~dfsg/tests/lib/rules/sort-vars.js-247- { eslint-5.16.0~dfsg/tests/lib/rules/sort-vars.js:248: code: "var b = `${f()}`, c, d, a;", eslint-5.16.0~dfsg/tests/lib/rules/sort-vars.js-249- output: null, ############################################## eslint-5.16.0~dfsg/tests/lib/rules/space-in-parens.js-38- { code: "var foo = `(bar)`;", options: ["always"], parserOptions: { ecmaVersion: 6 } }, eslint-5.16.0~dfsg/tests/lib/rules/space-in-parens.js:39: { code: "var foo = `(bar ${baz})`;", options: ["always"], parserOptions: { ecmaVersion: 6 } }, eslint-5.16.0~dfsg/tests/lib/rules/space-in-parens.js:40: { code: "var foo = `(bar ${( 1 + 2 )})`;", options: ["always"], parserOptions: { ecmaVersion: 6 } }, eslint-5.16.0~dfsg/tests/lib/rules/space-in-parens.js-41- { code: "bar()", options: ["never"] }, ############################################## eslint-5.16.0~dfsg/tests/lib/rules/space-in-parens.js-48- { code: "var foo = `( bar )`;", options: ["never"], parserOptions: { ecmaVersion: 6 } }, eslint-5.16.0~dfsg/tests/lib/rules/space-in-parens.js:49: { code: "var foo = `( bar ${baz} )`;", options: ["never"], parserOptions: { ecmaVersion: 6 } }, eslint-5.16.0~dfsg/tests/lib/rules/space-in-parens.js:50: { code: "var foo = `(bar ${(1 + 2)})`;", options: ["never"], parserOptions: { ecmaVersion: 6 } }, eslint-5.16.0~dfsg/tests/lib/rules/space-in-parens.js-51- ############################################## eslint-5.16.0~dfsg/tests/lib/rules/space-in-parens.js-418- { eslint-5.16.0~dfsg/tests/lib/rules/space-in-parens.js:419: code: "var foo = `(bar ${(1 + 2 )})`;", eslint-5.16.0~dfsg/tests/lib/rules/space-in-parens.js:420: output: "var foo = `(bar ${(1 + 2)})`;", eslint-5.16.0~dfsg/tests/lib/rules/space-in-parens.js-421- options: ["never"], ############################################## eslint-5.16.0~dfsg/tests/lib/rules/space-in-parens.js-425- { eslint-5.16.0~dfsg/tests/lib/rules/space-in-parens.js:426: code: "var foo = `(bar ${(1 + 2 )})`;", eslint-5.16.0~dfsg/tests/lib/rules/space-in-parens.js:427: output: "var foo = `(bar ${( 1 + 2 )})`;", eslint-5.16.0~dfsg/tests/lib/rules/space-in-parens.js-428- options: ["always"], ############################################## eslint-5.16.0~dfsg/tests/lib/rules/template-curly-spacing.js-23- "{ foo }", eslint-5.16.0~dfsg/tests/lib/rules/template-curly-spacing.js:24: "`${foo} ${bar}`", eslint-5.16.0~dfsg/tests/lib/rules/template-curly-spacing.js:25: { code: "`${foo} ${bar} ${\n baz\n}`", options: ["never"] }, eslint-5.16.0~dfsg/tests/lib/rules/template-curly-spacing.js:26: { code: "`${ foo } ${ bar } ${\n baz\n}`", options: ["always"] }, eslint-5.16.0~dfsg/tests/lib/rules/template-curly-spacing.js:27: "tag`${foo} ${bar}`", eslint-5.16.0~dfsg/tests/lib/rules/template-curly-spacing.js:28: { code: "tag`${foo} ${bar} ${\n baz\n}`", options: ["never"] }, eslint-5.16.0~dfsg/tests/lib/rules/template-curly-spacing.js:29: { code: "tag`${ foo } ${ bar } ${\n baz\n}`", options: ["always"] } eslint-5.16.0~dfsg/tests/lib/rules/template-curly-spacing.js-30- ], ############################################## eslint-5.16.0~dfsg/tests/lib/rules/template-curly-spacing.js-32- { eslint-5.16.0~dfsg/tests/lib/rules/template-curly-spacing.js:33: code: "`${ foo } ${ bar }`", eslint-5.16.0~dfsg/tests/lib/rules/template-curly-spacing.js:34: output: "`${foo} ${bar}`", eslint-5.16.0~dfsg/tests/lib/rules/template-curly-spacing.js-35- errors: [ ############################################## eslint-5.16.0~dfsg/tests/lib/rules/template-curly-spacing.js-42- { eslint-5.16.0~dfsg/tests/lib/rules/template-curly-spacing.js:43: code: "`${ foo } ${ bar }`", eslint-5.16.0~dfsg/tests/lib/rules/template-curly-spacing.js:44: output: "`${foo} ${bar}`", eslint-5.16.0~dfsg/tests/lib/rules/template-curly-spacing.js-45- options: ["never"], ############################################## eslint-5.16.0~dfsg/tests/lib/rules/template-curly-spacing.js-53- { eslint-5.16.0~dfsg/tests/lib/rules/template-curly-spacing.js:54: code: "`${foo} ${bar}`", eslint-5.16.0~dfsg/tests/lib/rules/template-curly-spacing.js:55: output: "`${ foo } ${ bar }`", eslint-5.16.0~dfsg/tests/lib/rules/template-curly-spacing.js-56- options: ["always"], ############################################## eslint-5.16.0~dfsg/tests/lib/rules/template-curly-spacing.js-64- { eslint-5.16.0~dfsg/tests/lib/rules/template-curly-spacing.js:65: code: "tag`${ foo } ${ bar }`", eslint-5.16.0~dfsg/tests/lib/rules/template-curly-spacing.js:66: output: "tag`${foo} ${bar}`", eslint-5.16.0~dfsg/tests/lib/rules/template-curly-spacing.js-67- errors: [ ############################################## eslint-5.16.0~dfsg/tests/lib/rules/template-curly-spacing.js-74- { eslint-5.16.0~dfsg/tests/lib/rules/template-curly-spacing.js:75: code: "tag`${ foo } ${ bar }`", eslint-5.16.0~dfsg/tests/lib/rules/template-curly-spacing.js:76: output: "tag`${foo} ${bar}`", eslint-5.16.0~dfsg/tests/lib/rules/template-curly-spacing.js-77- options: ["never"], ############################################## eslint-5.16.0~dfsg/tests/lib/rules/template-curly-spacing.js-85- { eslint-5.16.0~dfsg/tests/lib/rules/template-curly-spacing.js:86: code: "tag`${foo} ${bar}`", eslint-5.16.0~dfsg/tests/lib/rules/template-curly-spacing.js:87: output: "tag`${ foo } ${ bar }`", eslint-5.16.0~dfsg/tests/lib/rules/template-curly-spacing.js-88- options: ["always"], ############################################## eslint-5.16.0~dfsg/tests/lib/rules/template-tag-spacing.js-27- { code: "tag `name`", options: ["always"] }, eslint-5.16.0~dfsg/tests/lib/rules/template-tag-spacing.js:28: "tag`hello ${name}`", eslint-5.16.0~dfsg/tests/lib/rules/template-tag-spacing.js:29: { code: "tag`hello ${name}`", options: ["never"] }, eslint-5.16.0~dfsg/tests/lib/rules/template-tag-spacing.js:30: { code: "tag `hello ${name}`", options: ["always"] }, eslint-5.16.0~dfsg/tests/lib/rules/template-tag-spacing.js-31- "tag/*here's a comment*/`Hello world`", ############################################## eslint-5.16.0~dfsg/tests/lib/rules/template-tag-spacing.js-37- { code: "new tag `name`", options: ["always"] }, eslint-5.16.0~dfsg/tests/lib/rules/template-tag-spacing.js:38: "new tag`hello ${name}`", eslint-5.16.0~dfsg/tests/lib/rules/template-tag-spacing.js:39: { code: "new tag`hello ${name}`", options: ["never"] }, eslint-5.16.0~dfsg/tests/lib/rules/template-tag-spacing.js:40: { code: "new tag `hello ${name}`", options: ["always"] }, eslint-5.16.0~dfsg/tests/lib/rules/template-tag-spacing.js-41- "(tag)`name`", ############################################## eslint-5.16.0~dfsg/tests/lib/rules/template-tag-spacing.js-43- { code: "(tag) `name`", options: ["always"] }, eslint-5.16.0~dfsg/tests/lib/rules/template-tag-spacing.js:44: "(tag)`hello ${name}`", eslint-5.16.0~dfsg/tests/lib/rules/template-tag-spacing.js:45: { code: "(tag)`hello ${name}`", options: ["never"] }, eslint-5.16.0~dfsg/tests/lib/rules/template-tag-spacing.js:46: { code: "(tag) `hello ${name}`", options: ["always"] }, eslint-5.16.0~dfsg/tests/lib/rules/template-tag-spacing.js-47- "new (tag)`name`", ############################################## eslint-5.16.0~dfsg/tests/lib/rules/template-tag-spacing.js-49- { code: "new (tag) `name`", options: ["always"] }, eslint-5.16.0~dfsg/tests/lib/rules/template-tag-spacing.js:50: "new (tag)`hello ${name}`", eslint-5.16.0~dfsg/tests/lib/rules/template-tag-spacing.js:51: { code: "new (tag)`hello ${name}`", options: ["never"] }, eslint-5.16.0~dfsg/tests/lib/rules/template-tag-spacing.js:52: { code: "new (tag) `hello ${name}`", options: ["always"] } eslint-5.16.0~dfsg/tests/lib/rules/template-tag-spacing.js-53- ], ############################################## eslint-5.16.0~dfsg/tests/lib/rules/template-tag-spacing.js-101- { eslint-5.16.0~dfsg/tests/lib/rules/template-tag-spacing.js:102: code: "tag `hello ${name}`", eslint-5.16.0~dfsg/tests/lib/rules/template-tag-spacing.js:103: output: "tag`hello ${name}`", eslint-5.16.0~dfsg/tests/lib/rules/template-tag-spacing.js-104- errors: [unexpectedError] ############################################## eslint-5.16.0~dfsg/tests/lib/rules/template-tag-spacing.js-106- { eslint-5.16.0~dfsg/tests/lib/rules/template-tag-spacing.js:107: code: "tag `hello ${name}`", eslint-5.16.0~dfsg/tests/lib/rules/template-tag-spacing.js:108: output: "tag`hello ${name}`", eslint-5.16.0~dfsg/tests/lib/rules/template-tag-spacing.js-109- options: ["never"], ############################################## eslint-5.16.0~dfsg/tests/lib/rules/template-tag-spacing.js-112- { eslint-5.16.0~dfsg/tests/lib/rules/template-tag-spacing.js:113: code: "tag`hello ${name}`", eslint-5.16.0~dfsg/tests/lib/rules/template-tag-spacing.js:114: output: "tag `hello ${name}`", eslint-5.16.0~dfsg/tests/lib/rules/template-tag-spacing.js-115- options: ["always"], ############################################## eslint-5.16.0~dfsg/tests/lib/rules/template-tag-spacing.js-135- { eslint-5.16.0~dfsg/tests/lib/rules/template-tag-spacing.js:136: code: "new tag `hello ${name}`", eslint-5.16.0~dfsg/tests/lib/rules/template-tag-spacing.js:137: output: "new tag`hello ${name}`", eslint-5.16.0~dfsg/tests/lib/rules/template-tag-spacing.js-138- errors: [unexpectedError] ############################################## eslint-5.16.0~dfsg/tests/lib/rules/template-tag-spacing.js-140- { eslint-5.16.0~dfsg/tests/lib/rules/template-tag-spacing.js:141: code: "new tag `hello ${name}`", eslint-5.16.0~dfsg/tests/lib/rules/template-tag-spacing.js:142: output: "new tag`hello ${name}`", eslint-5.16.0~dfsg/tests/lib/rules/template-tag-spacing.js-143- options: ["never"], ############################################## eslint-5.16.0~dfsg/tests/lib/rules/template-tag-spacing.js-146- { eslint-5.16.0~dfsg/tests/lib/rules/template-tag-spacing.js:147: code: "new tag`hello ${name}`", eslint-5.16.0~dfsg/tests/lib/rules/template-tag-spacing.js:148: output: "new tag `hello ${name}`", eslint-5.16.0~dfsg/tests/lib/rules/template-tag-spacing.js-149- options: ["always"], ############################################## eslint-5.16.0~dfsg/tests/lib/rules/template-tag-spacing.js-169- { eslint-5.16.0~dfsg/tests/lib/rules/template-tag-spacing.js:170: code: "(tag) `hello ${name}`", eslint-5.16.0~dfsg/tests/lib/rules/template-tag-spacing.js:171: output: "(tag)`hello ${name}`", eslint-5.16.0~dfsg/tests/lib/rules/template-tag-spacing.js-172- errors: [unexpectedError] ############################################## eslint-5.16.0~dfsg/tests/lib/rules/template-tag-spacing.js-174- { eslint-5.16.0~dfsg/tests/lib/rules/template-tag-spacing.js:175: code: "(tag) `hello ${name}`", eslint-5.16.0~dfsg/tests/lib/rules/template-tag-spacing.js:176: output: "(tag)`hello ${name}`", eslint-5.16.0~dfsg/tests/lib/rules/template-tag-spacing.js-177- options: ["never"], ############################################## eslint-5.16.0~dfsg/tests/lib/rules/template-tag-spacing.js-180- { eslint-5.16.0~dfsg/tests/lib/rules/template-tag-spacing.js:181: code: "(tag)`hello ${name}`", eslint-5.16.0~dfsg/tests/lib/rules/template-tag-spacing.js:182: output: "(tag) `hello ${name}`", eslint-5.16.0~dfsg/tests/lib/rules/template-tag-spacing.js-183- options: ["always"], ############################################## eslint-5.16.0~dfsg/tests/lib/rules/template-tag-spacing.js-203- { eslint-5.16.0~dfsg/tests/lib/rules/template-tag-spacing.js:204: code: "new (tag) `hello ${name}`", eslint-5.16.0~dfsg/tests/lib/rules/template-tag-spacing.js:205: output: "new (tag)`hello ${name}`", eslint-5.16.0~dfsg/tests/lib/rules/template-tag-spacing.js-206- errors: [unexpectedError] ############################################## eslint-5.16.0~dfsg/tests/lib/rules/template-tag-spacing.js-208- { eslint-5.16.0~dfsg/tests/lib/rules/template-tag-spacing.js:209: code: "new (tag) `hello ${name}`", eslint-5.16.0~dfsg/tests/lib/rules/template-tag-spacing.js:210: output: "new (tag)`hello ${name}`", eslint-5.16.0~dfsg/tests/lib/rules/template-tag-spacing.js-211- options: ["never"], ############################################## eslint-5.16.0~dfsg/tests/lib/rules/template-tag-spacing.js-214- { eslint-5.16.0~dfsg/tests/lib/rules/template-tag-spacing.js:215: code: "new (tag)`hello ${name}`", eslint-5.16.0~dfsg/tests/lib/rules/template-tag-spacing.js:216: output: "new (tag) `hello ${name}`", eslint-5.16.0~dfsg/tests/lib/rules/template-tag-spacing.js-217- options: ["always"], ############################################## eslint-5.16.0~dfsg/tests/lib/rules/valid-typeof.js-73- { eslint-5.16.0~dfsg/tests/lib/rules/valid-typeof.js:74: code: "typeof foo === `str${somethingElse}`", eslint-5.16.0~dfsg/tests/lib/rules/valid-typeof.js-75- parserOptions: { ecmaVersion: 6 } ############################################## eslint-5.16.0~dfsg/tests/lib/rules/valid-typeof.js-158- { eslint-5.16.0~dfsg/tests/lib/rules/valid-typeof.js:159: code: "typeof foo === `undefined${foo}`", eslint-5.16.0~dfsg/tests/lib/rules/valid-typeof.js-160- options: [{ requireStringLiterals: true }], ############################################## eslint-5.16.0~dfsg/tests/lib/rules/valid-typeof.js-164- { eslint-5.16.0~dfsg/tests/lib/rules/valid-typeof.js:165: code: "typeof foo === `${string}`", eslint-5.16.0~dfsg/tests/lib/rules/valid-typeof.js-166- options: [{ requireStringLiterals: true }], ############################################## eslint-5.16.0~dfsg/tests/lib/testers/rule-tester.js-930- } else { eslint-5.16.0~dfsg/tests/lib/testers/rule-tester.js:931: reject(new Error(`Expected ${expectedValue} to be emitted but ${emittedValue} was emitted instead.`)); eslint-5.16.0~dfsg/tests/lib/testers/rule-tester.js-932- } ############################################## eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js-55- callCount > 0, eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js:56: `Expected ${func.toString()} to be called at least once but it was not called` eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js-57- ); ############################################## eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js-456- eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js:457: it("should return null for `a[`${b}`]`", () => { eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js:458: const ast = espree.parse("a[`${b}`]", { ecmaVersion: 6 }); eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js-459- const node = ast.body[0].expression; ############################################## eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js-533- eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js:534: it("should return null for `[`${b}`]: 1`", () => { eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js:535: const ast = espree.parse("({[`${b}`]: 1})", { ecmaVersion: 6 }); eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js-536- const node = ast.body[0].expression.properties[0]; ############################################## eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js-645- Object.keys(expectedResults).forEach(key => { eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js:646: it(`should return ${expectedResults[key]} for ${key}`, () => { eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js-647- assert.strictEqual(astUtils.isDecimalInteger(espree.parse(key).body[0].expression), expectedResults[key]); ############################################## eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js-698- Object.keys(expectedResults).forEach(key => { eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js:699: it(`should return "${expectedResults[key]}" for "${key}".`, () => { eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js-700- linter.defineRule("checker", mustCall(() => ({ ############################################## eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js-771- eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js:772: it(`should return "${JSON.stringify(expectedLoc)}" for "${key}".`, () => { eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js-773- linter.defineRule("checker", mustCall(() => ({ ############################################## eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js-794- Object.keys(expectedResults).forEach(key => { eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js:795: it(`should return ${expectedResults[key]} for ${key}`, () => { eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js-796- const ast = espree.parse(key); ############################################## eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js-812- Object.keys(expectedResults).forEach(key => { eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js:813: it(`should return ${expectedResults[key]} for ${key}`, () => { eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js-814- const ast = espree.parse(key, { ecmaVersion: 6 }); ############################################## eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js-828- Object.keys(expectedResults).forEach(key => { eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js:829: it(`should return ${expectedResults[key]} for ${key}`, () => { eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js-830- const ast = espree.parse(key, { tokens: true, comment: true, range: true, loc: true }); ############################################## eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js-865- Object.keys(EXPECTED_RESULTS).forEach(key => { eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js:866: it(`returns ${EXPECTED_RESULTS[key]} for ${key}`, () => { eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js-867- const ast = espree.parse(key, { ecmaVersion: 6 }); ############################################## eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js-879- tokens.forEach((token, index) => { eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js:880: it(`should return ${expected[index]} for '${token.value}'.`, () => { eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js-881- assert.strictEqual(astUtils.isArrowToken(token), expected[index]); ############################################## eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js-892- tokens.forEach((token, index) => { eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js:893: it(`should return ${expected[index]} for '${token.value}'.`, () => { eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js-894- assert.strictEqual(astUtils.isClosingBraceToken(token), expected[index]); ############################################## eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js-900- tokens.forEach((token, index) => { eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js:901: it(`should return ${expected[index]} for '${token.value}'.`, () => { eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js-902- assert.strictEqual(astUtils.isNotClosingBraceToken(token), !expected[index]); ############################################## eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js-914- tokens.forEach((token, index) => { eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js:915: it(`should return ${expected[index]} for '${token.value}'.`, () => { eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js-916- assert.strictEqual(astUtils.isClosingBracketToken(token), expected[index]); ############################################## eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js-922- tokens.forEach((token, index) => { eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js:923: it(`should return ${expected[index]} for '${token.value}'.`, () => { eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js-924- assert.strictEqual(astUtils.isNotClosingBracketToken(token), !expected[index]); ############################################## eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js-936- tokens.forEach((token, index) => { eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js:937: it(`should return ${expected[index]} for '${token.value}'.`, () => { eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js-938- assert.strictEqual(astUtils.isClosingParenToken(token), expected[index]); ############################################## eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js-944- tokens.forEach((token, index) => { eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js:945: it(`should return ${expected[index]} for '${token.value}'.`, () => { eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js-946- assert.strictEqual(astUtils.isNotClosingParenToken(token), !expected[index]); ############################################## eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js-958- tokens.forEach((token, index) => { eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js:959: it(`should return ${expected[index]} for '${token.value}'.`, () => { eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js-960- assert.strictEqual(astUtils.isColonToken(token), expected[index]); ############################################## eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js-966- tokens.forEach((token, index) => { eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js:967: it(`should return ${expected[index]} for '${token.value}'.`, () => { eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js-968- assert.strictEqual(astUtils.isNotColonToken(token), !expected[index]); ############################################## eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js-980- tokens.forEach((token, index) => { eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js:981: it(`should return ${expected[index]} for '${token.value}'.`, () => { eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js-982- assert.strictEqual(astUtils.isCommaToken(token), expected[index]); ############################################## eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js-988- tokens.forEach((token, index) => { eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js:989: it(`should return ${expected[index]} for '${token.value}'.`, () => { eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js-990- assert.strictEqual(astUtils.isNotCommaToken(token), !expected[index]); ############################################## eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js-1000- ast.tokens.forEach(token => { eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js:1001: it(`should return false for '${token.value}'.`, () => { eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js-1002- assert.strictEqual(astUtils.isCommentToken(token), false); ############################################## eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js-1005- ast.comments.forEach(comment => { eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js:1006: it(`should return true for '${comment.value}'.`, () => { eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js-1007- assert.strictEqual(astUtils.isCommentToken(comment), true); ############################################## eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js-1017- tokens.forEach((token, index) => { eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js:1018: it(`should return ${expected[index]} for '${token.value}'.`, () => { eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js-1019- assert.strictEqual(astUtils.isKeywordToken(token), expected[index]); ############################################## eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js-1030- tokens.forEach((token, index) => { eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js:1031: it(`should return ${expected[index]} for '${token.value}'.`, () => { eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js-1032- assert.strictEqual(astUtils.isOpeningBraceToken(token), expected[index]); ############################################## eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js-1038- tokens.forEach((token, index) => { eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js:1039: it(`should return ${expected[index]} for '${token.value}'.`, () => { eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js-1040- assert.strictEqual(astUtils.isNotOpeningBraceToken(token), !expected[index]); ############################################## eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js-1052- tokens.forEach((token, index) => { eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js:1053: it(`should return ${expected[index]} for '${token.value}'.`, () => { eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js-1054- assert.strictEqual(astUtils.isOpeningBracketToken(token), expected[index]); ############################################## eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js-1060- tokens.forEach((token, index) => { eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js:1061: it(`should return ${expected[index]} for '${token.value}'.`, () => { eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js-1062- assert.strictEqual(astUtils.isNotOpeningBracketToken(token), !expected[index]); ############################################## eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js-1074- tokens.forEach((token, index) => { eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js:1075: it(`should return ${expected[index]} for '${token.value}'.`, () => { eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js-1076- assert.strictEqual(astUtils.isOpeningParenToken(token), expected[index]); ############################################## eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js-1082- tokens.forEach((token, index) => { eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js:1083: it(`should return ${expected[index]} for '${token.value}'.`, () => { eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js-1084- assert.strictEqual(astUtils.isNotOpeningParenToken(token), !expected[index]); ############################################## eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js-1096- tokens.forEach((token, index) => { eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js:1097: it(`should return ${expected[index]} for '${token.value}'.`, () => { eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js-1098- assert.strictEqual(astUtils.isSemicolonToken(token), expected[index]); ############################################## eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js-1104- tokens.forEach((token, index) => { eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js:1105: it(`should return ${expected[index]} for '${token.value}'.`, () => { eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js-1106- assert.strictEqual(astUtils.isNotSemicolonToken(token), !expected[index]); ############################################## eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js-1122- Object.keys(EXPECTED_RESULTS).forEach(key => { eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js:1123: it(`returns ${EXPECTED_RESULTS[key]} for ${key}`, () => { eslint-5.16.0~dfsg/tests/lib/util/ast-utils.js-1124- const ast = espree.parse(key, { ecmaVersion: 6 }); ############################################## eslint-5.16.0~dfsg/tests/lib/util/glob-utils.js-39- before(() => { eslint-5.16.0~dfsg/tests/lib/util/glob-utils.js:40: fixtureDir = `${os.tmpdir()}/eslint/tests/fixtures/`; eslint-5.16.0~dfsg/tests/lib/util/glob-utils.js-41- sh.mkdir("-p", fixtureDir); ############################################## eslint-5.16.0~dfsg/tests/lib/util/glob-utils.js-77- const result = globUtils.resolveFileGlobPatterns(patterns, opts); eslint-5.16.0~dfsg/tests/lib/util/glob-utils.js:78: const expected = [`${getFixturePath("glob-util", "one-js-file").replace(/\\/gu, "/")}/**/*.js`]; eslint-5.16.0~dfsg/tests/lib/util/glob-utils.js-79- ############################################## eslint-5.16.0~dfsg/tests/lib/util/glob-utils.js-226- }); eslint-5.16.0~dfsg/tests/lib/util/glob-utils.js:227: }, `All files matched by '${patterns[0]}' are ignored.`); eslint-5.16.0~dfsg/tests/lib/util/glob-utils.js-228- }); ############################################## eslint-5.16.0~dfsg/tests/lib/util/glob-utils.js-251- }); eslint-5.16.0~dfsg/tests/lib/util/glob-utils.js:252: }, `All files matched by '${directory}' are ignored.`); eslint-5.16.0~dfsg/tests/lib/util/glob-utils.js-253- }); ############################################## eslint-5.16.0~dfsg/tests/lib/util/glob-utils.js-274- }); eslint-5.16.0~dfsg/tests/lib/util/glob-utils.js:275: }, `All files matched by '${directory}' are ignored.`); eslint-5.16.0~dfsg/tests/lib/util/glob-utils.js-276- }); ############################################## eslint-5.16.0~dfsg/tests/lib/util/glob-utils.js-298- }); eslint-5.16.0~dfsg/tests/lib/util/glob-utils.js:299: }, `No files matching '${filename}' were found.`); eslint-5.16.0~dfsg/tests/lib/util/glob-utils.js-300- }); ############################################## eslint-5.16.0~dfsg/tests/lib/util/glob-utils.js-309- }); eslint-5.16.0~dfsg/tests/lib/util/glob-utils.js:310: }, `No files matching '${filename}' were found.`); eslint-5.16.0~dfsg/tests/lib/util/glob-utils.js-311- }); ############################################## eslint-5.16.0~dfsg/tests/lib/util/glob-utils.js-318- globUtils.listFilesToProcess([pattern], options); eslint-5.16.0~dfsg/tests/lib/util/glob-utils.js:319: }, `All files matched by '${pattern}' are ignored.`); eslint-5.16.0~dfsg/tests/lib/util/glob-utils.js-320- }); ############################################## eslint-5.16.0~dfsg/tests/lib/util/glob-utils.js-328- globUtils.listFilesToProcess(patterns); eslint-5.16.0~dfsg/tests/lib/util/glob-utils.js:329: }, `No files matching '${patterns[0]}' were found.`); eslint-5.16.0~dfsg/tests/lib/util/glob-utils.js-330- }); ############################################## eslint-5.16.0~dfsg/tests/lib/util/glob-utils.js-352- globUtils.listFilesToProcess(patterns, options); eslint-5.16.0~dfsg/tests/lib/util/glob-utils.js:353: }, `All files matched by '${patterns[0]}' are ignored.`); eslint-5.16.0~dfsg/tests/lib/util/glob-utils.js-354- }); ############################################## eslint-5.16.0~dfsg/tests/lib/util/glob-utils.js-361- globUtils.listFilesToProcess(patterns, options); eslint-5.16.0~dfsg/tests/lib/util/glob-utils.js:362: }, `All files matched by '${patterns[0]}' are ignored.`); eslint-5.16.0~dfsg/tests/lib/util/glob-utils.js-363- }); ############################################## eslint-5.16.0~dfsg/tests/lib/util/ignored-paths.js-586- eslint-5.16.0~dfsg/tests/lib/util/ignored-paths.js:587: assert.isFalse(ignoredPaths.contains(`${getFixturePath("foo")}/../unignored.js`)); eslint-5.16.0~dfsg/tests/lib/util/ignored-paths.js-588- }); ############################################## eslint-5.16.0~dfsg/tests/lib/util/naming.js-29- ], (input, expected) => { eslint-5.16.0~dfsg/tests/lib/util/naming.js:30: it(`should return ${expected} when passed ${input}`, () => { eslint-5.16.0~dfsg/tests/lib/util/naming.js-31- const result = naming.normalizePackageName(input, "eslint-config"); ############################################## eslint-5.16.0~dfsg/tests/lib/util/naming.js-48- ], (input, expected) => { eslint-5.16.0~dfsg/tests/lib/util/naming.js:49: it(`should return ${expected} when passed ${input}`, () => { eslint-5.16.0~dfsg/tests/lib/util/naming.js-50- const result = naming.getShorthandName(input, "eslint-config"); ############################################## eslint-5.16.0~dfsg/tests/lib/util/source-code-fixer.js-226- eslint-5.16.0~dfsg/tests/lib/util/source-code-fixer.js:227: assert.strictEqual(result.output, TEST_CODE.replace("6 *", `${INSERT_IN_MIDDLE.fix.text}6 *`)); eslint-5.16.0~dfsg/tests/lib/util/source-code-fixer.js-228- assert.strictEqual(result.messages.length, 0); ############################################## eslint-5.16.0~dfsg/tests/lib/util/source-code-fixer.js-233- eslint-5.16.0~dfsg/tests/lib/util/source-code-fixer.js:234: assert.strictEqual(result.output, INSERT_AT_START.fix.text + TEST_CODE.replace("6 *", `${INSERT_IN_MIDDLE.fix.text}6 *`) + INSERT_AT_END.fix.text); eslint-5.16.0~dfsg/tests/lib/util/source-code-fixer.js-235- assert.strictEqual(result.messages.length, 0); ############################################## eslint-5.16.0~dfsg/tests/lib/util/source-code-fixer.js-392- eslint-5.16.0~dfsg/tests/lib/util/source-code-fixer.js:393: assert.strictEqual(result.output, `\uFEFF${TEST_CODE}`); eslint-5.16.0~dfsg/tests/lib/util/source-code-fixer.js-394- assert.isTrue(result.fixed); ############################################## eslint-5.16.0~dfsg/tests/lib/util/source-code-fixer.js-400- eslint-5.16.0~dfsg/tests/lib/util/source-code-fixer.js:401: assert.strictEqual(result.output, `\uFEFF// start\n${TEST_CODE}`); eslint-5.16.0~dfsg/tests/lib/util/source-code-fixer.js-402- assert.isTrue(result.fixed); ############################################## eslint-5.16.0~dfsg/tests/lib/util/source-code-fixer.js-416- eslint-5.16.0~dfsg/tests/lib/util/source-code-fixer.js:417: assert.strictEqual(result.output, `// start\n${TEST_CODE}`); eslint-5.16.0~dfsg/tests/lib/util/source-code-fixer.js-418- assert.isTrue(result.fixed); ############################################## eslint-5.16.0~dfsg/tests/lib/util/source-code-fixer.js-431- eslint-5.16.0~dfsg/tests/lib/util/source-code-fixer.js:432: const TEST_CODE_WITH_BOM = `\uFEFF${TEST_CODE}`; eslint-5.16.0~dfsg/tests/lib/util/source-code-fixer.js-433- ############################################## eslint-5.16.0~dfsg/tests/lib/util/source-code-fixer.js-438- eslint-5.16.0~dfsg/tests/lib/util/source-code-fixer.js:439: assert.strictEqual(result.output, `\uFEFF${TEST_CODE}${INSERT_AT_END.fix.text}`); eslint-5.16.0~dfsg/tests/lib/util/source-code-fixer.js-440- assert.strictEqual(result.messages.length, 0); ############################################## eslint-5.16.0~dfsg/tests/lib/util/source-code-fixer.js-445- eslint-5.16.0~dfsg/tests/lib/util/source-code-fixer.js:446: assert.strictEqual(result.output, `\uFEFF${INSERT_AT_START.fix.text}${TEST_CODE}`); eslint-5.16.0~dfsg/tests/lib/util/source-code-fixer.js-447- assert.strictEqual(result.messages.length, 0); ############################################## eslint-5.16.0~dfsg/tests/lib/util/source-code-fixer.js-452- eslint-5.16.0~dfsg/tests/lib/util/source-code-fixer.js:453: assert.strictEqual(result.output, `\uFEFF${TEST_CODE.replace("6 *", `${INSERT_IN_MIDDLE.fix.text}6 *`)}`); eslint-5.16.0~dfsg/tests/lib/util/source-code-fixer.js-454- assert.strictEqual(result.messages.length, 0); ############################################## eslint-5.16.0~dfsg/tests/lib/util/source-code-fixer.js-458- const result = SourceCodeFixer.applyFixes(TEST_CODE_WITH_BOM, [INSERT_IN_MIDDLE, INSERT_AT_START, INSERT_AT_END]); eslint-5.16.0~dfsg/tests/lib/util/source-code-fixer.js:459: const insertInMiddle = TEST_CODE.replace("6 *", `${INSERT_IN_MIDDLE.fix.text}6 *`); eslint-5.16.0~dfsg/tests/lib/util/source-code-fixer.js-460- eslint-5.16.0~dfsg/tests/lib/util/source-code-fixer.js:461: assert.strictEqual(result.output, `\uFEFF${INSERT_AT_START.fix.text}${insertInMiddle}${INSERT_AT_END.fix.text}`); eslint-5.16.0~dfsg/tests/lib/util/source-code-fixer.js-462- assert.strictEqual(result.messages.length, 0); ############################################## eslint-5.16.0~dfsg/tests/lib/util/source-code-fixer.js-467- eslint-5.16.0~dfsg/tests/lib/util/source-code-fixer.js:468: assert.strictEqual(result.output, `\uFEFF${TEST_CODE}`); eslint-5.16.0~dfsg/tests/lib/util/source-code-fixer.js-469- }); ############################################## eslint-5.16.0~dfsg/tests/lib/util/source-code-fixer.js-478- assert.strictEqual(result.messages.length, 0); eslint-5.16.0~dfsg/tests/lib/util/source-code-fixer.js:479: assert.strictEqual(result.output, `\uFEFF${TEST_CODE.replace("var", "let")}`); eslint-5.16.0~dfsg/tests/lib/util/source-code-fixer.js-480- assert.isTrue(result.fixed); ############################################## eslint-5.16.0~dfsg/tests/lib/util/source-code-fixer.js-486- assert.strictEqual(result.messages.length, 0); eslint-5.16.0~dfsg/tests/lib/util/source-code-fixer.js:487: assert.strictEqual(result.output, `\uFEFF${TEST_CODE.replace("answer", "foo")}`); eslint-5.16.0~dfsg/tests/lib/util/source-code-fixer.js-488- assert.isTrue(result.fixed); ############################################## eslint-5.16.0~dfsg/tests/lib/util/source-code-fixer.js-494- assert.strictEqual(result.messages.length, 0); eslint-5.16.0~dfsg/tests/lib/util/source-code-fixer.js:495: assert.strictEqual(result.output, `\uFEFF${TEST_CODE.replace("6", "5")}`); eslint-5.16.0~dfsg/tests/lib/util/source-code-fixer.js-496- assert.isTrue(result.fixed); ############################################## eslint-5.16.0~dfsg/tests/lib/util/source-code-fixer.js-514- assert.strictEqual(result.messages.length, 0); eslint-5.16.0~dfsg/tests/lib/util/source-code-fixer.js:515: assert.strictEqual(result.output, `\uFEFF${TEST_CODE.replace("var ", "")}`); eslint-5.16.0~dfsg/tests/lib/util/source-code-fixer.js-516- assert.isTrue(result.fixed); ############################################## eslint-5.16.0~dfsg/tests/lib/util/source-code-fixer.js-522- assert.strictEqual(result.messages.length, 0); eslint-5.16.0~dfsg/tests/lib/util/source-code-fixer.js:523: assert.strictEqual(result.output, `\uFEFF${TEST_CODE.replace("answer", "a")}`); eslint-5.16.0~dfsg/tests/lib/util/source-code-fixer.js-524- assert.isTrue(result.fixed); ############################################## eslint-5.16.0~dfsg/tests/lib/util/source-code-fixer.js-530- assert.strictEqual(result.messages.length, 0); eslint-5.16.0~dfsg/tests/lib/util/source-code-fixer.js:531: assert.strictEqual(result.output, `\uFEFF${TEST_CODE.replace(" * 7", "")}`); eslint-5.16.0~dfsg/tests/lib/util/source-code-fixer.js-532- assert.isTrue(result.fixed); ############################################## eslint-5.16.0~dfsg/tests/lib/util/source-code-fixer.js-556- eslint-5.16.0~dfsg/tests/lib/util/source-code-fixer.js:557: assert.strictEqual(result.output, `\uFEFF${TEST_CODE.replace("answer", "foo")}`); eslint-5.16.0~dfsg/tests/lib/util/source-code-fixer.js-558- assert.strictEqual(result.messages.length, 1); ############################################## eslint-5.16.0~dfsg/tests/lib/util/source-code-fixer.js-565- eslint-5.16.0~dfsg/tests/lib/util/source-code-fixer.js:566: assert.strictEqual(result.output, `\uFEFF${TEST_CODE.replace("var ", "")}`); eslint-5.16.0~dfsg/tests/lib/util/source-code-fixer.js-567- assert.strictEqual(result.messages.length, 1); ############################################## eslint-5.16.0~dfsg/tests/lib/util/source-code-fixer.js-574- eslint-5.16.0~dfsg/tests/lib/util/source-code-fixer.js:575: assert.strictEqual(result.output, `\uFEFF${TEST_CODE.replace("answer", "foo")}`); eslint-5.16.0~dfsg/tests/lib/util/source-code-fixer.js-576- assert.strictEqual(result.messages.length, 2); ############################################## eslint-5.16.0~dfsg/tests/lib/util/source-code-fixer.js-595- eslint-5.16.0~dfsg/tests/lib/util/source-code-fixer.js:596: assert.strictEqual(result.output, `\uFEFF${TEST_CODE}`); eslint-5.16.0~dfsg/tests/lib/util/source-code-fixer.js-597- assert.strictEqual(result.messages.length, 1); ############################################## eslint-5.16.0~dfsg/tests/lib/util/source-code-fixer.js-608- eslint-5.16.0~dfsg/tests/lib/util/source-code-fixer.js:609: assert.strictEqual(result.output, `\uFEFF${TEST_CODE}`); eslint-5.16.0~dfsg/tests/lib/util/source-code-fixer.js-610- assert.isTrue(result.fixed); ############################################## eslint-5.16.0~dfsg/tests/lib/util/source-code-fixer.js-616- eslint-5.16.0~dfsg/tests/lib/util/source-code-fixer.js:617: assert.strictEqual(result.output, `\uFEFF// start\n${TEST_CODE}`); eslint-5.16.0~dfsg/tests/lib/util/source-code-fixer.js-618- assert.isTrue(result.fixed); ############################################## eslint-5.16.0~dfsg/tests/lib/util/source-code-fixer.js-632- eslint-5.16.0~dfsg/tests/lib/util/source-code-fixer.js:633: assert.strictEqual(result.output, `// start\n${TEST_CODE}`); eslint-5.16.0~dfsg/tests/lib/util/source-code-fixer.js-634- assert.isTrue(result.fixed); ############################################## eslint-5.16.0~dfsg/tests/lib/util/source-code-utils.js-58- before(() => { eslint-5.16.0~dfsg/tests/lib/util/source-code-utils.js:59: fixtureDir = `${os.tmpdir()}/eslint/fixtures/source-code-util`; eslint-5.16.0~dfsg/tests/lib/util/source-code-utils.js-60- sh.mkdir("-p", fixtureDir); ############################################## eslint-5.16.0~dfsg/tests/lib/util/source-code-utils.js-162- getSourceCodeOfFiles(filename, { cwd: fixtureDir }); eslint-5.16.0~dfsg/tests/lib/util/source-code-utils.js:163: }, `No files matching '${filename}' were found.`); eslint-5.16.0~dfsg/tests/lib/util/source-code-utils.js-164- }); ############################################## eslint-5.16.0~dfsg/tests/lib/util/source-code.js-34- TEST_CODE = "var answer = 6 * 7;", eslint-5.16.0~dfsg/tests/lib/util/source-code.js:35: SHEBANG_TEST_CODE = `#!/usr/bin/env node\n${TEST_CODE}`; eslint-5.16.0~dfsg/tests/lib/util/source-code.js-36- ############################################## eslint-5.16.0~dfsg/tests/lib/util/source-code.js-1675- // Shebangs are normalized to line comments before parsing. eslint-5.16.0~dfsg/tests/lib/util/source-code.js:1676: ast = espree.parse(SHEBANG_TEST_CODE.replace(astUtils.SHEBANG_MATCHER, (match, captured) => `//${captured}`), DEFAULT_CONFIG); eslint-5.16.0~dfsg/tests/lib/util/source-code.js-1677- sourceCode = new SourceCode(SHEBANG_TEST_CODE, ast); ############################################## eslint-5.16.0~dfsg/tests/tools/eslint-fuzzer.js-25- // A comment to disable all core fixable rules eslint-5.16.0~dfsg/tests/tools/eslint-fuzzer.js:26: const disableFixableRulesComment = `// eslint-disable-line ${fixableRuleNames.join(",")}`; eslint-5.16.0~dfsg/tests/tools/eslint-fuzzer.js-27- ############################################## eslint-5.16.0~dfsg/tests/tools/eslint-fuzzer.js-109- message: "no foos allowed", eslint-5.16.0~dfsg/tests/tools/eslint-fuzzer.js:110: fix: fixer => fixer.replaceText(node, `bar ${disableFixableRulesComment}`) eslint-5.16.0~dfsg/tests/tools/eslint-fuzzer.js-111- }); ############################################## eslint-5.16.0~dfsg/tests/tools/eslint-fuzzer.js-122- */ eslint-5.16.0~dfsg/tests/tools/eslint-fuzzer.js:123: codeGenerator: () => `foo ${disableFixableRulesComment}`, eslint-5.16.0~dfsg/tests/tools/eslint-fuzzer.js-124- checkAutofixes: true, ############################################## eslint-5.16.0~dfsg/tests/tools/eslint-fuzzer.js-151- count: 1, eslint-5.16.0~dfsg/tests/tools/eslint-fuzzer.js:152: codeGenerator: () => `foo ${disableFixableRulesComment}`, eslint-5.16.0~dfsg/tests/tools/eslint-fuzzer.js-153- checkAutofixes: true, ############################################## eslint-5.16.0~dfsg/tests/tools/eslint-fuzzer.js-158- assert.strictEqual(results[0].type, "autofix"); eslint-5.16.0~dfsg/tests/tools/eslint-fuzzer.js:159: assert.strictEqual(results[0].text, `foo ${disableFixableRulesComment}`); eslint-5.16.0~dfsg/tests/tools/eslint-fuzzer.js-160- assert.deepStrictEqual(results[0].config.rules, { "test-fuzzer-rule": 2 }); ############################################## eslint-5.16.0~dfsg/tests/tools/eslint-fuzzer.js-164- severity: 2, eslint-5.16.0~dfsg/tests/tools/eslint-fuzzer.js:165: message: `Parsing error: ${expectedSyntaxError.message}`, eslint-5.16.0~dfsg/tests/tools/eslint-fuzzer.js-166- line: expectedSyntaxError.lineNumber, ############################################## eslint-5.16.0~dfsg/tests/tools/eslint-fuzzer.js-173- it("reports an autofix error with a minimal config and the text from the second pass", () => { eslint-5.16.0~dfsg/tests/tools/eslint-fuzzer.js:174: const intermediateCode = `bar ${disableFixableRulesComment}`; eslint-5.16.0~dfsg/tests/tools/eslint-fuzzer.js-175- ############################################## eslint-5.16.0~dfsg/tests/tools/eslint-fuzzer.js-197- count: 1, eslint-5.16.0~dfsg/tests/tools/eslint-fuzzer.js:198: codeGenerator: () => `foo ${disableFixableRulesComment}`, eslint-5.16.0~dfsg/tests/tools/eslint-fuzzer.js-199- checkAutofixes: true, ############################################## eslint-5.16.0~dfsg/tests/tools/eslint-fuzzer.js-210- severity: 2, eslint-5.16.0~dfsg/tests/tools/eslint-fuzzer.js:211: message: `Parsing error: ${expectedSyntaxError.message}`, eslint-5.16.0~dfsg/tests/tools/eslint-fuzzer.js-212- line: expectedSyntaxError.lineNumber, ############################################## eslint-5.16.0~dfsg/tests/tools/eslint-fuzzer.js-239- count: 1, eslint-5.16.0~dfsg/tests/tools/eslint-fuzzer.js:240: codeGenerator: () => `foo ${disableFixableRulesComment}`, eslint-5.16.0~dfsg/tests/tools/eslint-fuzzer.js-241- checkAutofixes: true, ############################################## eslint-5.16.0~dfsg/tests/tools/eslint-fuzzer.js-248- // TODO: (not-an-aardvark) It might be more useful to output the intermediate code here. eslint-5.16.0~dfsg/tests/tools/eslint-fuzzer.js:249: assert.strictEqual(results[0].text, `foo ${disableFixableRulesComment}`); eslint-5.16.0~dfsg/tests/tools/eslint-fuzzer.js-250- assert.deepStrictEqual(results[0].config.rules, { "test-fuzzer-rule": 2 }); ############################################## eslint-5.16.0~dfsg/tools/internal-rules/consistent-docs-url.js-73- const ruleId = path.basename(context.getFilename().replace(/.js$/u, "")); eslint-5.16.0~dfsg/tools/internal-rules/consistent-docs-url.js:74: const expected = `https://eslint.org/docs/rules/${ruleId}`; eslint-5.16.0~dfsg/tools/internal-rules/consistent-docs-url.js-75- const url = metaDocsUrl.value.value; ############################################## eslint-5.16.0~dfsg/tools/internal-rules/consistent-docs-url.js-79- node: metaDocsUrl.value, eslint-5.16.0~dfsg/tools/internal-rules/consistent-docs-url.js:80: message: `Incorrect url. Expected "${expected}" but got "${url}"` eslint-5.16.0~dfsg/tools/internal-rules/consistent-docs-url.js-81- }); ############################################## eslint-5.16.0~dfsg/tools/update-readme.js-76- <p>${ eslint-5.16.0~dfsg/tools/update-readme.js:77: sponsors[tier].map(sponsor => `<a href="${sponsor.url}"><img src="${sponsor.image}" alt="${sponsor.name}" height="${heights[tier]}"></a>`).join(" ") eslint-5.16.0~dfsg/tools/update-readme.js-78- }</p>`).join("") ############################################## eslint-5.16.0~dfsg/debian/patches/2002_avoid_regexpp.patch-36-- ) { eslint-5.16.0~dfsg/debian/patches/2002_avoid_regexpp.patch:37:- this._controlChars.push(`\\x${`0${cp.toString(16)}`.slice(-2)}`); eslint-5.16.0~dfsg/debian/patches/2002_avoid_regexpp.patch-38-- } ############################################## eslint-5.16.0~dfsg/debian/patches/2002_avoid_regexpp.patch-130-+ eslint-5.16.0~dfsg/debian/patches/2002_avoid_regexpp.patch:131:+ return `\\${match[0]}`; eslint-5.16.0~dfsg/debian/patches/2002_avoid_regexpp.patch-132-+ }); ############################################## eslint-5.16.0~dfsg/debian/patches/2002_avoid_regexpp.patch-136-+ return controlChars.map(x => { eslint-5.16.0~dfsg/debian/patches/2002_avoid_regexpp.patch:137:+ const hexCode = `0${x.charCodeAt(0).toString(16)}`.slice(-2); eslint-5.16.0~dfsg/debian/patches/2002_avoid_regexpp.patch-138-+ eslint-5.16.0~dfsg/debian/patches/2002_avoid_regexpp.patch:139:+ return `\\x${hexCode}`; eslint-5.16.0~dfsg/debian/patches/2002_avoid_regexpp.patch-140-+ }).concat(stringControlChars); ############################################## eslint-5.16.0~dfsg/debian/patches/2002_avoid_regexpp.patch-181-- if (temp) { eslint-5.16.0~dfsg/debian/patches/2002_avoid_regexpp.patch:182:- allowedFlags = new RegExp(`[${temp}]`, "giu"); eslint-5.16.0~dfsg/debian/patches/2002_avoid_regexpp.patch-183-- } ############################################## eslint-5.16.0~dfsg/debian/patches/2002_avoid_regexpp.patch-219-- } catch (err) { eslint-5.16.0~dfsg/debian/patches/2002_avoid_regexpp.patch:220:- return `Invalid flags supplied to RegExp constructor '${flags}'`; eslint-5.16.0~dfsg/debian/patches/2002_avoid_regexpp.patch-221-- } ############################################## eslint-5.16.0~dfsg/debian/patches/2002_avoid_regexpp.patch-235-- flags = flags.replace(allowedFlags, ""); eslint-5.16.0~dfsg/debian/patches/2002_avoid_regexpp.patch:236:+ flags = flags.replace(new RegExp(`[${allowedFlags}]`, "gi"), ""); eslint-5.16.0~dfsg/debian/patches/2002_avoid_regexpp.patch-237- } ############################################## eslint-5.16.0~dfsg/debian/patches/2002_avoid_regexpp.patch-260-+ try { eslint-5.16.0~dfsg/debian/patches/2002_avoid_regexpp.patch:261:+ espree.parse(`/./${flags}`, context.parserOptions); eslint-5.16.0~dfsg/debian/patches/2002_avoid_regexpp.patch-262-+ } catch (ex) { ############################################## eslint-5.16.0~dfsg/debian/patches/2003_avoid_import-fresh.patch-23- function loadJSConfigFile(filePath) { eslint-5.16.0~dfsg/debian/patches/2003_avoid_import-fresh.patch:24: debug(`Loading JS config file: ${filePath}`); eslint-5.16.0~dfsg/debian/patches/2003_avoid_import-fresh.patch-25- try { ############################################## eslint-5.16.0~dfsg/debian/patches/2003_avoid_import-fresh.patch-44- } catch (e) { eslint-5.16.0~dfsg/debian/patches/2003_avoid_import-fresh.patch:45: debug(`Error reading JavaScript file: ${filePath}`); eslint-5.16.0~dfsg/debian/patches/2003_avoid_import-fresh.patch:46: e.message = `Cannot read config file: ${filePath}\nError: ${e.message}`; ############################################## eslint-5.16.0~dfsg/.pc/1001_use_regenerate-unicode-properties.patch/lib/rules/capitalized-comments.js-93- if (ignorePatternStr) { eslint-5.16.0~dfsg/.pc/1001_use_regenerate-unicode-properties.patch/lib/rules/capitalized-comments.js:94: const regExp = RegExp(`^\\s*(?:${ignorePatternStr})`); // eslint-disable-line require-unicode-regexp eslint-5.16.0~dfsg/.pc/1001_use_regenerate-unicode-properties.patch/lib/rules/capitalized-comments.js-95- ############################################## eslint-5.16.0~dfsg/.pc/2002_avoid_regexpp.patch/lib/rules/no-control-regex.js-29- ) { eslint-5.16.0~dfsg/.pc/2002_avoid_regexpp.patch/lib/rules/no-control-regex.js:30: this._controlChars.push(`\\x${`0${cp.toString(16)}`.slice(-2)}`); eslint-5.16.0~dfsg/.pc/2002_avoid_regexpp.patch/lib/rules/no-control-regex.js-31- } ############################################## eslint-5.16.0~dfsg/.pc/2002_avoid_regexpp.patch/lib/rules/no-invalid-regexp.js-53- if (temp) { eslint-5.16.0~dfsg/.pc/2002_avoid_regexpp.patch/lib/rules/no-invalid-regexp.js:54: allowedFlags = new RegExp(`[${temp}]`, "giu"); eslint-5.16.0~dfsg/.pc/2002_avoid_regexpp.patch/lib/rules/no-invalid-regexp.js-55- } ############################################## eslint-5.16.0~dfsg/.pc/2002_avoid_regexpp.patch/lib/rules/no-invalid-regexp.js-92- } catch (err) { eslint-5.16.0~dfsg/.pc/2002_avoid_regexpp.patch/lib/rules/no-invalid-regexp.js:93: return `Invalid flags supplied to RegExp constructor '${flags}'`; eslint-5.16.0~dfsg/.pc/2002_avoid_regexpp.patch/lib/rules/no-invalid-regexp.js-94- } ############################################## eslint-5.16.0~dfsg/.pc/2003_avoid_import-fresh.patch/lib/config/config-file.js-86-function loadYAMLConfigFile(filePath) { eslint-5.16.0~dfsg/.pc/2003_avoid_import-fresh.patch/lib/config/config-file.js:87: debug(`Loading YAML config file: ${filePath}`); eslint-5.16.0~dfsg/.pc/2003_avoid_import-fresh.patch/lib/config/config-file.js-88- ############################################## eslint-5.16.0~dfsg/.pc/2003_avoid_import-fresh.patch/lib/config/config-file.js-96- } catch (e) { eslint-5.16.0~dfsg/.pc/2003_avoid_import-fresh.patch/lib/config/config-file.js:97: debug(`Error reading YAML file: ${filePath}`); eslint-5.16.0~dfsg/.pc/2003_avoid_import-fresh.patch/lib/config/config-file.js:98: e.message = `Cannot read config file: ${filePath}\nError: ${e.message}`; eslint-5.16.0~dfsg/.pc/2003_avoid_import-fresh.patch/lib/config/config-file.js-99- throw e; ############################################## eslint-5.16.0~dfsg/.pc/2003_avoid_import-fresh.patch/lib/config/config-file.js-110-function loadJSONConfigFile(filePath) { eslint-5.16.0~dfsg/.pc/2003_avoid_import-fresh.patch/lib/config/config-file.js:111: debug(`Loading JSON config file: ${filePath}`); eslint-5.16.0~dfsg/.pc/2003_avoid_import-fresh.patch/lib/config/config-file.js-112- ############################################## eslint-5.16.0~dfsg/.pc/2003_avoid_import-fresh.patch/lib/config/config-file.js-115- } catch (e) { eslint-5.16.0~dfsg/.pc/2003_avoid_import-fresh.patch/lib/config/config-file.js:116: debug(`Error reading JSON file: ${filePath}`); eslint-5.16.0~dfsg/.pc/2003_avoid_import-fresh.patch/lib/config/config-file.js:117: e.message = `Cannot read config file: ${filePath}\nError: ${e.message}`; eslint-5.16.0~dfsg/.pc/2003_avoid_import-fresh.patch/lib/config/config-file.js-118- e.messageTemplate = "failed-to-read-json"; ############################################## eslint-5.16.0~dfsg/.pc/2003_avoid_import-fresh.patch/lib/config/config-file.js-134-function loadLegacyConfigFile(filePath) { eslint-5.16.0~dfsg/.pc/2003_avoid_import-fresh.patch/lib/config/config-file.js:135: debug(`Loading config file: ${filePath}`); eslint-5.16.0~dfsg/.pc/2003_avoid_import-fresh.patch/lib/config/config-file.js-136- ############################################## eslint-5.16.0~dfsg/.pc/2003_avoid_import-fresh.patch/lib/config/config-file.js-142- } catch (e) { eslint-5.16.0~dfsg/.pc/2003_avoid_import-fresh.patch/lib/config/config-file.js:143: debug(`Error reading YAML file: ${filePath}`); eslint-5.16.0~dfsg/.pc/2003_avoid_import-fresh.patch/lib/config/config-file.js:144: e.message = `Cannot read config file: ${filePath}\nError: ${e.message}`; eslint-5.16.0~dfsg/.pc/2003_avoid_import-fresh.patch/lib/config/config-file.js-145- throw e; ############################################## eslint-5.16.0~dfsg/.pc/2003_avoid_import-fresh.patch/lib/config/config-file.js-156-function loadJSConfigFile(filePath) { eslint-5.16.0~dfsg/.pc/2003_avoid_import-fresh.patch/lib/config/config-file.js:157: debug(`Loading JS config file: ${filePath}`); eslint-5.16.0~dfsg/.pc/2003_avoid_import-fresh.patch/lib/config/config-file.js-158- try { ############################################## eslint-5.16.0~dfsg/.pc/2003_avoid_import-fresh.patch/lib/config/config-file.js-160- } catch (e) { eslint-5.16.0~dfsg/.pc/2003_avoid_import-fresh.patch/lib/config/config-file.js:161: debug(`Error reading JavaScript file: ${filePath}`); eslint-5.16.0~dfsg/.pc/2003_avoid_import-fresh.patch/lib/config/config-file.js:162: e.message = `Cannot read config file: ${filePath}\nError: ${e.message}`; eslint-5.16.0~dfsg/.pc/2003_avoid_import-fresh.patch/lib/config/config-file.js-163- throw e; ############################################## eslint-5.16.0~dfsg/.pc/2003_avoid_import-fresh.patch/lib/config/config-file.js-174-function loadPackageJSONConfigFile(filePath) { eslint-5.16.0~dfsg/.pc/2003_avoid_import-fresh.patch/lib/config/config-file.js:175: debug(`Loading package.json config file: ${filePath}`); eslint-5.16.0~dfsg/.pc/2003_avoid_import-fresh.patch/lib/config/config-file.js-176- try { ############################################## eslint-5.16.0~dfsg/.pc/2003_avoid_import-fresh.patch/lib/config/config-file.js-178- } catch (e) { eslint-5.16.0~dfsg/.pc/2003_avoid_import-fresh.patch/lib/config/config-file.js:179: debug(`Error reading package.json file: ${filePath}`); eslint-5.16.0~dfsg/.pc/2003_avoid_import-fresh.patch/lib/config/config-file.js:180: e.message = `Cannot read config file: ${filePath}\nError: ${e.message}`; eslint-5.16.0~dfsg/.pc/2003_avoid_import-fresh.patch/lib/config/config-file.js-181- throw e; ############################################## eslint-5.16.0~dfsg/.pc/2003_avoid_import-fresh.patch/lib/config/config-file.js-191-function configMissingError(configName) { eslint-5.16.0~dfsg/.pc/2003_avoid_import-fresh.patch/lib/config/config-file.js:192: const error = new Error(`Failed to load config "${configName}" to extend from.`); eslint-5.16.0~dfsg/.pc/2003_avoid_import-fresh.patch/lib/config/config-file.js-193- ############################################## eslint-5.16.0~dfsg/.pc/2003_avoid_import-fresh.patch/lib/config/config-file.js-253-function writeJSONConfigFile(config, filePath) { eslint-5.16.0~dfsg/.pc/2003_avoid_import-fresh.patch/lib/config/config-file.js:254: debug(`Writing JSON config file: ${filePath}`); eslint-5.16.0~dfsg/.pc/2003_avoid_import-fresh.patch/lib/config/config-file.js-255- ############################################## eslint-5.16.0~dfsg/.pc/2003_avoid_import-fresh.patch/lib/config/config-file.js-268-function writeYAMLConfigFile(config, filePath) { eslint-5.16.0~dfsg/.pc/2003_avoid_import-fresh.patch/lib/config/config-file.js:269: debug(`Writing YAML config file: ${filePath}`); eslint-5.16.0~dfsg/.pc/2003_avoid_import-fresh.patch/lib/config/config-file.js-270- ############################################## eslint-5.16.0~dfsg/.pc/2003_avoid_import-fresh.patch/lib/config/config-file.js-287-function writeJSConfigFile(config, filePath) { eslint-5.16.0~dfsg/.pc/2003_avoid_import-fresh.patch/lib/config/config-file.js:288: debug(`Writing JS config file: ${filePath}`); eslint-5.16.0~dfsg/.pc/2003_avoid_import-fresh.patch/lib/config/config-file.js-289- eslint-5.16.0~dfsg/.pc/2003_avoid_import-fresh.patch/lib/config/config-file.js-290- let contentToWrite; eslint-5.16.0~dfsg/.pc/2003_avoid_import-fresh.patch/lib/config/config-file.js:291: const stringifiedContent = `module.exports = ${stringify(config, { cmp: sortByKey, space: 4 })};`; eslint-5.16.0~dfsg/.pc/2003_avoid_import-fresh.patch/lib/config/config-file.js-292- ############################################## eslint-5.16.0~dfsg/.pc/2003_avoid_import-fresh.patch/lib/config/config-file.js-309- e.message += "A config file was still generated, but the config file itself may not follow your linting rules."; eslint-5.16.0~dfsg/.pc/2003_avoid_import-fresh.patch/lib/config/config-file.js:310: e.message += `\nError: ${errorMessage}`; eslint-5.16.0~dfsg/.pc/2003_avoid_import-fresh.patch/lib/config/config-file.js-311- throw e; ############################################## eslint-5.16.0~dfsg/.pc/2003_avoid_import-fresh.patch/lib/config/config-file.js-449- } eslint-5.16.0~dfsg/.pc/2003_avoid_import-fresh.patch/lib/config/config-file.js:450: debug(`Loading ${extensionPath}`); eslint-5.16.0~dfsg/.pc/2003_avoid_import-fresh.patch/lib/config/config-file.js-451- ############################################## eslint-5.16.0~dfsg/.pc/2003_avoid_import-fresh.patch/lib/config/config-file.js-461- */ eslint-5.16.0~dfsg/.pc/2003_avoid_import-fresh.patch/lib/config/config-file.js:462: e.message += `\nReferenced from: ${filePath}`; eslint-5.16.0~dfsg/.pc/2003_avoid_import-fresh.patch/lib/config/config-file.js-463- throw e; ############################################## eslint-5.16.0~dfsg/.pc/2003_avoid_import-fresh.patch/lib/config/config-file.js-494- normalizedPackageName = naming.normalizePackageName(pluginName, "eslint-plugin"); eslint-5.16.0~dfsg/.pc/2003_avoid_import-fresh.patch/lib/config/config-file.js:495: debug(`Attempting to resolve ${normalizedPackageName}`); eslint-5.16.0~dfsg/.pc/2003_avoid_import-fresh.patch/lib/config/config-file.js-496- ############################################## eslint-5.16.0~dfsg/.pc/2003_avoid_import-fresh.patch/lib/config/config-file.js-503- normalizedPackageName = naming.normalizePackageName(filePath, "eslint-config"); eslint-5.16.0~dfsg/.pc/2003_avoid_import-fresh.patch/lib/config/config-file.js:504: debug(`Attempting to resolve ${normalizedPackageName}`); eslint-5.16.0~dfsg/.pc/2003_avoid_import-fresh.patch/lib/config/config-file.js-505- ############################################## eslint-5.16.0~dfsg/.pc/2005_avoid_cross-spawn.patch/lib/util/npm-utils.js-60- eslint-5.16.0~dfsg/.pc/2005_avoid_cross-spawn.patch/lib/util/npm-utils.js:61: log.error(`Could not execute npm. Please install the following package${pluralS} with a package manager of your choice: ${packageList.join(", ")}`); eslint-5.16.0~dfsg/.pc/2005_avoid_cross-spawn.patch/lib/util/npm-utils.js-62- } ############################################## eslint-5.16.0~dfsg/.pc/2008_avoid_json-stable-stringify-without-jsonify.patch/lib/config/config-file.js-85-function loadYAMLConfigFile(filePath) { eslint-5.16.0~dfsg/.pc/2008_avoid_json-stable-stringify-without-jsonify.patch/lib/config/config-file.js:86: debug(`Loading YAML config file: ${filePath}`); eslint-5.16.0~dfsg/.pc/2008_avoid_json-stable-stringify-without-jsonify.patch/lib/config/config-file.js-87- ############################################## eslint-5.16.0~dfsg/.pc/2008_avoid_json-stable-stringify-without-jsonify.patch/lib/config/config-file.js-95- } catch (e) { eslint-5.16.0~dfsg/.pc/2008_avoid_json-stable-stringify-without-jsonify.patch/lib/config/config-file.js:96: debug(`Error reading YAML file: ${filePath}`); eslint-5.16.0~dfsg/.pc/2008_avoid_json-stable-stringify-without-jsonify.patch/lib/config/config-file.js:97: e.message = `Cannot read config file: ${filePath}\nError: ${e.message}`; eslint-5.16.0~dfsg/.pc/2008_avoid_json-stable-stringify-without-jsonify.patch/lib/config/config-file.js-98- throw e; ############################################## eslint-5.16.0~dfsg/.pc/2008_avoid_json-stable-stringify-without-jsonify.patch/lib/config/config-file.js-109-function loadJSONConfigFile(filePath) { eslint-5.16.0~dfsg/.pc/2008_avoid_json-stable-stringify-without-jsonify.patch/lib/config/config-file.js:110: debug(`Loading JSON config file: ${filePath}`); eslint-5.16.0~dfsg/.pc/2008_avoid_json-stable-stringify-without-jsonify.patch/lib/config/config-file.js-111- ############################################## eslint-5.16.0~dfsg/.pc/2008_avoid_json-stable-stringify-without-jsonify.patch/lib/config/config-file.js-114- } catch (e) { eslint-5.16.0~dfsg/.pc/2008_avoid_json-stable-stringify-without-jsonify.patch/lib/config/config-file.js:115: debug(`Error reading JSON file: ${filePath}`); eslint-5.16.0~dfsg/.pc/2008_avoid_json-stable-stringify-without-jsonify.patch/lib/config/config-file.js:116: e.message = `Cannot read config file: ${filePath}\nError: ${e.message}`; eslint-5.16.0~dfsg/.pc/2008_avoid_json-stable-stringify-without-jsonify.patch/lib/config/config-file.js-117- e.messageTemplate = "failed-to-read-json"; ############################################## eslint-5.16.0~dfsg/.pc/2008_avoid_json-stable-stringify-without-jsonify.patch/lib/config/config-file.js-133-function loadLegacyConfigFile(filePath) { eslint-5.16.0~dfsg/.pc/2008_avoid_json-stable-stringify-without-jsonify.patch/lib/config/config-file.js:134: debug(`Loading config file: ${filePath}`); eslint-5.16.0~dfsg/.pc/2008_avoid_json-stable-stringify-without-jsonify.patch/lib/config/config-file.js-135- ############################################## eslint-5.16.0~dfsg/.pc/2008_avoid_json-stable-stringify-without-jsonify.patch/lib/config/config-file.js-141- } catch (e) { eslint-5.16.0~dfsg/.pc/2008_avoid_json-stable-stringify-without-jsonify.patch/lib/config/config-file.js:142: debug(`Error reading YAML file: ${filePath}`); eslint-5.16.0~dfsg/.pc/2008_avoid_json-stable-stringify-without-jsonify.patch/lib/config/config-file.js:143: e.message = `Cannot read config file: ${filePath}\nError: ${e.message}`; eslint-5.16.0~dfsg/.pc/2008_avoid_json-stable-stringify-without-jsonify.patch/lib/config/config-file.js-144- throw e; ############################################## eslint-5.16.0~dfsg/.pc/2008_avoid_json-stable-stringify-without-jsonify.patch/lib/config/config-file.js-155-function loadJSConfigFile(filePath) { eslint-5.16.0~dfsg/.pc/2008_avoid_json-stable-stringify-without-jsonify.patch/lib/config/config-file.js:156: debug(`Loading JS config file: ${filePath}`); eslint-5.16.0~dfsg/.pc/2008_avoid_json-stable-stringify-without-jsonify.patch/lib/config/config-file.js-157- try { ############################################## eslint-5.16.0~dfsg/.pc/2008_avoid_json-stable-stringify-without-jsonify.patch/lib/config/config-file.js-175- } catch (e) { eslint-5.16.0~dfsg/.pc/2008_avoid_json-stable-stringify-without-jsonify.patch/lib/config/config-file.js:176: debug(`Error reading JavaScript file: ${filePath}`); eslint-5.16.0~dfsg/.pc/2008_avoid_json-stable-stringify-without-jsonify.patch/lib/config/config-file.js:177: e.message = `Cannot read config file: ${filePath}\nError: ${e.message}`; eslint-5.16.0~dfsg/.pc/2008_avoid_json-stable-stringify-without-jsonify.patch/lib/config/config-file.js-178- throw e; ############################################## eslint-5.16.0~dfsg/.pc/2008_avoid_json-stable-stringify-without-jsonify.patch/lib/config/config-file.js-189-function loadPackageJSONConfigFile(filePath) { eslint-5.16.0~dfsg/.pc/2008_avoid_json-stable-stringify-without-jsonify.patch/lib/config/config-file.js:190: debug(`Loading package.json config file: ${filePath}`); eslint-5.16.0~dfsg/.pc/2008_avoid_json-stable-stringify-without-jsonify.patch/lib/config/config-file.js-191- try { ############################################## eslint-5.16.0~dfsg/.pc/2008_avoid_json-stable-stringify-without-jsonify.patch/lib/config/config-file.js-193- } catch (e) { eslint-5.16.0~dfsg/.pc/2008_avoid_json-stable-stringify-without-jsonify.patch/lib/config/config-file.js:194: debug(`Error reading package.json file: ${filePath}`); eslint-5.16.0~dfsg/.pc/2008_avoid_json-stable-stringify-without-jsonify.patch/lib/config/config-file.js:195: e.message = `Cannot read config file: ${filePath}\nError: ${e.message}`; eslint-5.16.0~dfsg/.pc/2008_avoid_json-stable-stringify-without-jsonify.patch/lib/config/config-file.js-196- throw e; ############################################## eslint-5.16.0~dfsg/.pc/2008_avoid_json-stable-stringify-without-jsonify.patch/lib/config/config-file.js-206-function configMissingError(configName) { eslint-5.16.0~dfsg/.pc/2008_avoid_json-stable-stringify-without-jsonify.patch/lib/config/config-file.js:207: const error = new Error(`Failed to load config "${configName}" to extend from.`); eslint-5.16.0~dfsg/.pc/2008_avoid_json-stable-stringify-without-jsonify.patch/lib/config/config-file.js-208- ############################################## eslint-5.16.0~dfsg/.pc/2008_avoid_json-stable-stringify-without-jsonify.patch/lib/config/config-file.js-268-function writeJSONConfigFile(config, filePath) { eslint-5.16.0~dfsg/.pc/2008_avoid_json-stable-stringify-without-jsonify.patch/lib/config/config-file.js:269: debug(`Writing JSON config file: ${filePath}`); eslint-5.16.0~dfsg/.pc/2008_avoid_json-stable-stringify-without-jsonify.patch/lib/config/config-file.js-270- ############################################## eslint-5.16.0~dfsg/.pc/2008_avoid_json-stable-stringify-without-jsonify.patch/lib/config/config-file.js-283-function writeYAMLConfigFile(config, filePath) { eslint-5.16.0~dfsg/.pc/2008_avoid_json-stable-stringify-without-jsonify.patch/lib/config/config-file.js:284: debug(`Writing YAML config file: ${filePath}`); eslint-5.16.0~dfsg/.pc/2008_avoid_json-stable-stringify-without-jsonify.patch/lib/config/config-file.js-285- ############################################## eslint-5.16.0~dfsg/.pc/2008_avoid_json-stable-stringify-without-jsonify.patch/lib/config/config-file.js-302-function writeJSConfigFile(config, filePath) { eslint-5.16.0~dfsg/.pc/2008_avoid_json-stable-stringify-without-jsonify.patch/lib/config/config-file.js:303: debug(`Writing JS config file: ${filePath}`); eslint-5.16.0~dfsg/.pc/2008_avoid_json-stable-stringify-without-jsonify.patch/lib/config/config-file.js-304- eslint-5.16.0~dfsg/.pc/2008_avoid_json-stable-stringify-without-jsonify.patch/lib/config/config-file.js-305- let contentToWrite; eslint-5.16.0~dfsg/.pc/2008_avoid_json-stable-stringify-without-jsonify.patch/lib/config/config-file.js:306: const stringifiedContent = `module.exports = ${stringify(config, { cmp: sortByKey, space: 4 })};`; eslint-5.16.0~dfsg/.pc/2008_avoid_json-stable-stringify-without-jsonify.patch/lib/config/config-file.js-307- ############################################## eslint-5.16.0~dfsg/.pc/2008_avoid_json-stable-stringify-without-jsonify.patch/lib/config/config-file.js-324- e.message += "A config file was still generated, but the config file itself may not follow your linting rules."; eslint-5.16.0~dfsg/.pc/2008_avoid_json-stable-stringify-without-jsonify.patch/lib/config/config-file.js:325: e.message += `\nError: ${errorMessage}`; eslint-5.16.0~dfsg/.pc/2008_avoid_json-stable-stringify-without-jsonify.patch/lib/config/config-file.js-326- throw e; ############################################## eslint-5.16.0~dfsg/.pc/2008_avoid_json-stable-stringify-without-jsonify.patch/lib/config/config-file.js-464- } eslint-5.16.0~dfsg/.pc/2008_avoid_json-stable-stringify-without-jsonify.patch/lib/config/config-file.js:465: debug(`Loading ${extensionPath}`); eslint-5.16.0~dfsg/.pc/2008_avoid_json-stable-stringify-without-jsonify.patch/lib/config/config-file.js-466- ############################################## eslint-5.16.0~dfsg/.pc/2008_avoid_json-stable-stringify-without-jsonify.patch/lib/config/config-file.js-476- */ eslint-5.16.0~dfsg/.pc/2008_avoid_json-stable-stringify-without-jsonify.patch/lib/config/config-file.js:477: e.message += `\nReferenced from: ${filePath}`; eslint-5.16.0~dfsg/.pc/2008_avoid_json-stable-stringify-without-jsonify.patch/lib/config/config-file.js-478- throw e; ############################################## eslint-5.16.0~dfsg/.pc/2008_avoid_json-stable-stringify-without-jsonify.patch/lib/config/config-file.js-509- normalizedPackageName = naming.normalizePackageName(pluginName, "eslint-plugin"); eslint-5.16.0~dfsg/.pc/2008_avoid_json-stable-stringify-without-jsonify.patch/lib/config/config-file.js:510: debug(`Attempting to resolve ${normalizedPackageName}`); eslint-5.16.0~dfsg/.pc/2008_avoid_json-stable-stringify-without-jsonify.patch/lib/config/config-file.js-511- ############################################## eslint-5.16.0~dfsg/.pc/2008_avoid_json-stable-stringify-without-jsonify.patch/lib/config/config-file.js-518- normalizedPackageName = naming.normalizePackageName(filePath, "eslint-config"); eslint-5.16.0~dfsg/.pc/2008_avoid_json-stable-stringify-without-jsonify.patch/lib/config/config-file.js:519: debug(`Attempting to resolve ${normalizedPackageName}`); eslint-5.16.0~dfsg/.pc/2008_avoid_json-stable-stringify-without-jsonify.patch/lib/config/config-file.js-520- ############################################## eslint-5.16.0~dfsg/.pc/2008_avoid_json-stable-stringify-without-jsonify.patch/lib/util/lint-result-cache.js-33- if (!configHashCache.has(config)) { eslint-5.16.0~dfsg/.pc/2008_avoid_json-stable-stringify-without-jsonify.patch/lib/util/lint-result-cache.js:34: configHashCache.set(config, hash(`${pkg.version}_${stringify(config)}`)); eslint-5.16.0~dfsg/.pc/2008_avoid_json-stable-stringify-without-jsonify.patch/lib/util/lint-result-cache.js-35- }