javascript icon indicating copy to clipboard operation
javascript copied to clipboard

Configuration for rule "no-param-reassign" is invalid

Open kartiklad opened this issue 9 years ago • 2 comments

I think the latest version of eslint-config-airbnb-base v11.1.2 is giving me an error whenever I use the airbnb config with eslint.

Error log:

Error: <project>/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: <project>/node_modules/eslint-config-airbnb-base/index.js
Referenced from: airbnb

Am I doing something wrong?

kartiklad avatar Mar 27 '17 06:03 kartiklad

That means you didn't update eslint along with it - ie, you didn't update the peer deps.

Rerun the install command in the package readme to update the peer deps to the right versions.

ljharb avatar Mar 27 '17 06:03 ljharb

@ljharb oh ok! Thanks a lot that a very quick response. It works now.

kartiklad avatar Mar 27 '17 07:03 kartiklad