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.

Eslint error: Value "data["0"].ignorePropertyModificationsFor" has additional properties

See original GitHub issue

Hello, I am building a web app that was scaffolded from create-react-app, but uses airbnb-eslint-config. I have been using this for a few months with no issues, but earlier today, I rm -rf node_modules/ and reinstalled them, and am now getting the following error:

Failed to compile.

Error in ./src/index.js
Module build failed: Error: /Users/rich/Git/web-app/node_modules/eslint-config-airbnb-base/rules/best-practices.js:
	Configuration for rule "no-param-reassign" is invalid:
	Value "data["0"].ignorePropertyModificationsFor" has additional properties.

Referenced from: /Users/rich/Git/web-app/node_modules/eslint-config-airbnb-base/index.js
Referenced from: airbnb
Referenced from: /Users/rich/Git/web-app/node_modules/react-scripts/.eslintrc
    at Array.forEach (native)
    at Array.reduceRight (native)
    at Array.reduceRight (native)
    at Array.reduceRight (native)
 @ multi ./~/react-dev-utils/webpackHotDevClient.js ./~/react-scripts/config/polyfills.js ./src/index.js

I’ve tried overriding this rule in my eslint config:

"no-param-reassign": [0, { "props": false }],

and I’ve tried:

"no-param-reassign": "off",

All to no avail. Can someone please help me understand what’s changed, and what I’m missing?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9

github_iconTop GitHub Comments

2reactions
richcsmithcommented, Mar 28, 2017

Updating to the latest version of babel-eslint (7.1.1 => 7.2.1) resolved my issue.

1reaction
ljharbcommented, Jan 5, 2018

I’d put the “extends” line first, but otherwise that looks fine. I don’t personally use react-native, so I can’t help you with that part.

Read more comments on GitHub >

github_iconTop Results From Across the Web

eslint - What does "has additional properties" mean in an error ...
However, when running eslint I receive the error: Configuration for rule "indent" is invalid: Value "data["1"].FunctionDeclaration" has ...
Read more >
no-param-reassign - ESLint - Pluggable JavaScript Linter
This rule takes one option, an object, with a boolean property "props" , and arrays "ignorePropertyModificationsFor" and "ignorePropertyModificationsForRegex" .
Read more >
eslint/eslint - Gitter
The error says: Configuration for rule "no-param-reassign" is invalid: Value "data["0"].ignorePropertyModificationsFor" has additional properties. an the ...
Read more >
Why eslint throws "Assignment to property of function ... - Reddit
I have been trying this part of the code for sometime… ... I know eslint isn't showing error for nothing so I would...
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