Skip to content

r-k-b/no-long-import-lines

Repository files navigation

NoLongImportLines

.github/workflows/build.yml

A rule for elm-review that discourages keeping very long one-line import statements.

Some Elm tools will change multi-line import statements back to a single line when modifying the exposing () section.

Usage

After adding elm-review to your project, import this rule from your ReviewConfig.elm file and add it to the config. E.g.:

import NoLongImportLines
import Review.Rule exposing (Rule)

config : List Rule
config =
    [ NoLongImportLines.rule ]

Roadmap

  • Save users from users having to manually break up the line, by adding a fix