There is errors in my code:
Severity Code Description Project File Line Suppression State Error eqeqeq (ESLint) Expected '!==' and instead saw '!='.
I can't find where to disable ONLY the eqeqeq
option.
Thanks in advance.
To turn off the eqeqeq rule everywhere:
%USERPROFILE%
and hit Enter .eslintrc
open with...
, Notepad (or your favorite text editor)"rules": { "eqeqeq": "always",
and change it to "off" to disable, or "smart" (see below):
"rules": { "eqeqeq": "off",
smart
The "smart" option enforces the use of === and !== except for these cases:
Comparing two literal values Evaluating the value of typeof Comparing against null
Link for more information:
https://eslint.org/docs/rules/eqeqeq
To turn off the eqeqeq rule on a per file basis, paste this at the top of your .js file:
/*eslint eqeqeq: "off"*/
To turn off the all ESLint functionality on a per-project basis, create a file named .eslintrc.json
in your project's root folder, (or any folder you want ESLint turned off), with the following contents:
{ }
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