eslint-plugin-factorial
Advanced tools
Comparing version 1.0.2 to 1.0.3
10
index.js
@@ -16,5 +16,9 @@ /** | ||
if (node.source.value !== 'react') return | ||
if (node.specifiers[0].type !== 'ImportDefaultSpecifier') return | ||
if (!node.specifiers.map(s => s.type).includes('ImportDefaultSpecifier')) return | ||
context.report(node, 'Import React generically. More info: https://twitter.com/sebmarkbage/status/1250284377138802689?s=19') | ||
if (node.specifiers.length > 1) { | ||
context.report(node, 'Split the React import in two and import React generically') | ||
} else { | ||
context.report(node, 'Import React generically. More info: https://twitter.com/sebmarkbage/status/1250284377138802689?s=19') | ||
} | ||
} | ||
@@ -42,3 +46,3 @@ } | ||
Literal (node) { | ||
if (node.value !== 'YYYY-MM-DD') return | ||
if (node.value !== 'YYYY-MM-DD') return // eslint-disable-line | ||
@@ -45,0 +49,0 @@ context.report(node, 'Use stringToDate and dateToString moment helpers') |
{ | ||
"name": "eslint-plugin-factorial", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"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
2921
53