eslint-plugin-disable-autofix
Advanced tools
Comparing version 2.9.0 to 2.10.0
@@ -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", |
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
8446