This is still a draft and only helps setting up the environment to make it easier to develop.
Install the luacheck VS Code extension (https://marketplace.visualstudio.com/items?itemName=rog2.luacheck).
Format using vscode-lua-format (https://marketplace.visualstudio.com/items?itemName=Koihik.vscode-lua-format).
Install luacheck (https://github.com/mpeterv/luacheck or luarocks install luacheck
)
Install luaformatter (https://github.com/Koihik/LuaFormatter or luarocks install --server=https://luarocks.org/dev luaformatter
)