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.9.0 to 2.10.0

12

lib/rules.js

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

const getBuiltIn = node_fs_1.default
.readdirSync(node_path_1.default.join(dirname, '../eslint/lib/rules'))
.readdirSync(node_path_1.default.join(dirname, '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(dirname, '../eslint/lib/rules/', builtIn)))));
importedBuiltIns.push(Promise.resolve().then(() => __importStar(require(node_path_1.default.join(dirname, 'eslint/lib/rules/', builtIn)))));
}

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

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

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

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

@@ -84,3 +84,3 @@ }

? plugin.id.split('/')[0]
: plugin.id.replace(/^eslint-plugin-/u, '');
: plugin.id.replace(/^eslint-plugin-/u);
for (const rule of Object.keys(plugin.rules || {})) {

@@ -87,0 +87,0 @@ if (rule) {

{
"name": "eslint-plugin-disable-autofix",
"version": "2.9.0",
"version": "2.10.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