Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Minor clean up and help with feedback
- basic clj-kondo config and cleanup unused binding - Add some unit tests - Add a basic readme
- Loading branch information
1 parent
d266228
commit 06fa658
Showing
8 changed files
with
67 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{:linters | ||
{:aliased-namespace-symbol {:level :warning} | ||
:namespace-name-mismatch {:level :warning} | ||
:used-underscored-binding {:level :warning} | ||
|
||
:consistent-alias | ||
{:aliases {clojure.string string}}} | ||
:skip-comments true | ||
:output {:progress true}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.clj-kondo/.cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
## Description | ||
|
||
This library provides common util namespaces to share between the frontend and | ||
other non-frontend namespaces. This library is not supposed to depend on other logseq | ||
libraries. | ||
|
||
## API | ||
|
||
This library is under the parent namespace `logseq.common`. | ||
|
||
## Dev | ||
|
||
This follows the practices that [the Logseq frontend | ||
follows](/docs/dev-practices.md). Most of the same linters are used, with | ||
configurations that are specific to this library. See [this library's CI | ||
file](/.github/workflows/logseq-common.yml) for linting examples. | ||
|
||
### Testing | ||
|
||
To run ClojureScript tests: | ||
``` | ||
clojure -M:test | ||
``` | ||
|
||
To auto-run tests while writing tests: | ||
|
||
``` | ||
clojure -M:test -w src | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters