Change Request: Allow manually opting into flat config without an eslint.config.js
#16349
Closed
1 task done
Labels
accepted
There is consensus among the team that this change meets the criteria for inclusion
archived due to age
This issue has been archived; please open a new issue for any further discussion
core
Relates to ESLint's core APIs and features
enhancement
This change enhances an existing feature of ESLint
Projects
ESLint version
v8.24.0
What problem do you want to solve?
Right now you have to create an
eslint.config.js
file to use flat config. It would be nice if flat configs could be passed on the command line using the-c
or--config
argument. The docs currently make it sound like it should work, but it doesn't.What do you think is the correct solution?
I can think of two options:
--use-flat-config
that would make ESLint treat the config as a flat configI think I prefer option 1 because option 2 doesn't support CJS flat configs, which I think are allowed?
Participation
Additional comments
No response
The text was updated successfully, but these errors were encountered: