feat: add lefthook, megalinter and update editorconfig (#270)

This change adds [LeftHook](https://lefthook.dev/) as a GitHub hook management tool alongside [MegaLinter](https://megalinter.io/) to lint all relevant files within the repository.

For users that don't end up installing LeftHook for pre-commit hooks, megalinter picks up the necessary formatting changes and reports them.

* feat: add lefthook, megalinter and update editorconfig
* fix: lint commit ordering
* refactor: adjust megalinter reporters
* refactor: adjust description for cache domains
* refactor: single - for passing options
* refactor: add repo-specific fmt in megalinter pre-commands too
This commit is contained in:
Amir Zarrinkafsh
2025-07-24 10:59:52 +10:00
committed by GitHub
parent e7fc17ae5b
commit 098c1e9c54
25 changed files with 611 additions and 492 deletions

View File

@@ -2,7 +2,13 @@ root = true
[*]
indent_style = space
indent_size = 4
indent_size = 2
trim_trailing_whitespace = true
end_of_line = lf
insert_final_newline = true
[*.md]
indent_size = 0
[*.sh]
indent_style = tab