Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-plugin-factorial

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-factorial - npm Package Compare versions

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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc