Skip to content

Commit f459b89

Browse files
committed
chore(deps): upgrade
1 parent cbf1eb7 commit f459b89

File tree

9 files changed

+770
-307
lines changed

9 files changed

+770
-307
lines changed

.eslintrc.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@
2727
"no-return-assign": "error",
2828
"no-restricted-syntax": [
2929
"error",
30+
{
31+
"selector": "CallExpression[callee.property.name=required][callee.object.callee.property.name=nullable]",
32+
"message": ".nullable() should be after .required() for correct validation and type inference. Example: id: yup.string().required().nullable()"
33+
},
3034
{
3135
"selector": "CallExpression[callee.name=watch], MemberExpression[object.name=methods][property.name=watch]",
3236
"message": "\"watch\" re-render the whole form component. Use hook \"useWatch\" instead."
@@ -109,7 +113,7 @@
109113
},
110114
{
111115
"selector": "ExpressionStatement[expression.callee.object.name=JSON][expression.callee.property.name=parse][expression.arguments.0.callee.object.name=JSON][expression.arguments.0.callee.property.name=stringify]",
112-
"message": "Do not use JSON.parse(JSON.stringify(...)) for deep copy. Use structuredClone instead."
116+
"message": "Do not use JSON.parse(JSON.stringify(...)) for deep copy. Use \"structuredClone\" instead."
113117
},
114118
{
115119
"selector": "CallExpression[callee.name=test][arguments.0.value!=/^should/]",

0 commit comments

Comments
 (0)