Skip to content

webbhuset/elm-review-forbid-specific-imports

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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