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
@@ -159,9 +149,6 @@ It is recommended to also set up [Prettier], to help formatting your imports (an
159
149
-[import/first] makes sure all imports are at the top of the file. (autofixable)
160
150
-[import/newline-after-import] makes sure there’s a newline after the imports. (autofixable)
161
151
-[import/no-duplicates] merges import statements of the same file. (autofixable, mostly)
162
-
- For Node.js code, `simple-import-sort/imports` is turned off and replaced with [import/order] for sorting of `require` calls.
163
-
164
-
With the above configuration, you don’t need to scroll to the top of the file to add another import. Just put it above your function! ESLint will then snap it into place (at the top of the file, in order, and without duplicates).
165
152
166
153
## Not for everyone
167
154
@@ -532,7 +519,7 @@ The final whitespace rule is that this plugin puts one import/export per line. I
532
519
533
520
### Does it support `require`?
534
521
535
-
No. This is intentional to keep things simple. Use some other sorting rule, such as [import/order], for sorting `require`.
522
+
No. This is intentional to keep things simple. Use some other sorting rule, such as [import/order], for sorting `require`. Or consider migrating your code using `require` to `import`. `import` is well supported these days.
0 commit comments