Skip to content

Commit

Permalink
add pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ferronn-dev committed Feb 7, 2022
1 parent 596e13a commit 81d35e2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion src/export.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 81d35e2

Please sign in to comment.