config-inspector
config-inspector copied to clipboard
[Bug] Config Inspector uses recommended/deprecated rule indications from ESLint v9 rather than the installed ESLint version
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
- In a new project, install ESLint 8.57.0 and config-inspector 4.8.0.
- Create a dummy
index.js
file - Create a simple
eslint.config.mjs
file:
import js from "@eslint/js";
export default [
js.configs.recommended,
];
- 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.