You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Micro plugins are written in Lua for which there are two decent linters that I know of: Luacheck and selene. Luacheck is older and hasn't been updated in a number of years but it can still be useful. Selene is more modern (it was originally developed to support Roblox development) and it's still getting regular updates. If you're unsure which one you want to use you can check out comparison of the two in selene docs.
A small issue with both of these linters is that by default they are unaware of variables and functions that micro editor provides or uses (such as import and init). Here are the configuration files that I have been using to stop the linters from complaining about those functions. Maybe they can save someone a few minutes of reading linter docs and messing with configuration files.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Micro plugins are written in Lua for which there are two decent linters that I know of: Luacheck and selene. Luacheck is older and hasn't been updated in a number of years but it can still be useful. Selene is more modern (it was originally developed to support Roblox development) and it's still getting regular updates. If you're unsure which one you want to use you can check out comparison of the two in selene docs.
A small issue with both of these linters is that by default they are unaware of variables and functions that micro editor provides or uses (such as
import
andinit
). Here are the configuration files that I have been using to stop the linters from complaining about those functions. Maybe they can save someone a few minutes of reading linter docs and messing with configuration files.Luacheck (https://github.com/mpeterv/luacheck)
.luacheckrc
Selene (https://github.com/Kampfkarren/selene)
selene.toml:
micro.yml:
Beta Was this translation helpful? Give feedback.
All reactions