Commit 4284a96
committed
Export clj-kondo hook
This exports the clj-kondo hook for `manifold.deferred/both`, along with the other clj-kondo config used internally by manifold.
After upgrading my project's deps from manifold `0.2.4` to `0.4.2`, I started getting unresolved-var warnings from clj-kondo everywhere I use any function that's defined after [this line](https://github.com/clj-commons/manifold/blob/12950654f185c65156a5817f5bec79a3afbfe401/src/manifold/deferred.clj#L466), which uses the `both` macro.
The warnings went away after merging the config from `.clj-kondo/config.edn`, which defines a hook that teaches clj-kondo how to interpret `both`, but which is available only while hacking on manifold itself, into the config in `resources/clj-kondo.exports/manifold/manifold/config.edn`, which is exported to projects that depend on manifold.
There's no change to hacking on manifold itself, because the internal config includes the exported config via `:config-paths`. This seems better than maintaining the clj-kondo config in two places.1 parent 1295065 commit 4284a96
File tree
3 files changed
+21
-27
lines changed- .clj-kondo
- resources/clj-kondo.exports/manifold/manifold
- manifold
3 files changed
+21
-27
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
4 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
5 | 14 | | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
File renamed without changes.
0 commit comments