eslint-plugin-factorial
Advanced tools
Comparing version 1.0.3 to 1.0.4
15
index.js
@@ -53,2 +53,14 @@ /** | ||
const noRenderIf = { | ||
create: function (context) { | ||
return { | ||
CallExpression (node) { | ||
if (node.callee.name !== 'renderIf') return | ||
context.report(node, 'renderIf is deprecated. Use conditional rendering: https://reactjs.org/docs/conditional-rendering.html#inline-if-with-logical--operator') | ||
} | ||
} | ||
} | ||
} | ||
module.exports = { | ||
@@ -58,4 +70,5 @@ rules: { | ||
'no-autobind': noAutobind, | ||
'no-custom-moment': noCustomMoment | ||
'no-custom-moment': noCustomMoment, | ||
'no-render-if': noRenderIf | ||
} | ||
} |
{ | ||
"name": "eslint-plugin-factorial", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"main": "index.js" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3290
64