Skip to content

Commit b73d44a

Browse files
committed
docs(claude): add Lua path-scoped rules
1 parent 11c455c commit b73d44a

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

dot_claude/rules/lua.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
paths:
3+
- "**/*.lua"
4+
---
5+
6+
# Lua
7+
8+
- **Formatter:** `stylua` — 2-space indent, double quotes, always parenthesize calls (`require("x")`)
9+
- **Linter:** `selene`
10+
- **Pre-commit checks:** `stylua --check . && selene .`
11+
- Target **Lua 5.1 / LuaJIT** — NEVER use Lua 5.3+ syntax (bitwise `&`/`|`/`~`, integer division `//`); use the `bit` library
12+
- **Neovim configs:** prefer `vim.opt.*` / `vim.api.*` over legacy vimscript; guard optional `require()` with `pcall`

0 commit comments

Comments
 (0)