Closed nzakas closed 2 days ago
Makes sense. Just to be sure the type of the flags
property is string[]
.
That's correct.
Actually. It is already supported. There is a eslint.options
settings that is already passed into the ESLint class. You can simply add a flags
property to it and it should work.
@nzakas let me know if this works for you.
Ah nice! Yup, that should work. Thanks.
In ESLint v9.6.0, we added the ability to specify feature flags in ESLint. While there aren't any currently active feature flags, there will be in the coming months. Feature flags only work when using flat config files, and can be specified by passing
flags
into theESLint
constructor like this:It would be great to have an option in vscode-eslint that would allow users to specify which flags they'd like to enable.