Open edi9999 opened 4 months ago
The usual reason to have imports first is that they’re hoisted there anyways - it’s not meant to be a style choice.
That said, i think it’d be reasonable to add an option that allows it to apply to top-level requires also.
Hello,
I have following code :
I wanted to fix it by placing all require before other code, however, when I used the "import/first" rule, it didn't seem to apply to the require calls.
Do you have any other rules or would you be open to have the import/first rule also apply to require ?
Best,
Edgar