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

eslint-plugin-path

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-path - npm Package Compare versions

Comparing version 1.0.0-rc.4 to 1.0.0-rc.5

lib/rules/index.js

32

lib/index.js
"use strict";
module.exports.rules = {
"no-relative-imports": require("./rules/no-relative-imports"),
};
const { noRelativeImport } = require("./rules");
module.exports.configs = {
recommended: {
plugins: ["path"],
rules: {
"path/no-relative-imports": ["error", { maxDepth: 2, suggested: true }],
},
module.exports = {
rules: {
"no-relative-imports": noRelativeImport,
},
all: {
plugins: ["path"],
rules: {
"path/no-relative-imports": ["error", { maxDepth: 2, suggested: true }],
configs: {
recommended: {
plugins: ["path"],
rules: {
"path/no-relative-imports": ["error", { maxDepth: 1, suggested: true }],
},
},
all: {
plugins: ["path"],
rules: {
"path/no-relative-imports": [
"error",
{ maxDepth: 2, suggested: false },
],
},
},
},
};
{
"name": "eslint-plugin-path",
"version": "1.0.0-rc.4",
"version": "1.0.0-rc.5",
"main": "lib/index.js",

@@ -40,2 +40,5 @@ "author": "qDanik <qdanik@yandex.ru>",

},
"peerDependencies": {
"eslint": ">=6.0.0"
},
"directories": {

@@ -42,0 +45,0 @@ "docs": "docs"

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