webbhuset/elm-review-forbid-specific-imports - version: 1.0.0

for more information visit the package's GitHub page

Package contains the following modules:

elm-review-forbid-specific-imports

Provides an [elm-review] rule to forbid modules in a specified namespace to import modules from another specified namespace.

Provided rule

Example configuration

In this example we forbid modules in App.Data to import from App.View.

module ReviewConfig exposing (config)

import ForbidSpecificImports
import Review.Rule exposing (Rule)

config : List Rule
config =
    [ ForbidSpecificImports.rule
        [ ( "App.Data"
          , [ "App.View" ]
          )
        ]
    ]