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
require-atomic-updates complains about unrelated variable references #11900
Comments
I've just encountered a similar one: try {
result = await someAsyncCall(/* ... */)
} catch (e) {
ctx.status = e.statusCode || 500
ctx.body = e.error
return
} I'm getting an error for both of the assignment lines in the
|
Thank you for your report. I confirmed it. Looks like the initializer in @hon2a Your case looks different to this issue because it doesn't contain |
@mysticatea: Sorry, here you go. Should I create a separate issue then? |
Unfortunately, it looks like there wasn't enough interest from the team Thanks for contributing to ESLint and we appreciate your understanding. |
Another demo case: demo export let lock = 2;
export async function f() {
{
let lock;
lock;
}
await null;
lock = 3;
} |
Tell us about your environment
What parser (default, Babel-ESLint, etc.) are you using?
default
Please show your full configuration:
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.
> eslint atomic-updates.js
What did you expect to happen?
I get no error or a useful explanation what is wrong with this code.
What actually happened? Please include the actual, raw output from ESLint.
I am getting this linting error:
Are you willing to submit a pull request to fix this bug?
I expect it to take me quiet long to understand the logic. Therefore not at this moment.
The text was updated successfully, but these errors were encountered: