# StyLua

Use one Lua formatter across editors

Select the syntax dialect and commit the formatting config. Verify Lua and Luau source with a read-only CI pass.

Category: Formatting
Languages: Lua, Luau

## Standard evidence

Rubric v1 · 5/8 verified · 3 unknown · 0 contrary · reviewed 2026-11-28

- **Definition** (verified) — StyLua defines deterministic formatting over the supported Lua dialects. Configuration and syntax selection affect the expected output. Reviewed 2026-11-28. [Source](https://raw.githubusercontent.com/JohnnyMorganz/StyLua/main/README.md)
- **Measurement** (verified) — --check compares files with StyLua's formatted result and prints differences. Reviewed 2026-11-28. [Source](https://raw.githubusercontent.com/JohnnyMorganz/StyLua/main/README.md)
- **Conformance** (unknown) — No reviewed evidence is recorded for this dimension.
- **CI enforcement** (verified) — Upstream documents --check for CI: the command exits nonzero when source would be reformatted. Reviewed 2026-11-28. [Source](https://raw.githubusercontent.com/JohnnyMorganz/StyLua/main/README.md)
- **Getting started** (verified) — Install StyLua from a release or package, run the formatter with --check on a Lua file and compare the documented diff and nonzero result on unformatted input. Reviewed 2026-11-28. [Source](https://raw.githubusercontent.com/JohnnyMorganz/StyLua/main/README.md)
- **Real-world adoption** (verified) — Neovim’s repository configures StyLua to use two-space indentation, Unix line endings and a 100-column width. Reviewed 2026-11-28. [Source](https://github.com/neovim/neovim/blob/master/.stylua.toml)
- **Agent guidance** (unknown) — No reviewed evidence is recorded for this dimension.
- **Agent portability** (unknown) — No reviewed evidence is recorded for this dimension.

## Adoption

Use StyLua in this repository to meet this standard: Use one Lua formatter across editors. Select the syntax dialect and commit the formatting config. Verify Lua and Luau source with a read-only CI pass. Inspect the repository configuration, record the baseline and exact reproduction steps, then add the smallest repeatable check that detects a regression.

### Tool command

```
stylua --check .
```

Seikika package: no verified installation is listed.

## References

- [Tool documentation](https://github.com/JohnnyMorganz/StyLua)
- [Agent skill](/skills/stylua/SKILL.md)
