-
-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
enhancementNew feature or requestNew feature or request
Description
The following import would be reported
import Html exposing (..)
-- ^^
view : Html msg
view = div [] [ span [] [ text "hello" ] ]
We could have the rule provide an automatic fix that would replace (..) by the list of all implicit functions and types for that module.
import Html exposing (Html, div, span, text)
view : Html msg
view = div [] [ span [] [ text "hello" ] ]
Ideally, the formatting would already look like something elm-format would produce, meaning types first in alphabetical order, then functions/values in alphabetical order.
Detecting what module the function/type comes from can be done using the module name lookup table.
The trickiest part here would likely be detecting from which custom type a constructor comes from, so we need when to do exposing (A(..))
instead of exposing (A)
.
lue-bird
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request