eslint-plugin-react
eslint-plugin-react copied to clipboard
fix: disallow extra properties in rule options
Some rules, for example forbid-component-props currently allow extra properties to be passed in options object, which should not be allowed. This makes it easier for typos in rule options to go unnoticed.
This PR simply disallows extra properties in rules' schemas which currently allow them.