---
name: stylua
description: "Use when adopting StyLua to assess this standard: Use one Lua formatter across editors"
---

# Apply StyLua

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

## Procedure

1. Inspect the repository configuration and identify the files or targets covered by StyLua.
2. 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.
3. Record the tool version, configuration, scope and findings. Explain any checks that could not run.
4. Use the same invocation after changes and compare the evidence against the baseline.

Refer to [the upstream documentation](https://github.com/JohnnyMorganz/StyLua) for configuration and prerequisites.

## Tool invocation

```
stylua --check .
```
