【发布时间】:2021-02-13 07:19:28
【问题描述】:
我在 sublime-text 3 中工作,项目结构如下:
workdir
--root-project-dirictory
---- src
---- eslint.yml
--project.sublime-project
问题是这样的:ESLint 在 workdir 中而不是在 root-project-dirictory 中寻找 eslint-plugin-react 插件。
结果我得到一个错误:
ESLint couldn't find the plugin "eslint-plugin-react".
(The package "eslint-plugin-react" was not found when loaded as a Node module from the directory "/.../workdir".)
...
The plugin "eslint-plugin-react" was referenced from the config file in "root-project-dirictory / .eslintrc.yml".
【问题讨论】:
-
您找到解决方案了吗?
标签: sublimetext eslint