2016-10-20 3 views
0

EmacsをSpacemacsの設定で使用しています(javacriptレイヤーを有効にしました。は有効ではありません。が有効です)。 js2モードでは間違ったリンキングが起こっていることがわかりました(つまり、プロジェクトルートに.eslintrcというファイルがあり、その設定が無視されています.cliからeslintを実行するとエラーはゼロになりますが、バッファにエラーが表示されます)。フライチェックから来ていないと思われるjs2モードの糸くずれエラー?

eslint from the cli shows no errors

私もこれらの毛羽立ちのエラーを生成することができるものこの時点での損失でビットです。私の知る限りでは、フライチェック(私はthis lineをjavascriptのレイヤーコードに書いていますが、flycheckはドキュメントに記載されていませんが、どこから呼び出されているのかわかりません)。しかし、私はフライチェックがオンではないことを誓うことができます。私は

  • をチェックflycheck、リンティング、または構文の言及はありませんことをdescribe-modeを実行し、確保しましたインタラクティブなミニバッファ経由flycheck-mode
  • をオフにトグル手動で試してみた

    • ので、私はこれをかなり確信していますflycheck-verify-setupは私が

    を誘発しないので、共同ます決してフック(add-hook 'flycheck-mode-hook (lambda() (message "entered flycheck mode")))を追加しましたFlycheck Mode is disabled.

  • を報告します私のバッファーでこれらのエラーをuld から来る可能性がありますか?

    Eslint errors about missing semi colon and trailing comma

    Errors show up in minibuffer

    ここ

    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) 
    
  • +0

    あなたは、実際のエラーを提供することはできますか? –

    +0

    @AronGriffisあなたはどういう意味ですか?彼らは私のjsファイルのエラーをlintingている。私の '.eslintrc'でルールを無効にしてcli(正しく)が報告しないときは、「セミコロンはありません」のようなものです。 Emacsのエラーはありません –

    答えて

    4

    これらのエラーはjs2-modeから直接来る.spacemacs抜粋です。

    あなたの設定でこれらの2を設定することにより、それらをオフにすることができます

    (setq js2-mode-show-parse-errors nil 
         js2-mode-show-strict-warnings nil) 
    
    関連する問題