From 62e5d82c866e3cce0269f5aa16ac3e5c64cf0380 Mon Sep 17 00:00:00 2001 From: NdYAG Date: Fri, 7 Jul 2023 23:34:34 +0800 Subject: [PATCH] add new fields to lsp-eslint--configuration --- clients/lsp-eslint.el | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/clients/lsp-eslint.el b/clients/lsp-eslint.el index 9a61646246..3aa5a11e89 100644 --- a/clients/lsp-eslint.el +++ b/clients/lsp-eslint.el @@ -90,6 +90,19 @@ http://eslint.org/docs/developer-guide/nodejs-api#cliengine)." :type 'alist) +(defcustom lsp-eslint-experimental nil + "The eslint experimental configuration." + :type 'alist) + +(defcustom lsp-eslint-config-problems nil + "The eslint problems configuration." + :type 'alist) + +(defcustom lsp-eslint-time-budget nil + "The eslint config to inform you of slow validation times and + long ESLint runs when computing code fixes during save." + :type 'alist) + (defcustom lsp-eslint-trace-server "off" "Traces the communication between VSCode and the eslint linter service." :type 'string) @@ -282,6 +295,9 @@ stored." :quiet (lsp-json-bool lsp-eslint-quiet) :onIgnoredFiles (if lsp-eslint-warn-on-ignored-files "warn" "off") :options (or lsp-eslint-options (ht)) + :experimental (or lsp-eslint-experimental (ht)) + :problems (or lsp-eslint-config-problems (ht)) + :timeBudget (or lsp-eslint-time-budget (ht)) :rulesCustomizations lsp-eslint-rules-customizations :run lsp-eslint-run :nodePath lsp-eslint-node-path