mirror of
https://github.com/jfmengels/elm-review.git
synced 2024-09-11 16:16:09 +03:00
Rename rule
This commit is contained in:
parent
28f6ffc213
commit
4ced30b8a8
@ -1,4 +1,4 @@
|
||||
module NoUnknownCssClasses exposing
|
||||
module Css.NoUnknownClasses exposing
|
||||
( rule
|
||||
, CssArgument(..), addKnownClasses, cssFiles, fromLiteral, withCssUsingFunctions
|
||||
)
|
||||
@ -58,7 +58,7 @@ elm-review --template jfmengels/elm-review/example --rules NoUnknownCssClasses
|
||||
-}
|
||||
rule : Configuration -> Rule
|
||||
rule (Configuration configuration) =
|
||||
Rule.newProjectRuleSchema "NoUnknownCssClasses" (initialProjectContext configuration.knownClasses)
|
||||
Rule.newProjectRuleSchema "Css.NoUnknownClasses" (initialProjectContext configuration.knownClasses)
|
||||
|> Rule.withExtraFilesProjectVisitor configuration.cssFiles cssFilesVisitor
|
||||
|> Rule.withModuleVisitor (moduleVisitor configuration.cssFunctions)
|
||||
|> Rule.withModuleContextUsingContextCreator
|
@ -1,9 +1,9 @@
|
||||
module NoUnknownCssClassesTest exposing (all)
|
||||
module Css.NoUnknownClassesTest exposing (all)
|
||||
|
||||
import Css.NoUnknownClasses exposing (CssArgument, addKnownClasses, cssFiles, fromLiteral, rule, withCssUsingFunctions)
|
||||
import Dict
|
||||
import Elm.Syntax.Expression exposing (Expression)
|
||||
import Elm.Syntax.Node exposing (Node)
|
||||
import NoUnknownCssClasses exposing (CssArgument, addKnownClasses, cssFiles, fromLiteral, rule, withCssUsingFunctions)
|
||||
import Review.Project as Project exposing (Project)
|
||||
import Review.Test
|
||||
import Review.Test.Dependencies
|
Loading…
Reference in New Issue
Block a user