whamtet / simpleui

JS Free Single Page Applications
https://simpleui.io
Eclipse Public License 2.0
251 stars 15 forks source link

Add clj-kondo inline macro configuration #34

Open lyallcooper opened 5 months ago

lyallcooper commented 5 months ago

Versions of clj-kondo since 2023.03.17 support inline macro configuration. We can use this to prevent annoying linting errors from popping up when using defcomponent etc. without having to add anything to our clj-kondo config.

I'm not sure I've chosen the best config options here though, so please double check them.

lyallcooper commented 5 months ago

Apologies, on closer inspection of the clj-kondo docs it seems like this won't magically fix the errors without downstream users still having to the incantation of:

$ clj-kondo --lint "$(clojure -Spath)" --dependencies --parallel --copy-configs

Which as far as I can tell is the same as the current situation 😕

However, this still might be an improvement over the status quo since IMHO it's a little clearer to put the lint instructions with the functions than it is to have them buried in a separate config file.