microsoft/vscode-eslint

Add support for ESLint feature flags

nzakas opened this issue · 4 comments

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 the ESLint constructor like this:

const eslint = new ESLint({
     flags: ["some_flag"]
});

It would be great to have an option in vscode-eslint that would allow users to specify which flags they'd like to enable.

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.