Skip to content

Commit 1f1ad7b

Browse files
committed
Remove --!optimize 2 from always-applied file headers
This directive should only be applied deliberately by the optimize-luau skill, not blanket-added to every Luau file.
1 parent d946d34 commit 1f1ad7b

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

style.mdc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,12 @@ alwaysApply: true
66

77
## File Headers
88

9-
- Always use `--!strict` and `--!optimize 2` at the top of every Luau file
9+
- Always use `--!strict` at the top of every Luau file
1010
- For performance-critical functions, use `@native` on individual functions instead of file-level `--!native`
1111
- Leave one empty line after headers before code begins
1212

1313
```luau
1414
--!strict
15-
--!optimize 2
1615

1716
```
1817

0 commit comments

Comments
 (0)