Spacemacs 구성 (자바 스크립트 레이어 사용, 이 아닌이 아닌 구문 검사)에서 emacs를 사용하고 있습니다. js2 모드에서 잘못된 linting이 발생했다는 것을 알게되었습니다. (즉, 프로젝트 루트에 .eslintrc
파일이 있고 무시됩니다. cli의 eslint를 실행하면 제로 오류가 발생하지만 오류는 버퍼에 나타납니다).플라이 체크 (flycheck)에서 오는 것 같지 않은 js2 모드의 린트 오류?
나는도 이러한 linting 오류를 생성 할 수있는 것을 에이 시점에서 손실에서 약간입니다. 지금까지 내가 아는 한, 그들은 플라이 체크 (Flycheck가 문서에서 언급되지 않았거나 자바 스크립트가 호출 된 곳을 찾을 수있을지라도 자바 스크립트 레이어 코드에서 this line을 기록했다. 그러나 나는 flycheck이 켜지지 않았다고 맹세 할 수있다.
- 내가 수동으로 linting, 내가
describe-mode
을 실행하고 flycheck에 대한 언급이 없다는 것을 보장 한 - 대화 형 미니 버퍼를 통해
flycheck-mode
을 전환 시도했거나 구문은 - 을 확인하기 때문에 나는이 꽤 확신
flycheck-verify-setup
보고서Flycheck Mode is disabled.
- 나는
그래서 공동 트리거 결코 극복 후크 (add-hook 'flycheck-mode-hook (lambda() (message "entered flycheck mode")))
를 추가했습니다 uld 내 버퍼에있는 오류 에서 올 수 있습니까?. 여기
는 이러한 오류는
js2-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)
당신이 실제 오류를 제공 할 수 있습니다 :
당신은 당신의 설정에서이 둘을 설정하여 해제 할 수 있습니다? –
@AronGriffis 무엇을 의미합니까? 그들은 내 js 파일에서 오류를 linting거야. 내 '.eslintrc'에서 해당 규칙을 사용하지 않도록 설정 한 경우 "세미 콜론이 없습니다"와 같은 내용이 있고 cli (제대로)가보고하지 않습니다. 이맥스 에러가 없다. –