config-inspector icon indicating copy to clipboard operation
config-inspector copied to clipboard

doesn't handle extends correctly

Open NullVoxPopuli opened this issue 5 months ago • 3 comments

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: Image

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 Image

NullVoxPopuli avatar Nov 25 '25 12:11 NullVoxPopuli

Are you filing an issue for the Config Inspector or Code Explorer?

nzakas avatar Nov 25 '25 14:11 nzakas

I was just told to report here 🤷 tyty for transferring!

NullVoxPopuli avatar Nov 25 '25 16:11 NullVoxPopuli

Sorry, my mistake, I posted a wrong link on https://github.com/eslint/eslint/issues/20351.

mdjermanovic avatar Nov 25 '25 16:11 mdjermanovic