style: add selene for diagnostics
Hey, thanks for the PR. Will take a look at this one as well as the other ones you opened this weekend.
Can you elaborate a bit more on why it's better?
Selene is faster than luacheck and sumneko-lua diagnostics, it's fully customizable, it has many options, it is maintained, luacheck is not maintained, sumneko is not customizable.
I'm using the maintained version of luacheck so that shouldn't be an issue.
Speed shouldn't be an issue since the codebase is very small.
Not sure how sumneko plays a role here since that's a language server.
Can you run selene over the entire codebase? If there are some meaningful mistakes I made that selene cought, I'll think about merging this.