mirror of
https://github.com/jfmengels/elm-review.git
synced 2024-11-25 10:04:38 +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 configuration) =
|
||||
Rule.newProjectRuleSchema "Css.NoUnusedClasses" initialProjectContext
|
||||
|> Rule.withExtraFilesProjectVisitor cssFilesVisitor
|
||||
[ FilePattern.include "**/*.css" ]
|
||||
|> Rule.withExtraFilesProjectVisitor cssFilesVisitor configuration.cssFiles
|
||||
|> Rule.withModuleVisitor (moduleVisitor configuration.cssFunctions)
|
||||
|> Rule.withModuleContextUsingContextCreator
|
||||
{ fromProjectToModule = fromProjectToModule
|
||||
|
Loading…
Reference in New Issue
Block a user