eslint-plugin-react: Looks like destructureInSignature don't work

Hi!

I would like to enable the destructureInSignature rule but as soon as I add this to the rules I get this: .eslintrc: Configuration for rule "react/destructuring-assignment" is invalid: Value {"ignoreClassFields":true,"destructureInSignature":"always"} should NOT have additional properties.

But when I remove "destructureInSignature":"always" everything works again.

And if I remove "ignoreClassFields":true," I still get the error: .eslintrc: Configuration for rule "react/destructuring-assignment" is invalid: Value {"destructureInSignature":"always"} should NOT have additional properties.

rule in .eslintrc:

		"react/destructuring-assignment": [
			2,
			"always",
			{ "ignoreClassFields": true, "destructureInSignature": "always" }
		],

package.json :

		"eslint": "^8.23.0",
		"eslint-config-airbnb": "^19.0.4",
		"eslint-config-prettier": "^8.5.0",
		"eslint-import-resolver-custom-alias": "^1.3.0",
		"eslint-plugin-import": "^2.26.0",
		"eslint-plugin-jsx-a11y": "^6.6.1",
		"eslint-plugin-prettier": "^4.2.1",
		"eslint-plugin-react": "^7.31.8",
		"eslint-plugin-react-hooks": "^4.6.0",
		"eslint-webpack-plugin": "^3.2.0",

What am I missing here?

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 15 (6 by maintainers)

Most upvoted comments

Ok got it! Thx for super fast respons on this!! 💪 Will fix this asap and post, but will be tomorrow!