mirror of
https://github.com/discourse/discourse.git
synced 2026-08-05 18:57:20 -05:00
This amends lefthook to use the more reliable doublestar globber: https://github.com/evilmartians/lefthook/blob/master/docs/mdbook/configuration/glob_matcher.md it also cleans up the config so we can properly run and filter. Notably ember linter explodes if you pass it files your are not meant to lint. The current fix has bin/lint read the config from lefthook and filter out the files that need no linting. `--file` overrides the glob so we can not pass in files unfiltered. This also simplifies some of the linters internals for easier maintenance