Skip to content

Commit c0a7316

Browse files
authored
Fix lsp-eslint custom option types (#1730)
1 parent 7130ffb commit c0a7316

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

lsp-eslint.el

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,10 @@
5050

5151
(defcustom lsp-eslint-package-manager "npm"
5252
"The package manager you use to install node modules."
53-
:type '(choice (:tag "npm" "yarn" "pnpm"))
53+
:type '(choice (const :tag "npm" "npm")
54+
(const :tag "yarn" "yarn")
55+
(const :tag "pnpm" "pnpm")
56+
(string :tag "other"))
5457
:package-version '(lsp-mode . "6.3"))
5558

5659
(defcustom lsp-eslint-format t
@@ -75,7 +78,8 @@
7578

7679
(defcustom lsp-eslint-run "onType"
7780
"Run the linter on save (onSave) or on type (onType)"
78-
:type '(choice (:tag "onSave" "onType"))
81+
:type '(choice (const :tag "onSave" "onSave")
82+
(const :tag "onType" "onType"))
7983
:package-version '(lsp-mode . "6.3"))
8084

8185
(defcustom lsp-eslint-auto-fix-on-save nil

0 commit comments

Comments
 (0)