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

[Bug] Config Inspector uses recommended/deprecated rule indications from ESLint v9 rather than the installed ESLint version

Open Standard8 opened this issue 9 months ago • 0 comments

I am working on setting up flat configuration with ESLint v8.57.0 as an initial step before switching to v9.

I wanted to check the configuration, so I was trying out config inspector. Looking at the rules applied to all files from the recommended config, I was surprised to see some that weren't flagged as being included in the recommended configuration, or that were flagged as deprecated.

STR

  1. In a new project, install ESLint 8.57.0 and config-inspector 4.8.0.
  2. Create a dummy index.js file
  3. Create a simple eslint.config.mjs file:
import js from "@eslint/js";

export default [
  js.configs.recommended,
];
  1. Look at the results in the inspector (npx @eslint/config-inspector)

Actual Results

The rules are marked according to how they are in ESLint v9.

Expected Results

The rules are marked as recommended or deprecated according to how they were for ESLint v8.57.0, or not marked at all if the information is not available.

Standard8 avatar May 19 '24 15:05 Standard8