Before setting up your editor, see Project setup on how to configure clj-kondo for your project. TL;DR: this involves creating a .clj-kondo directory in the root of your project.

For integrating with Emacs, see flycheck-clj-kondo.

This section assumes that you are already using Cursive.

Install the File Watchers plugin.

Repeat the below steps for the file types Clojure ( .clj ), ClojureScript ( .cljs ) and CLJC ( .cljc ).