From f7fa3d58a46c08c280b8a7cfda7ce5e34b7a9128 Mon Sep 17 00:00:00 2001 From: Stephan Troyer Date: Sat, 18 Dec 2021 21:45:11 +0100 Subject: [PATCH] Fix RegExp escaping in readme In the `ignore` example the backslash in `'\.img$'` was escaping the "." as a string character, not in the RegExp sense. --- docs/rules/no-unresolved.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/rules/no-unresolved.md b/docs/rules/no-unresolved.md index 89d00b9301..1d18a3693a 100644 --- a/docs/rules/no-unresolved.md +++ b/docs/rules/no-unresolved.md @@ -60,7 +60,7 @@ This rule has its own ignore list, separate from [`import/ignore`]. This is beca To suppress errors from files that may not be properly resolved by your [resolver settings](../../README.md#resolver-plugins), you may add an `ignore` key with an array of `RegExp` pattern strings: ```js -/*eslint import/no-unresolved: [2, { ignore: ['\.img$'] }]*/ +/*eslint import/no-unresolved: [2, { ignore: ['\\.img$'] }]*/ import { x } from './mod' // may be reported, if not resolved to a module