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