Skip to content

Commit 9c1dfd8

Browse files
authored
[eslint] support .cjs config file format (#4703)
1 parent 230608a commit 9c1dfd8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clients/lsp-eslint.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ stored."
264264
(-filter (lambda (dir)
265265
(-none?
266266
(lambda (file) (f-exists? (f-join dir file)))
267-
'(".eslintrc.js" ".eslintrc.yaml" ".eslintrc.yml" ".eslintrc" ".eslintrc.json")))))
267+
'(".eslintrc.js" ".eslintrc.cjs" ".eslintrc.yaml" ".eslintrc.yml" ".eslintrc" ".eslintrc.json")))))
268268
(`nil (user-error "All workspace folders contain ESLint configuration"))
269269
(folders (let ((default-directory (completing-read "Select project folder: " folders nil t)))
270270
(async-shell-command (format "%s --init" (lsp--find-eslint)))))))

0 commit comments

Comments
 (0)