Skip to content

Conversation

@lyallcooper
Copy link

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.

Versions of clj-kondo since `2023.03.17` support [inline macro
configuration](https://github.com/clj-kondo/clj-kondo/blob/master/doc/config.md#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
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant