Skip to content

Commit

Permalink
feat(registry): add jsonlint tool for JSON (#565)
Browse files Browse the repository at this point in the history
  • Loading branch information
afranioce authored Oct 17, 2022
1 parent 2742ada commit 2a04590
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
1 change: 1 addition & 0 deletions lua/mason-registry/index.lua
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ return {
["js-debug-adapter"] = "mason-registry.js-debug-adapter",
["json-lsp"] = "mason-registry.json-lsp",
["json-to-struct"] = "mason-registry.json-to-struct",
jsonlint = "mason-registry.jsonlint",
["jsonnet-language-server"] = "mason-registry.jsonnet-language-server",
["julia-lsp"] = "mason-registry.julia-lsp",
["kotlin-language-server"] = "mason-registry.kotlin-language-server",
Expand Down
13 changes: 13 additions & 0 deletions lua/mason-registry/jsonlint/init.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
local Pkg = require "mason-core.package"
local npm = require "mason-core.managers.npm"

return Pkg.new {
name = "jsonlint",
desc = [[A pure JavaScript version of the service provided at jsonlint.com.]],
homepage = "https://github.com/zaach/jsonlint",
languages = {
Pkg.Lang.JSON,
},
categories = { Pkg.Cat.Linter },
install = npm.packages { "jsonlint", bin = { "jsonlint" } },
}
2 changes: 1 addition & 1 deletion lua/mason/mappings/language.lua
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ return {
java = { "clang-format", "java-debug-adapter", "java-test", "jdtls" },
javascript = { "chrome-debug-adapter", "clang-format", "deno", "eslint-lsp", "eslint_d", "firefox-debug-adapter", "js-debug-adapter", "node-debug2-adapter", "prettier", "prettierd", "quick-lint-js", "rome", "typescript-language-server", "xo" },
jinja = { "curlylint", "djlint" },
json = { "cfn-lint", "clang-format", "fixjson", "jq", "json-lsp", "prettier", "prettierd", "spectral-language-server" },
json = { "cfn-lint", "clang-format", "fixjson", "jq", "json-lsp", "jsonlint", "prettier", "prettierd", "spectral-language-server" },
jsonnet = { "jsonnet-language-server" },
jsx = { "prettier", "prettierd" },
julia = { "julia-lsp" },
Expand Down

0 comments on commit 2a04590

Please sign in to comment.