Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

提示需要安装eslint-plugin-react #136

Open
z-juln opened this issue Jun 12, 2022 · 1 comment
Open

提示需要安装eslint-plugin-react #136

z-juln opened this issue Jun 12, 2022 · 1 comment

Comments

@z-juln
Copy link

z-juln commented Jun 12, 2022

使用yarn安装,在项目里安装eslint后,执行eslint,提示ESLint couldn't find the plugin "eslint-plugin-react".

此时node_modules内结构为:

/node_modules
    @umijs/fabric
        node_modules
            eslint-plugin-react

但如果项目里不安装eslint,直接npx eslint执行的话,是不会有任何问题的,这是为什么呢

@Wxh16144
Copy link
Member

这个问题貌似没有任何进展,我也遇到了,听了你的建议我 remove 了项目 eslint 依赖就解决了。。。

Wxh16144 added a commit to Wxh16144-forks/rc-util that referenced this issue Jan 13, 2023
zombieJ pushed a commit to react-component/util that referenced this issue Jan 14, 2023
* chore(deps): bump `[email protected]`

* chore(deps): add `@rc-component/father-plugin`

* chore: update config

* chore(deps): bump `@umijs/[email protected]`

* chore(deps): remove local eslint

ref: umijs/fabric#136

* chore: add eslint  eq @umijs/fabric

* chore: add rc-test remove coveralls

* ci: update config

* remove jest config

* remove deps

* test: update test

这里的用例遇到点问题,需要进一步确定

* chore:  lock version

* chore: update script

* update [email protected]

* ci: add site-deploy workflow

* docs: update

* remove unused
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants