update eslint.el from it's old version(emacs-flymake-eslint)
This commit is contained in:
4 files changed
+12
-12
No files matched your search
+3
-3
@@ -184,9 +184,9 @@
|
|||||||
[submodule "site-lisp/emacs-corfu-doc-terminal"]
|
[submodule "site-lisp/emacs-corfu-doc-terminal"]
|
||||||
path = site-lisp/emacs-corfu-doc-terminal
|
path = site-lisp/emacs-corfu-doc-terminal
|
||||||
url = https://codeberg.org/akib/emacs-corfu-doc-terminal.git
|
url = https://codeberg.org/akib/emacs-corfu-doc-terminal.git
|
||||||
[submodule "site-lisp/emacs-flymake-eslint"]
|
[submodule "site-lisp/eslint"]
|
||||||
path = site-lisp/emacs-flymake-eslint
|
path = site-lisp/eslint
|
||||||
url = https://github.com/zedhugh/emacs-flymake-eslint.git
|
url = https://github.com/zedhugh/eslint.el.git
|
||||||
[submodule "site-lisp/plantuml-mode"]
|
[submodule "site-lisp/plantuml-mode"]
|
||||||
path = site-lisp/plantuml-mode
|
path = site-lisp/plantuml-mode
|
||||||
url = https://github.com/skuro/plantuml-mode.git
|
url = https://github.com/skuro/plantuml-mode.git
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
(require 'init-package)
|
(require 'init-package)
|
||||||
(add-pkg-in-pkg-dir "eslint-disable-rule")
|
(add-pkg-in-pkg-dir "eslint-disable-rule")
|
||||||
(add-pkg-in-pkg-dir "emacs-flymake-eslint")
|
(add-pkg-in-pkg-dir "eslint")
|
||||||
|
|
||||||
(defun creature/flymake-show-diagnostics-buffer-and-jump ()
|
(defun creature/flymake-show-diagnostics-buffer-and-jump ()
|
||||||
(interactive)
|
(interactive)
|
||||||
@@ -49,22 +49,22 @@
|
|||||||
(autoload 'eslint-disable-rule-flymake "eslint-disable-rule-flymake")
|
(autoload 'eslint-disable-rule-flymake "eslint-disable-rule-flymake")
|
||||||
(autoload 'eslint-disable-rule-flycheck "eslint-disable-rule-flycheck")
|
(autoload 'eslint-disable-rule-flycheck "eslint-disable-rule-flycheck")
|
||||||
|
|
||||||
(autoload 'emacs-flymake-eslint-enable "emacs-flymake-eslint" "" t)
|
(autoload 'eslint-flymake-enable "eslint-flymake" "" t)
|
||||||
(autoload 'emacs-flymake-eslint--checker "emacs-flymake-eslint" "" t)
|
(autoload 'eslint-flymake-backend "eslint-flymake" "" t)
|
||||||
|
|
||||||
(defun eslint-disable-rule--emacs-flymake-eslint-active-p ()
|
(defun eslint-disable-rule--eslint-flymake-active-p ()
|
||||||
"Return non nil if `flymake-eslint' is enabled in the current buffer."
|
"Return non nil if `flymake-eslint' is enabled in the current buffer."
|
||||||
(and
|
(and
|
||||||
(featurep 'flymake)
|
(featurep 'flymake)
|
||||||
(or (featurep 'flymake-eslint)
|
(or (featurep 'flymake-eslint)
|
||||||
(featurep 'emacs-flymake-eslint))
|
(featurep 'eslint-flymake))
|
||||||
flymake-mode
|
flymake-mode
|
||||||
(member eslint-disable-rule-flymake--checker-fn flymake-diagnostic-functions)))
|
(member eslint-disable-rule-flymake--checker-fn flymake-diagnostic-functions)))
|
||||||
|
|
||||||
(with-eval-after-load 'eslint-disable-rule-flymake
|
(with-eval-after-load 'eslint-disable-rule-flymake
|
||||||
(setq eslint-disable-rule-flymake--checker-fn #'emacs-flymake-eslint--checker)
|
(setq eslint-disable-rule-flymake--checker-fn #'eslint-flymake-backend)
|
||||||
(advice-add 'eslint-disable-rule-flymake--eslint-active-p
|
(advice-add 'eslint-disable-rule-flymake--eslint-active-p
|
||||||
:override #'eslint-disable-rule--emacs-flymake-eslint-active-p))
|
:override #'eslint-disable-rule--eslint-flymake-active-p))
|
||||||
|
|
||||||
(defun creature/flymake-add-eslint-backend ()
|
(defun creature/flymake-add-eslint-backend ()
|
||||||
(when (and flymake-mode
|
(when (and flymake-mode
|
||||||
@@ -73,7 +73,7 @@
|
|||||||
'typescript-mode
|
'typescript-mode
|
||||||
'typescript-ts-base-mode
|
'typescript-ts-base-mode
|
||||||
'web-mode))
|
'web-mode))
|
||||||
(emacs-flymake-eslint-enable)))
|
(eslint-flymake-enable)))
|
||||||
|
|
||||||
|
|
||||||
(provide 'init-flymake)
|
(provide 'init-flymake)
|
||||||
Submodule site-lisp/emacs-flymake-eslint deleted from 51cf07e53b.
Submodule
+1
Submodule site-lisp/eslint added at 9dc8c5374f.
Reference in new issue
Block a user