Using eslint-env
comments with the flat config
#17149
Unanswered
fasttime
asked this question in
Show and tell
Replies: 1 comment
-
Interesting! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
https://www.npmjs.com/package/eslint-plugin-eslint-env
A processor that translates
eslint-env
config comments toglobal
comments under the hood, so they can be used with the flat config.I wrote this mostly to test the new config system on my existing projects without having to edit the source files (yet).
The same effect could be achieved more efficiently with a custom parser, but that would likely stop working once
eslint-env
comments start to throw errors, as planned for the last phase of the implementation. This is why I decided to write a processor.Beta Was this translation helpful? Give feedback.
All reactions