Skip to content

Commit

Permalink
Fix: id-match mysteriously fails when defined in a comment. (fixes es…
Browse files Browse the repository at this point in the history
  • Loading branch information
薛定谔的猫 committed Sep 29, 2017
1 parent 458ca67 commit 64de192
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/linter.js
Expand Up @@ -94,7 +94,7 @@ function parseJsonConfig(string, location) {

// Parses a JSON-like comment by the same way as parsing CLI option.
try {
items = levn.parse("Object", string) || {};
items = levn.parse("Object", string.replace(/\\/g, "\\\\")) || {};

// Some tests say that it should ignore invalid comments such as `/*eslint no-alert:abc*/`.
// Also, commaless notations have invalid severity:
Expand Down

0 comments on commit 64de192

Please sign in to comment.