diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..d023fde --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,15 @@ +repos: +- repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.1.0 + hooks: + - id: check-yaml + - id: end-of-file-fixer + - id: trailing-whitespace +- repo: https://github.com/lunarmodules/luacheck + rev: 81e0835cf5b54b9cb2101b21edeec011dec5fff3 + hooks: + - id: luacheck +- repo: meta + hooks: + - id: check-hooks-apply + - id: check-useless-excludes diff --git a/src/export.lua b/src/export.lua index c68c5ed..a10b9eb 100644 --- a/src/export.lua +++ b/src/export.lua @@ -8,6 +8,6 @@ local toexport = { local frame = _G.CreateFrame('Frame') frame:RegisterEvent('PLAYER_LOGOUT') frame:SetScript('OnEvent', function() - toexport.ConsoleCommands = C_Console.GetAllCommands() + toexport.ConsoleCommands = _G.C_Console.GetAllCommands() _G.TheFlatDumper = _G.LibStub('LibDeflate'):CompressDeflate(G.pprint(toexport)) end)