I've already set the following rules to off in my eslintrc.json file:
But whenever I press ctrl+. to try importing a component from a different file vscode suggests me to import React.
is there any way to stop this from happening?
below are the plugins I'm using with the .eslintrc.json:
Note: With Next. js you don't need to import React because Next.
Go to settings > extensions > emmet > include languages and add javascript as the item and javascriptreact as the value.
React is a popular JavaScript library developed by Facebook for building user interfaces. The Visual Studio Code editor supports React.
This isn't an issue with ESLint - this is an issue with Typescript. It's tracked here and you can confirm that even if you disable ESLint for your project you'll get this error and that bad suggestion. At the moment there's no workaround other but it will hopefully be fixed in TS4.3. I will update this answer if a workaround or solution is released.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With