Skip to content
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 false report #11950

Closed
aladdin-add opened this issue Jul 5, 2019 · 1 comment
Closed

require-atomic-updates false report #11950

aladdin-add opened this issue Jul 5, 2019 · 1 comment
Labels
archived due to age This issue has been archived; please open a new issue for any further discussion bug ESLint is working incorrectly evaluating The team will evaluate this issue to decide whether it meets the criteria for inclusion rule Relates to ESLint's core rules

Comments

@aladdin-add
Copy link
Member

Tell us about your environment

  • ESLint Version: 6.0.1
  • Node Version: v12
  • npm Version:

What parser (default, Babel-ESLint, etc.) are you using?
default
Please show your full configuration:

Configuration
{
rules: {require-atomic-updates: 2}
}

What did you do? Please include the actual source code causing the issue, as well as the command that you used to run ESLint.

async function tryFetchMainfest() {
  const config = await pureFetchMainfest(flasher.manifestId);
  if (config) {
    flasher.config = config;
  }
}

What did you expect to happen?
no error reported.

What actually happened? Please include the actual, raw output from ESLint.
45:5 error Possible race condition: flasher.config might be reassigned based on an outdated value of flasher.config require-atomic-updates

Are you willing to submit a pull request to fix this bug?
not sure.

@aladdin-add aladdin-add added bug ESLint is working incorrectly triage An ESLint team member will look at this issue soon evaluating The team will evaluate this issue to decide whether it meets the criteria for inclusion rule Relates to ESLint's core rules and removed triage An ESLint team member will look at this issue soon labels Jul 5, 2019
@mysticatea
Copy link
Member

I think this is a duplicate of #11899.

@eslint-deprecated eslint-deprecated bot locked and limited conversation to collaborators Jan 2, 2020
@eslint-deprecated eslint-deprecated bot added the archived due to age This issue has been archived; please open a new issue for any further discussion label Jan 2, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
archived due to age This issue has been archived; please open a new issue for any further discussion bug ESLint is working incorrectly evaluating The team will evaluate this issue to decide whether it meets the criteria for inclusion rule Relates to ESLint's core rules
Projects
None yet
Development

No branches or pull requests

2 participants