disable eslint for line
alert('foo'); // eslint-disable-line
// eslint-disable-next-line
alert('foo');
disable eslint for line
alert('foo'); // eslint-disable-line
// eslint-disable-next-line
alert('foo');
eslint disable block
/* eslint-disable */
// Block / line of code
/* eslint-enable */
disable eslint
/* eslint-disable */
//Put this comment ath the top of the file
disable eslint
Please watch this video to know more about ESLint in React:
[https://www.youtube.com/watch?v=gC2SDTeCDYs][1]
From this video, you can learn:
1) How we can disable ESLint in a specific file
2) How we can disable ESLint for a specific block in a specific file
3) How we can disable ESLint for the whole react project
[1]: https://www.youtube.com/watch?v=gC2SDTeCDYs
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us