1 parent 11c455c commit b73d44aCopy full SHA for b73d44a
1 file changed
dot_claude/rules/lua.md
@@ -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