-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add luacheck support and fix identified issues
- Loading branch information
1 parent
96456f3
commit bba33ec
Showing
3 changed files
with
45 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
stds.easypattern = require "luacheck/Luacheck" | ||
|
||
std = "lua54+playdate+easypattern" | ||
|
||
operators = {"+=", "-=", "*=", "/="} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
-- EasyPattern globals | ||
-- | ||
-- This file can also be used with toyboxpy (https://toyboxpy.io): | ||
-- | ||
-- 1. Add this to your project's .luacheckrc: | ||
-- require "toyboxes/luacheck" (stds, files) | ||
-- | ||
-- 2. Add 'toyboxes' to your std: | ||
-- std = "lua54+playdate+toyboxes" | ||
|
||
return { | ||
globals = { | ||
EasyPattern = { | ||
fields = { | ||
super = { | ||
fields = { | ||
className = {}, | ||
init = {} | ||
}, | ||
}, | ||
className = {}, | ||
init = {}, | ||
setColor = {}, | ||
setBackgroundColor = {}, | ||
setPattern = {}, | ||
setDitherPattern = {}, | ||
updatePatternImage = {}, | ||
getPhases = {}, | ||
isDirty = {}, | ||
apply = {} | ||
} | ||
}, | ||
} | ||
} |