New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

eslint-plugin-disable-autofix

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-disable-autofix - npm Package Compare versions

Comparing version 2.4.0 to 2.5.0

10

lib/rules.js

@@ -39,6 +39,6 @@ "use strict";

const getBuiltIn = node_fs_1.default
.readdirSync(node_path_1.default.join(node_path_1.default.resolve(), 'node_modules/eslint/lib/rules'))
.readdirSync(node_path_1.default.join(__dirname, 'node_modules/eslint/lib/rules'))
.filter((builtIn) => builtIn.includes('.js'));
for (const builtIn of getBuiltIn) {
importedBuiltIns.push(Promise.resolve().then(() => __importStar(require(node_path_1.default.join(node_path_1.default.resolve(), 'node_modules/eslint/lib/rules/', builtIn)))));
importedBuiltIns.push(Promise.resolve().then(() => __importStar(require(node_path_1.default.join(__dirname, 'node_modules/eslint/lib/rules/', builtIn)))));
}

@@ -58,3 +58,3 @@ const getAllRules = async () => {

const getPlugins = node_fs_1.default
.readdirSync(node_path_1.default.join(node_path_1.default.resolve(), 'node_modules/'))
.readdirSync(node_path_1.default.join(__dirname, 'node_modules/'))
.filter((plugin) => (plugin.startsWith('eslint-plugin') ||

@@ -69,6 +69,6 @@ (plugin.startsWith('@') && /eslint/u.test(plugin))) &&

const pluginDirectory = node_fs_1.default
.readdirSync(node_path_1.default.join(node_path_1.default.resolve(), 'node_modules/', plugin))
.readdirSync(node_path_1.default.join(__dirname, 'node_modules/', plugin))
.find((read) => /plugin/u.test(read));
if (pluginDirectory) {
copyIt = node_path_1.default.join(node_path_1.default.resolve(), 'node_modules/', plugin, pluginDirectory);
copyIt = node_path_1.default.join(__dirname, 'node_modules/', plugin, pluginDirectory);
}

@@ -75,0 +75,0 @@ }

{
"name": "eslint-plugin-disable-autofix",
"version": "2.4.0",
"version": "2.5.0",
"description": "Disable ESLint autofix (--fix) for specified rules",

@@ -5,0 +5,0 @@ "main": "./lib/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