mirror of
https://github.com/jfmengels/elm-review.git
synced 2024-11-29 01:24:35 +03:00
Use file patterns from users
This commit is contained in:
parent
2eb405e3bb
commit
469a064223
@ -17,8 +17,7 @@ import Set exposing (Set)
|
|||||||
rule : Configuration -> Rule
|
rule : Configuration -> Rule
|
||||||
rule (Configuration configuration) =
|
rule (Configuration configuration) =
|
||||||
Rule.newProjectRuleSchema "Css.NoUnusedClasses" initialProjectContext
|
Rule.newProjectRuleSchema "Css.NoUnusedClasses" initialProjectContext
|
||||||
|> Rule.withExtraFilesProjectVisitor cssFilesVisitor
|
|> Rule.withExtraFilesProjectVisitor cssFilesVisitor configuration.cssFiles
|
||||||
[ FilePattern.include "**/*.css" ]
|
|
||||||
|> Rule.withModuleVisitor (moduleVisitor configuration.cssFunctions)
|
|> Rule.withModuleVisitor (moduleVisitor configuration.cssFunctions)
|
||||||
|> Rule.withModuleContextUsingContextCreator
|
|> Rule.withModuleContextUsingContextCreator
|
||||||
{ fromProjectToModule = fromProjectToModule
|
{ fromProjectToModule = fromProjectToModule
|
||||||
|
Loading…
Reference in New Issue
Block a user