Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/kubernetes/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
带Emacs的Flycheck eslint_Emacs_Eslint_Flycheck - Fatal编程技术网

带Emacs的Flycheck eslint

带Emacs的Flycheck eslint,emacs,eslint,flycheck,Emacs,Eslint,Flycheck,我是Emacs的新手,整天都在搜索将eslint添加到Flycheck中 当我运行C-C-在React项目中: javascript-eslint - major mode: `help-mode' not supported - may enable: Automatically disabled! - executable: Found at /usr/local/bin/eslint - config file: missing 我想使用根项目的

我是Emacs的新手,整天都在搜索将eslint添加到Flycheck中

当我运行C-C-在React项目中:

  javascript-eslint
    - major mode:  `help-mode' not supported
    - may enable:  Automatically disabled!
    - executable:  Found at /usr/local/bin/eslint
    - config file: missing

我想使用根项目的配置文件。如何执行此操作?

您必须为eslint创建一个配置文件,然后flycheck将自动拾取该文件。在终端中按
eslint init
,为项目设置配置文件