oxclint/format rule: import policy #5719
Goldziher
started this conversation in
Feature Request
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, i'd like to suggest an autofix rule for import sorting enhancement: Add an ability to set import preferenance. For example, I prefer to restructure named imports from global namespaces, or some people prefer explicitly importing global namespaces.
examples:
Global Namespace
The React global namespace is used for typing
Explicit Imports
The types are imported from react explicitly.
Or the opposite:
Explicit Imports
Vitest functions are imported directly.
Global Namespace
The vitest globals are configured to be globally available.
Beta Was this translation helpful? Give feedback.
All reactions