aboutsummaryrefslogtreecommitdiffstats
path: root/lua/mason-registry/commitlint/init.lua
diff options
context:
space:
mode:
authorDan Sully <dan+github@sully.org>2022-10-17 11:48:22 -0700
committerGitHub <noreply@github.com>2022-10-17 20:48:22 +0200
commitd3abfbe04626f30b32f3046f3b5c40763b377e85 (patch)
treeccbd89afaf3bde03d08bead1db9217d3c6062c66 /lua/mason-registry/commitlint/init.lua
parentfeat(registry): add jsonlint tool for JSON (#565) (diff)
downloadmason-d3abfbe04626f30b32f3046f3b5c40763b377e85.tar
mason-d3abfbe04626f30b32f3046f3b5c40763b377e85.tar.gz
mason-d3abfbe04626f30b32f3046f3b5c40763b377e85.tar.bz2
mason-d3abfbe04626f30b32f3046f3b5c40763b377e85.tar.lz
mason-d3abfbe04626f30b32f3046f3b5c40763b377e85.tar.xz
mason-d3abfbe04626f30b32f3046f3b5c40763b377e85.tar.zst
mason-d3abfbe04626f30b32f3046f3b5c40763b377e85.zip
feat(registry): add commitlint (#564)
Diffstat (limited to 'lua/mason-registry/commitlint/init.lua')
-rw-r--r--lua/mason-registry/commitlint/init.lua17
1 files changed, 17 insertions, 0 deletions
diff --git a/lua/mason-registry/commitlint/init.lua b/lua/mason-registry/commitlint/init.lua
new file mode 100644
index 00000000..02f23ccf
--- /dev/null
+++ b/lua/mason-registry/commitlint/init.lua
@@ -0,0 +1,17 @@
+local Pkg = require "mason-core.package"
+local _ = require "mason-core.functional"
+local npm = require "mason-core.managers.npm"
+
+return Pkg.new {
+ name = "commitlint",
+ desc = "commitlint checks if your commit messages meet the conventional commit format.",
+ homepage = "https://commitlint.js.org/",
+ languages = { Pkg.Lang.GitCommit },
+ categories = { Pkg.Cat.Linter },
+ install = npm.packages {
+ "@commitlint/cli",
+ "@commitlint/config-conventional",
+ "commitlint-format-json",
+ bin = { "commitlint" },
+ },
+}