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
We currently use a custom directive at the top of most JavaScript files. imports-first requires that any imports come before this line, but doing so means that it is no longer treated as a directive. I'm wondering if it would be possible to add an option to imports-first to ignore directives (which should be pretty easy to detect, even though I don't think ESLint exposes them as such). Basically, I would love something that lets the following pass:
'expose Foo'importMyThingfrom'./somewhere'// ...
but continue to fail anything that is not a directive appearing first:
Cool, I can definitely do that. Do you want this as an option or as the default behaviour? Any preference for an option name if you want it as an option?
We currently use a custom directive at the top of most JavaScript files.
imports-first
requires that any imports come before this line, but doing so means that it is no longer treated as a directive. I'm wondering if it would be possible to add an option toimports-first
to ignore directives (which should be pretty easy to detect, even though I don't think ESLint exposes them as such). Basically, I would love something that lets the following pass:but continue to fail anything that is not a directive appearing first:
I'm happy to take a stab at this if it's something you are interested in. Thanks!
The text was updated successfully, but these errors were encountered: