@wistia/eslint-config 0.32.0 → 0.32.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/rules/eslint/react.cjs +3 -2
package/package.json
CHANGED
package/rules/eslint/react.cjs
CHANGED
|
@@ -629,11 +629,12 @@ module.exports = {
|
|
|
629
629
|
|
|
630
630
|
// Enforce using `onChange` or `readonly` attribute when `checked` is used
|
|
631
631
|
// https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/checked-requires-onchange-or-readonly.md
|
|
632
|
-
'react/checked-requires-onchange-or-readonly': 'error',
|
|
632
|
+
// 'react/checked-requires-onchange-or-readonly': 'error',
|
|
633
633
|
|
|
634
634
|
// Disallow usage of referential-type variables as default param in functional component
|
|
635
635
|
// https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/no-object-type-as-default-prop.md
|
|
636
|
-
|
|
636
|
+
// decision: there's an edge case issue this could prevent but it's not common enough to warrant the rule
|
|
637
|
+
'react/no-object-type-as-default-prop': 'off',
|
|
637
638
|
|
|
638
639
|
// This rule is deprecated. It was replaced by `react/sort-default-props`
|
|
639
640
|
// https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-sort-default-props.md
|