Closed controversial closed 1 year ago
The rules/*.d.ts
files are auto-generated
Please forward this issue to https://github.com/jsx-eslint/eslint-plugin-react/blob/31282dd27c8488efdb53967271d31c79d3072f74/lib/rules/require-default-props.js#L43-L52
There you can see that the enum is wrapped in an allow
and I think this needs to be removed
a working example can be found here: https://github.com/jsx-eslint/eslint-plugin-react/blob/31282dd27c8488efdb53967271d31c79d3072f74/lib/rules/jsx-sort-props.js#L370-L373
For the deprecation, please check if this can be achieved via json-schema as well
Thanks for the note; I filed https://github.com/jsx-eslint/eslint-plugin-react/issues/3604.
Checked, but the newest commit it still not released, so I wait for 7.34
See the documentation for this rule’s options.
Neither the
classes
option nor thefunctions
option accepts an object value, so the previous type definition here is incorrect and broken.Example of correctly written eslint config being assigned an erroneous type error:
I also added a
@deprecated
label for the option that is listed as such in the documentation.