You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the ESLint VS Code extension - essential tool in both our app development as well as teaching students ❤️
It would be great to get documentation of the eslint.useFlatConfig setting defaults across ESLint v8, v9 and v10, since it appears that the defaults are probably different for different ESLint versions.
(if the defaults are not different for different ESLint versions, then maybe that's a feature request / bug waiting to be reported)
However, it was not clear what exactly had changed with the behavior of the extension, so I read through the thread, and encountered some interesting details about potential behavior in v8, v9 and v10, also backed up by the Flat config rollout plans:
This seems like the extension (and the eslint.useFlatConfig setting) will behave differently in v8, v9 and v10:
v8: eslint.useFlatConfig defaults to false
v9: eslint.useFlatConfig defaults to true
v10: eslint.useFlatConfig defaults to true, cannot be overridden to false
Is this an accurate description of the behavior differences of eslint.useFlatConfig on these versions?
I couldn't find any documentation of these divergent behaviors / the setting defaults across versions in the readme.
Migration guide
Another thing that I was thinking about, which may be able to be bundled with the setting docs request above:
What is the upgrade path / migration guide for users who want to use flat config (or who want to opt out of flat config) on ESLint version 8, 9, and 10? Eg:
If a flat config user is on ESLint v9, can they remove the eslint.useFlatConfig config setting altogether, because it defaults to true? (I would expect this)
If a non-flat config user is on ESLint v9, they need to add the eslint.useFlatConfig: false setting, because it defaults to true? (I would also expect this)
etc
The text was updated successfully, but these errors were encountered:
Thanks for the ESLint VS Code extension - essential tool in both our app development as well as teaching students ❤️
It would be great to get documentation of the
eslint.useFlatConfig
setting defaults across ESLint v8, v9 and v10, since it appears that the defaults are probably different for different ESLint versions.(if the defaults are not different for different ESLint versions, then maybe that's a feature request / bug waiting to be reported)
Background
I saw that Enable Flat Config by default (issue #1644) was closed recently by the release of
v3.0.10
, which sounds great!However, it was not clear what exactly had changed with the behavior of the extension, so I read through the thread, and encountered some interesting details about potential behavior in v8, v9 and v10, also backed up by the Flat config rollout plans:
This seems like the extension (and the
eslint.useFlatConfig
setting) will behave differently in v8, v9 and v10:eslint.useFlatConfig
defaults tofalse
eslint.useFlatConfig
defaults totrue
eslint.useFlatConfig
defaults totrue
, cannot be overridden tofalse
Is this an accurate description of the behavior differences of
eslint.useFlatConfig
on these versions?I couldn't find any documentation of these divergent behaviors / the setting defaults across versions in the readme.
Migration guide
Another thing that I was thinking about, which may be able to be bundled with the setting docs request above:
What is the upgrade path / migration guide for users who want to use flat config (or who want to opt out of flat config) on ESLint version 8, 9, and 10? Eg:
eslint.useFlatConfig
config setting altogether, because it defaults totrue
? (I would expect this)eslint.useFlatConfig: false
setting, because it defaults totrue
? (I would also expect this)The text was updated successfully, but these errors were encountered: