LunarVim/.pre-commit-config.yaml
kylo252 988c74ec56
feat: Add pre-commit hook for linting and formatting (#1132)
* feat: Add pre-commit hook for linting and formatting

* format with prettier
2021-08-13 12:11:18 +02:00

30 lines
745 B
YAML

repos:
- repo: local
hooks:
- id: shfmt
name: shfmt
minimum_pre_commit_version: 2.4.0
language: golang
additional_dependencies: [mvdan.cc/sh/v3/cmd/shfmt@v3.2.2]
entry: shfmt
args: [-i=2, -ci, -w]
types: [shell]
- id: shellcheck
name: shellcheck
language: system
types: [shell]
entry: bash
args:
[-c, "shfmt -f $(git rev-parse --show-toplevel) | xargs shellcheck"]
- id: stylua
name: StyLua
language: rust
entry: stylua
types: [lua]
args: [.]
- id: luacheck
name: luacheck
language: system
entry: luacheck
types: [lua]
args: [.]