Skip to content

doesn't handle extends correctly #190

@NullVoxPopuli

Description

@NullVoxPopuli

Copy-pasta from:
eslint/eslint#20351

Here is a modified version of that minimal repro which shows a linting error:

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Needs Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions