chore: add stylua and pre-commit hook
This commit is contained in:
6
.pre-commit-config.yaml
Normal file
6
.pre-commit-config.yaml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
repos:
|
||||||
|
- repo: https://github.com/JohnnyMorganz/StyLua
|
||||||
|
rev: v2.3.0
|
||||||
|
hooks:
|
||||||
|
- id: stylua-system
|
||||||
|
args: [--check, --respect-ignores]
|
||||||
3
.stylua.toml
Normal file
3
.stylua.toml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
column_width = 88
|
||||||
|
indent_type = "Spaces"
|
||||||
|
collapse_simple_statement = "Always"
|
||||||
Reference in New Issue
Block a user