From 7779261104287b46b37500b9a3e821a755f925b0 Mon Sep 17 00:00:00 2001 From: doryan Date: Fri, 9 May 2025 14:48:20 +0400 Subject: [PATCH] feat(lint): add eslint configuration --- lua/config/plugins/eslint.lua | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 lua/config/plugins/eslint.lua diff --git a/lua/config/plugins/eslint.lua b/lua/config/plugins/eslint.lua new file mode 100644 index 0000000..feb9f4a --- /dev/null +++ b/lua/config/plugins/eslint.lua @@ -0,0 +1,19 @@ +eslint.setup({ + bin = 'eslint', -- or `eslint_d` + code_actions = { + enable = true, + apply_on_save = { + enable = true, + types = { "directive", "problem", "suggestion", "layout" }, + }, + disable_rule_comment = { + enable = true, + location = "separate_line", -- or `same_line` + }, + }, + diagnostics = { + enable = true, + report_unused_disable_directives = false, + run_on = "type", -- or `save` + }, +})