Skip to content

Latest commit

 

History

History
32 lines (21 loc) · 678 Bytes

File metadata and controls

32 lines (21 loc) · 678 Bytes

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" ]
          )
        ]
    ]