Skip to content

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

@richcsmith

Description

@richcsmith

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions