enforce imports to be at the top of the file
#9260
Closed
Pascalmh
started this conversation in
Rule suggestion
Replies: 2 comments
-
|
Prior Art: https://github.com/import-js/eslint-plugin-import/blob/HEAD/docs/rules/first.md |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
I've opened #9265 to track this. |
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
Uh oh!
There was an error while loading. Please reload this page.
-
Idea
Add a linting rule that enforces that all imports have to be at the top of the file
Currently there is not linting rule to find code like this:
What the code should look like:
Notes
I started this discussion on Discord - continuing here
Beta Was this translation helpful? Give feedback.
All reactions