Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Useless import alias #237

Open
sentience opened this issue Apr 16, 2020 · 0 comments
Open

Useless import alias #237

sentience opened this issue Apr 16, 2020 · 0 comments

Comments

@sentience
Copy link

Programmers who are new to Elm often don't understand the distinction between types and module, and write imports with aliases that simply re-apply the module's name like this:

import Validate as Validate

It would be nice if elm-analyse prompted you to replace this with:

import Validate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant