We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b17b8be commit c47e3b3Copy full SHA for c47e3b3
lib/rules/prefer-read-only-props.js
@@ -60,10 +60,10 @@ module.exports = {
60
if (!prop.node.variance) {
61
// Insert covariance
62
return fixer.insertTextBefore(prop.node, '+');
63
- } else {
64
- // Replace contravariance with covariance
65
- return fixer.replaceText(prop.node.variance, '+');
66
}
+
+ // Replace contravariance with covariance
+ return fixer.replaceText(prop.node.variance, '+');
67
68
});
69
0 commit comments