New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can not ignore unicorn/no-null in some case #703
Comments
Hi, can you try to create a smaller example? I doubt all these lines are necessary to reproduce the issue. Making it a SSCCE (also known as MCVE/reprex) will save time from maintainers and increase the odds you get a faster response. |
the |
Question, why don't you want fixed to |
One reason it might be preferable to allow |
Note: |
Thank you for your explanation. I think this is a bug in eslint, anyway, since that |
Per #757 (comment), this should be fixed in ESLint. Open an issue on ESLint about this. |
Obviously, eslint team is not willing to make this change: eslint/eslint#13537 (comment) So as it stands right now, the two rules (eqeqeq and no-null) are generally conflicting. Perhaps we should document it, and suggest some workarounds, if any? |
.eslintrc.js: rules
'unicorn/no-null': 0,
code (Note the line of code marked
FIXME
):It report
If I fix any one error, the other will no longer report the error.
The text was updated successfully, but these errors were encountered: