Getting error when running ESLint & Prettier"Disallow self-closing on HTML void elements (<img/>)"

I am using ESLint and Prettier in the project and when I try to remove the / and save, it gets restored when I save because of Prettier. How can I fix this issue? Is there a plugin that i have to install which will make it so that ESLint and Prettier will not interfere with each other?
1 Reply
Sagar Kapoor
Sagar KapoorOP3mo ago
All right, this is something that is an issue with how Prettier is opinionated. Nothing can be really done about it. Apart from configuring ESLint to ignore this warning if I want to continue using Prettier.
Want results from more Discord servers?
Add your server