config-inspector
config-inspector copied to clipboard
doesn't handle extends correctly
Copy-pasta from: https://github.com/eslint/eslint/issues/20351
Here is a modified version of that minimal repro which shows a linting error:
- https://stackblitz.com/edit/vitejs-vite-51gr37xf?file=eslint.config.mjs,package.json,subdir%2Ffile.js (unexpected, because the eslint config disables it)
BUT it seems the inspector is also wrong, because the config inspector thinks the lint rule should be disabled
Unexpected:
from config:
import { defineConfig } from 'eslint/config';
import js from '@eslint/js';
export default defineConfig(js.configs.recommended, {
files: ['root.js'],
extends: [
{
files: ['subdir/*.js'],
rules: { 'no-unused-vars': 'off' },
},
],
});
The inspector reports what I would expect, but CLI behavior does not agree
Are you filing an issue for the Config Inspector or Code Explorer?
I was just told to report here 🤷 tyty for transferring!
Sorry, my mistake, I posted a wrong link on https://github.com/eslint/eslint/issues/20351.