-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: auto detect the eslint.config.js
file to enable flat config support
#2596
Conversation
Check out the documentation. This new configuration system defaults to false. It uses file and environment variables to control whether it is enabled. The environment variable |
The AFAIK, it can only be turned on by setting |
ESLint itself uses Also for reference: |
🤔 The two lines also use |
util.path has a santize function it will check is windows or not then convert |
The two lines above don't seem to call the |
long time no used windows check wiki https://en.wikipedia.org/wiki/Path_(computing) looks like windows also accept the '/' so maybe just path_join is enough |
Yeah, that's what I'm trying to say! I will revert the commit just made then. |
This reverts commit 8da07fb.
eslint/eslint@7162d34
ESLint's new config system is complete, this PR offers auto-detecting of the new config file in the project root, then set the
experimental.useFlatConfig = true
to enable it automatedly.