Open
Description
ESLint version
9.29.0
What problem do you want to solve?
Right now, if I open up the config inspector, plugins conspicuously identify their shared configs, but eslint's shared config ("eslint:recommended") does not.
For example, this config
import { defineConfig } from 'eslint/config';
import eslintJsPlugin from '@eslint/js';
import unicorn from 'eslint-plugin-unicorn';
import tseslint from 'typescript-eslint';
export default defineConfig(
eslintJsPlugin.configs.recommended,
tseslint.configs.recommended,
unicorn.configs.recommended,
);
shows as the following in the config inspector:
What do you think is the correct solution?
Add name
to eslint's own flat configs.
Participation
- I am willing to submit a pull request for this change.
Additional comments
I have come across #18368. I don't think this is a blocker. Presumably, there are the following possible solutions:
- Export separate flat and eslintrc configs. This is something plugins generally have to do in order to solve this exact problem, so it doesn't seem like a stretch for eslint core to do so as well. For example,
- Declare clearly what the supported eslint versions for the
@eslint/js
package are (right now, none is specified inpackage.json
), modify eslint's parsing to allow a no-opname
field in the eslintrc config parsing, and update the@eslint/js
'seslint
version requirement.