Skip to content

Commit

Permalink
Reverse configPaths order
Browse files Browse the repository at this point in the history
When this was written, we were loading merged configs, so we wanted them
apply with "last-wins". Now that we're loading the first found, we need
the order to be reversed.
  • Loading branch information
pbrisbin committed Nov 20, 2024
1 parent e371acc commit bbba063
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Restyler/Config.hs
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@ parseConfig = runParser Pkg.version "Restyle local files" $ configParser configP

configPaths :: [FilePath]
configPaths =
[ ".github/restyled.yml"
, ".github/restyled.yaml"
[ ".restyled.yaml"
, ".restyled.yml"
, ".restyled.yaml"
, ".github/restyled.yaml"
, ".github/restyled.yml"
]

configParser :: [FilePath] -> Parser Config
Expand Down

0 comments on commit bbba063

Please sign in to comment.