ESLint规则已禁用,但在终端上发出警告

问题描述 投票:-2回答:1

该规则有效,它不再对锚标记感到生气,但是终端仍在发出警告。任何人都可以帮助解决此问题?预先感谢!

terminal warning image

javascript reactjs eslint compiler-warnings
1个回答
0
投票

创建React应用会隐藏它自己的eslint设置。因此,通常,您创建的eslint配置仅在IDE中用于您自己的目的。

https://create-react-app.dev/docs/setting-up-your-editor/

似乎可以从create react应用程序扩展ESLint配置,这应该允许您使终端与您的配置匹配。

https://create-react-app.dev/docs/setting-up-your-editor/#experimental-extending-the-eslint-config

© www.soinside.com 2019 - 2024. All rights reserved.