aboutsummaryrefslogtreecommitdiffstats
path: root/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
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')
-rw-r--r--lua/mason-registry/commitlint/init.lua17
-rw-r--r--lua/mason-registry/index.lua1
-rw-r--r--lua/mason/mappings/language.lua2
3 files changed, 19 insertions, 1 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" },
+ },
+}
diff --git a/lua/mason-registry/index.lua b/lua/mason-registry/index.lua
index 9a07b682..9fff906f 100644
--- a/lua/mason-registry/index.lua
+++ b/lua/mason-registry/index.lua
@@ -36,6 +36,7 @@ return {
codelldb = "mason-registry.codelldb",
codeql = "mason-registry.codeql",
codespell = "mason-registry.codespell",
+ commitlint = "mason-registry.commitlint",
cpplint = "mason-registry.cpplint",
cpptools = "mason-registry.cpptools",
crystalline = "mason-registry.crystalline",
diff --git a/lua/mason/mappings/language.lua b/lua/mason/mappings/language.lua
index 71077428..f64341c8 100644
--- a/lua/mason/mappings/language.lua
+++ b/lua/mason/mappings/language.lua
@@ -44,7 +44,7 @@ return {
flow = { "prettier", "prettierd" },
flux = { "flux-lsp" },
fortran = { "fortls" },
- gitcommit = { "gitlint" },
+ gitcommit = { "commitlint", "gitlint" },
go = { "delve", "djlint", "go-debug-adapter", "gofumpt", "goimports", "goimports-reviser", "golangci-lint", "golangci-lint-langserver", "golines", "gomodifytags", "gopls", "gotests", "gotestsum", "iferr", "impl", "json-to-struct", "revive", "staticcheck" },
gradle = { "gradle-language-server" },
graphql = { "graphql-language-service-cli", "prettier", "prettierd" },