clj-kondo / config

Please use https://github.com/clj-kondo/configs instead
Eclipse Public License 1.0
33 stars 10 forks source link

Clj-kondo config

Deprecated

Use configs instead.

This repo contains configurations and/or recommendations that can be used with clj-kondo. Check the resources folder for available configs.

Installation

This repo has an experimental main entrypoint that copies library specific config and hooks to your .clj-kondo.

Assuming the following alias in your deps.edn:

:clj-kondo/config
{:extra-deps {clj-kondo/config {:git/url "https://github.com/clj-kondo/config"
                                :sha "<latest-sha>"}}
 :main-opts ["-m" "clj-kondo.config"]}

you can invoke it with:

$ clojure -M:clj-kondo/config --lib rum --lib slingshot

This then copies Rum and Slingshot config into .clj-kondo/configs/rum and .clj-kondo/configs/slingshot respectively:

$ clojure -M:clj-kondo/config --lib rum --lib slingshot
Copying rum config to .clj-kondo/configs/rum
Copying slingshot config to .clj-kondo/configs/slingshot
Add "configs/rum", "configs/slingshot" to :config-paths in .clj-kondo/config.edn to activate configs.

To activate, you then add "configs/rum" and "configs/slingshot" to your :config-paths in config.edn and Rum and Slinghot syntax will be recognized.

Also see the config.md section on importing and exporting configs.

License

Copyright © 2020 Michiel Borkent

Distributed under the EPL License, same as Clojure. See LICENSE.