mirror of
https://github.com/searxng/searxng.git
synced 2025-08-03 10:32:21 +02:00
[emacs] .dir-locals.el: add setup for js-mode
- move jshint option from gruntfile to .jshintrc - remove trailing-whitespace from gruntfile and - add jshint esversion: 6 - .dir-locals.el add locals for js-mode to use JSHint from the simple theme Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
parent
f73a00dcee
commit
a3f58a3a3d
3 changed files with 20 additions and 11 deletions
|
@ -88,6 +88,15 @@
|
|||
(setq-local js-indent-level 2)
|
||||
(flycheck-checker . json-python-json)))))
|
||||
|
||||
(js-mode
|
||||
. ((eval . (progn
|
||||
(setq-local js-indent-level 2)
|
||||
;; flycheck should use the jshint checker from simple theme
|
||||
(setq-local flycheck-javascript-jshint-executable
|
||||
(expand-file-name "searx/static/themes/simple/node_modules/.bin/jshint" prj-root))
|
||||
(flycheck-mode)
|
||||
))))
|
||||
|
||||
(python-mode
|
||||
. ((eval . (progn
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue