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
eslint-disable-next-line [rule] doesn't work #6742
Comments
You have to specify that this rule is from react plugin, try changing your comment to this: // eslint-disable-next-line react/no-did-mount-set-state |
That did it. Thanks @ilyavolodin! Might be something worth noting in the docs? |
If this isn't covered in the docs, we should fix this. @kevinSuttle Would you mind sharing what docs you were looking at? |
Sure. Neither |
@kevinSuttle I do see eslint-disable-next-line in those docs, but it couldn't hurt to remind folks that plugin rules must be prefixed. @ilyavolodin Is it worth reopening this issue (or creating a new one) to clarify the docs here? |
Working on this. |
❯ eslint -v
v3.1.1
What version of ESLint are you using?
❯ eslint -v
v3.1.1
What parser (default, Babel-ESLint, etc.) are you using?
babel-eslint
Please show your full configuration:
package.json:
What did you do? Please include the actual source code causing the issue.
What did you expect to happen?
The rule to be disabled on the next line.
What actually happened? Please include the actual, raw output from ESLint.
The text was updated successfully, but these errors were encountered: