Eslint error: Value "data["0"].ignorePropertyModificationsFor" has additional properties
See original GitHub issueHello, 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:
- Created 6 years ago
- Comments:9
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Updating to the latest version of
babel-eslint
(7.1.1 => 7.2.1) resolved my issue.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.