git 子模块上的 Eslint,如何覆盖父配置

Eslint on git submodule, how to overwrite parent config

我想在它内部和父亲上使用 eslint,我的 objective 是在我的核心上使用管道,因为它有很多手,但它正在获取父项目的配置,我如何可以避免吗?

> core@0.1.0 lint
> eslint ./src/**/*.{js,jsx} --fix


- client\core\node_modules\eslint-plugin-react\index.js (loaded in ".eslintrc.js")
- client\node_modules\eslint-plugin-react\index.js (loaded in "..\.eslintrc.js")

Please remove the "plugins" setting from either config or remove either plugin installation.

If you still can't figure out the problem, please stop by https://eslint.org/chat/help to chat with the team.```

要解决这个问题,只需在当前目录和父目录的 eslint 配置中使用 root: true