question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Regression: explicit "allow-in-func" causes validation error

See original GitHub issue

For the no-did-mount-set-state, no-did-update-set-state rules:

Configuration for rule "react/no-did-mount-set-state" is invalid:
    Value "allow-in-func" must be an enum value.
Referenced from: .eslintrc
    at validateRuleOptions (node_modules/eslint/lib/config/config-validator.js:115:15)
    at /Users/node_modules/eslint/lib/config/config-validator.js:162:13
    at Array.forEach (native)
    at Object.validate (node_modules/eslint/lib/config/config-validator.js:161:35)
    at load (node_modules/eslint/lib/config/config-file.js:522:19)
    at node_modules/eslint/lib/config/config-file.js:391:36
    at Array.reduceRight (native)
    at applyExtends (node_modules/eslint/lib/config/config-file.js:362:28)
    at Object.load (node_modules/eslint/lib/config/config-file.js:529:22)
    at loadConfig (node_modules/eslint/lib/config.js:63:33)

The commit that breaks it: https://github.com/yannickcr/eslint-plugin-react/commit/10c6f23866b58dff5a7f8d16eb8b8a62cc997a66

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
lencionicommented, Aug 20, 2016

Thanks for the report!

It was likely 376dc53656f78059fb405d9e30c2f402717f6882 (#702) that broke this for you. This option is the default as of 6.0.0 and was removed in favor of a disallow-in-func option, which you can see in the changelog: https://github.com/yannickcr/eslint-plugin-react/blob/master/CHANGELOG.md#600---2016-08-01

This has been discussed in #760 and #734.

0reactions
ljharbcommented, Mar 4, 2017

@alberth8 if that doesn’t work, you may not have a new enough version of the plugin installed, or you may not have restarted Atom.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Regression validation - Wikipedia
In statistics, regression validation is the process of deciding whether the numerical results quantifying hypothesized relationships between variables, ...
Read more >
What causes non-normality of the error term in OLS?
I am referring to one of the basic assumptions of OLS regression, that the errors are normally distributed. But of course we can't...
Read more >
Lecture notes on ridge regression - arXiv
The current status of the document is 'work-in-progress' as it is incomplete (more results from literature will be included) and it may contain ......
Read more >
9.2 Threats to Internal Validity of Multiple Regression Analysis
This section treats five sources that cause the OLS estimator in (multiple) regression models to be biased and inconsistent for the causal effect...
Read more >
4. Regression and Prediction - Practical Statistics for Data ...
In general, the data doesn't fall exactly on a line, so the regression equation should include an explicit error term e i :...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found