aboutsummaryrefslogtreecommitdiffstats
path: root/lua/conform/formatters/eslint_d.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/conform/formatters/eslint_d.lua')
-rw-r--r--lua/conform/formatters/eslint_d.lua13
1 files changed, 13 insertions, 0 deletions
diff --git a/lua/conform/formatters/eslint_d.lua b/lua/conform/formatters/eslint_d.lua
new file mode 100644
index 0000000..e036aae
--- /dev/null
+++ b/lua/conform/formatters/eslint_d.lua
@@ -0,0 +1,13 @@
+local util = require("conform.util")
+---@type conform.FormatterConfig
+return {
+ meta = {
+ url = "https://github.com/mantoni/eslint_d.js/",
+ description = "Like ESLint, but faster.",
+ },
+ command = util.from_node_modules("eslint_d"),
+ args = { "--fix-to-stdout", "--stdin", "--stdin-filename", "$FILENAME" },
+ cwd = util.root_file({
+ "package.json",
+ }),
+}