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

eslint-plugin-factorial

Package Overview
Dependencies
Maintainers
2
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 2.0.3 to 2.0.4

rules/no-raw-html.js

2

package.json
{
"name": "eslint-plugin-factorial",
"version": "2.0.3",
"version": "2.0.4",
"main": "index.js",

@@ -5,0 +5,0 @@ "dependencies": {

@@ -62,3 +62,10 @@ const path = require('path')

const value = node.source.value
if (value && value.includes('store/collections')) {
const validImport = node.importKind !== 'type'
const validSource = value && value.includes('store/collections')
const validSpecifier = node.specifiers.filter((specifier) => {
return specifier.importKind === 'value'
}).length > 0
if (validImport && validSource && validSpecifier) {
if (!allowedCollections.includes(value)) {

@@ -65,0 +72,0 @@ reportWarning(node)

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