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

eslint-plugin-disallow-cross-domain-imports

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-disallow-cross-domain-imports - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

.eslintrc.js

8

lib/rules/disallow-cross-domain-imports.js
/**
* @fileoverview disallow cross-importing of modules matching a defined list of paths unless with a 'domain'
* @author Alex
* @author Alex Jeffcott
*/

@@ -16,3 +16,3 @@ "use strict";

meta: {
type: null, // `problem`, `suggestion`, or `layout`
type: 'problem',
docs: {

@@ -44,4 +44,4 @@ description: "disallow cross-importing of modules matching a defined list of paths unless with a 'domain'",

ImportDeclaration(node) {
// const filePath = context.getPhysicalFilename()
const filePath = 'test'
const filePath = context.getPhysicalFilename()
// const filePath = 'test'
const importPath = node.source.value

@@ -48,0 +48,0 @@ // context.options

{
"name": "eslint-plugin-disallow-cross-domain-imports",
"version": "1.0.3",
"description": "Eslint rule to disallow cross-importing of modules matching a defined list of paths unless with a 'domain'",
"main": "index.js",
"version": "1.0.4",
"description": "disallow cross-importing of modules matching a defined list of paths unless with a 'domain'",
"keywords": [
"eslint",
"eslintplugin",
"eslint-plugin"
],
"author": "Alex Jeffcott",
"main": "lib/index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"lint": "eslint .",
"test": "mocha tests --recursive"
},
"author": "",
"dependencies": {
"requireindex": "^1.2.0"
},
"devDependencies": {
"eslint": "^8.0.1",
"eslint-plugin-eslint-plugin": "^4.0.1",
"eslint-plugin-node": "^11.1.0",
"mocha": "^9.1.3"
},
"engines": {
"node": "12.x || 14.x || >= 16"
},
"peerDependencies": {
"eslint": ">=6"
},
"license": "ISC"
}
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