install stylua without cargo (#54)

* install stylua without cargo

* move stylua to path

* add required permissions for stylua

* run stylua from utils dir
This commit is contained in:
Abouzar Parvan
2021-08-24 23:19:55 +04:30
committed by GitHub
parent 3862af1474
commit fe964405ff
3 changed files with 68 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
.PHONY: fmt
fmt:
stylua --glob lua/**/*.lua -- lua
./utils/stylua --config-path stylua.toml ---glob lua/**/*.lua -- lua
.PHONY: lint
lint:
@@ -12,13 +12,13 @@ test:
.PHONY: pre-commit
pre-commit:
stylua --glob lua/**/*.lua -- lua
./utils/stylua --config-path stylua.toml --glob lua/**/*.lua -- lua
luacheck lua
vusted lua
.PHONY: integration
integration:
stylua --check --glob lua/**/*.lua -- lua
./utils/stylua --config-path stylua.toml --check --glob lua/**/*.lua -- lua
luacheck lua
vusted lua