The scope of require-default-props should not be to enforce the use of the defaultProps property (note: in its current state the rule clashes with several other rule libraries as is my case with immutable/no-mutation) The scope of the rule should be to assign a default value in order to...
Therequire-default-proprule would need to be modified to either enforce this, or ignoreBooleanprops. If the rule ignoresBooleanprops, then a new rule could be added to enforce properBooleanprops. Booleanprops should also never be required. ...
要么你已经打开了react/require-default-propsESLint规则(可能是通过包含一些ESLint插件),这开始给你错...
嗨,我有一个使用 React TypeScript 和 eslint 的项目(eslint-plugin-react/airbnb ...)。我有一个错误,来自下面的代码 propType "accoTriggerClass" is not required, but has no corresponding defaultProps declaration.eslintreact/require-default-props。 function AccordionDemo({ accordionData, chevron...
This PR modifies the vue/require-default-prop rule to add support for props destructure. related to #2121