Skip to content

Commit

Permalink
[eslint] support .cjs config file format (#4703)
Browse files Browse the repository at this point in the history
  • Loading branch information
LukFil authored Feb 10, 2025
1 parent 230608a commit 9c1dfd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clients/lsp-eslint.el
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ stored."
(-filter (lambda (dir)
(-none?
(lambda (file) (f-exists? (f-join dir file)))
'(".eslintrc.js" ".eslintrc.yaml" ".eslintrc.yml" ".eslintrc" ".eslintrc.json")))))
'(".eslintrc.js" ".eslintrc.cjs" ".eslintrc.yaml" ".eslintrc.yml" ".eslintrc" ".eslintrc.json")))))
(`nil (user-error "All workspace folders contain ESLint configuration"))
(folders (let ((default-directory (completing-read "Select project folder: " folders nil t)))
(async-shell-command (format "%s --init" (lsp--find-eslint)))))))
Expand Down

0 comments on commit 9c1dfd8

Please sign in to comment.