Skip to content

Commit

Permalink
fix(typescript): fix null_ls eslint_d registration(s) (#274)
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelderolez authored Jun 14, 2023
1 parent dac8741 commit 947fbf0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lua/astrocommunity/pack/typescript/typescript.lua
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ return {
or util.root_has_file ".prettierrc.json5"
or util.root_has_file ".prettierrc.js"
or util.root_has_file ".prettierrc.cjs"
or util.root_has_file "prettierrc.config.js"
or util.root_has_file "prettierrc.config.cjs"
or util.root_has_file "prettier.config.js"
or util.root_has_file "prettier.config.cjs"
or util.root_has_file ".prettierrc.toml"
end

Expand All @@ -87,9 +87,9 @@ return {

opts.handlers.eslint_d = function()
local null_ls = require "null-ls"
null_ls.register(null_ls.builtins.diagnostics.eslint_d.with {
condition = function(util) return (has_eslint(util) or not has_prettier(util)) end,
})
null_ls.register(null_ls.builtins.diagnostics.eslint_d.with { condition = has_eslint })
null_ls.register(null_ls.builtins.formatting.eslint_d.with { condition = has_eslint })
null_ls.register(null_ls.builtins.code_actions.eslint_d.with { condition = has_eslint })
end
end,
},
Expand Down

0 comments on commit 947fbf0

Please sign in to comment.