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 #9980
Comments
It's a *.vue file and there doesn't work any ignore rule like:
also with |
I can't reproduce this issue in the demo. Is it possible you're using the |
|
Probably I catched the problem. Everything works after removing |
I've also experienced this issue, I believe it emerged in version 4.18.0. Unfortunately, I'm not sure as to the cause. Edit: Turns out that I was unable to disable the rule no-await-in-loop with inline comments, including eslint-disable & eslint-disable-line. Not sure if this is related. |
I've also been unable to disable no-await-in-loop |
putting disable at the top of the file fixes the issue. it seems to have an issue if defined in a loop |
Work around eslint/eslint#9980 by disabling the `no-await-in-loop` rule for the entire test file.
@AndrewGHC Are you also using |
@not-an-aardvark No - my plugins were orientated around React. So far my experience aligns with @bdwain's, my only issue was with no-await-in-loop and I was unable to disable it. |
@AndrewGHC Thanks, I think your issue was also reported as #9992. |
Still doesn't work |
@not-an-aardvark Can this be closed? |
I'm not sure the original issue has been resolved, but I also couldn't reproduce it. |
Closing because this issue couldn't be reproduced. |
@not-an-aardvark sorry i didn't see this. This is an example of a check that was broken (at least when the issue was created. idk if it still is) for (const foo of bar) {
/* eslint-disable no-await-in-loop */
await blah(foo);
/* eslint-enable no-await-in-loop */
} |
That should no longer be the case in the latest version. |
About my environment
I use babel-eslint parser
Configuration
What did you do? Please include the actual source code causing the issue, as well as the command that you used to run ESLint.
What did you expect to happen?
no warnings
What actually happened? Please include the actual, raw output from ESLint.
D:\projects~\Providers.vue
39:3 error Line 18 exceeds the maximum line length of 100 max-len
The text was updated successfully, but these errors were encountered: