jfmengels/elm-lint/2.0.1

NOTE: this package is not compatible with Elm 0.19.1

Lint.Rules.NoImportingEverything

rule : Configuration -> LintRule

Forbid importing everything from your module. This can especially be confusing to newcomers when the exposed functions and types are unknown to them.

rules =
    [ NoImportingEverything.rule { exceptions = ["Html"]}
    ]
type alias Configuration =
{ exceptions : List String }

Configuration for the rule.

Fail

import Html exposing (..)

Success

import Html exposing (div, p, textarea)