Bug: No matching configuration found
warning for code block matched only by non-universal patterns
#18493
Closed
1 task done
Environment
Node version: v20.12.0
npm version: 10.5.0
Local ESLint version: v9.3.0
Global ESLint version: no
Operating System: windows
What parser are you using?
Default (Espree)
What did you do?
I wanted to make a repro with
eslint-plugin-markdown
, but since this warning hasline: 0
(which might be another bug),eslint-plugin-markdown
filters it out as out-of-range. So I made a simple processor that assumes that the entire markdown file is one```ts
code block.test.md
:What did you expect to happen?
Since the
.ts
virtual file doesn't have an explicit match in the config, I'd expect it to be silently ignored, so at the end I'd expect no lint errors or warnings.What actually happened?
Link to Minimal Reproducible Example
https://stackblitz.com/edit/stackblitz-starters-hqxgng?file=eslint.config.js
Participation
Additional comments
We found this problem while discussing eslint/rewrite#7.
I think we could just replace the following line with
return configs.getConfig(blockFilename) !== void 0;
eslint/lib/eslint/eslint.js
Line 512 in 389744b
The text was updated successfully, but these errors were encountered: