Use file patterns from users

This commit is contained in:
Jeroen Engels 2024-05-07 23:34:43 +02:00
parent 2eb405e3bb
commit 469a064223

View File

@ -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