1
0
mirror of https://github.com/searxng/searxng.git synced 2024-11-22 12:10:11 +01:00

Merge pull request #816 from return42/fix-emacs

[emacs] flycheck should use the eslint checker from developer tools
This commit is contained in:
Markus Heiser 2022-01-24 11:56:19 +01:00 committed by GitHub
commit b2018a88d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -103,6 +103,10 @@
;; use nodejs from the (local) NVM environment (see nvm-dir) ;; use nodejs from the (local) NVM environment (see nvm-dir)
(nvm-use-for-buffer) (nvm-use-for-buffer)
(setq-local js-indent-level 2) (setq-local js-indent-level 2)
;; flycheck should use the eslint checker from developer tools
(setq-local flycheck-javascript-eslint-executable
(expand-file-name "node_modules/.bin/eslint" prj-root))
(flycheck-mode) (flycheck-mode)
)))) ))))