我正在使用带有Spacemacs配置的emacs (启用javascript层,不启用语法检查)。在JS2模式下,我发现出现了错误的linting (即在我的项目根目录下有一个.eslintrc文件,并且它的配置被忽略了--从cli运行eslint会给出零错误,但是在缓冲区中会出现错误)。

我有点不知所措,在这一点上,什么可能会产生这些衬里错误。据我所知,它们一定来自flycheck (我在javascript层代码中注意到了这条线,尽管docs中没有提到flycheck,也找不到它的调用来源)。不过,我敢说支票没开。我很确定这是因为
flycheck-modedescribe-mode,并确保没有提到flycheck、linting或语法检查flycheck-verify-setup报告Flycheck Mode is disabled.(add-hook 'flycheck-mode-hook (lambda () (message "entered flycheck mode")))那么,我的缓冲区中的这些错误可能来自哪里呢?


这是一个.spacemacs节选
dotspacemacs-configuration-layers
'(
;; ----------------------------------------------------------------
;; Example of useful layers you may want to use right away.
;; Uncomment some layer names and press <SPC f e R> (Vim style) or
;; <M-m f e R> (Emacs style) to install them.
;; ----------------------------------------------------------------
javascript
html
helm
auto-completion
git
better-defaults
colors
;; emacs-lisp
markdown
clojure
;; org
;; (shell :variables shell-default-position 'bottom)
;; spell-checking
;; react
;; syntax-checking
version-control
)
;; List of additional packages that will be installed without being
;; wrapped in a layer. If you need some configuration for these
;; packages, then consider creating a layer. You can also put the
;; configuration in `dotspacemacs/user-config'.
dotspacemacs-additional-packages '(
paredit
editorconfig
writeroom-mode
tide
csharp-mode
elisp-format
;; powershell
omnisharp
gist
parinfer
ag )发布于 2016-10-21 00:22:20
这些错误直接来自js2-mode。
您可以通过在您的配置中设置以下2来关闭它们:
(setq js2-mode-show-parse-errors nil
js2-mode-show-strict-warnings nil)https://stackoverflow.com/questions/40159183
复制相似问题