mirror of
https://github.com/searxng/searxng.git
synced 2025-08-03 10:32:21 +02:00
[mod] simple theme - add ESLint
[1] https://eslint.org/ [2] https://eslint.org/docs/user-guide/configuring/ [3] https://eslint.org/docs/user-guide/command-line-interface Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
parent
1e942435be
commit
2948a99b6e
5 changed files with 33 additions and 3 deletions
|
@ -91,9 +91,9 @@
|
|||
(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 should use the eslint checker from simple theme
|
||||
(setq-local flycheck-javascript-eslint-executable
|
||||
(expand-file-name "searx/static/themes/simple/node_modules/.bin/eslint" prj-root))
|
||||
(flycheck-mode)
|
||||
))))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue