-
-
Notifications
You must be signed in to change notification settings - Fork 49
Open
Description
Copy-pasta from:
eslint/eslint#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
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

Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
Needs Triage
