eslint-plugin-unused-imports
Advanced tools
Comparing version 4.1.1 to 4.1.2
@@ -1,7 +0,4 @@ | ||
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, { | ||
get: (a, b) => (typeof require !== "undefined" ? require : a)[b] | ||
}) : x)(function(x) { | ||
if (typeof require !== "undefined") return require.apply(this, arguments); | ||
throw Error('Dynamic require of "' + x + '" is not supported'); | ||
}); | ||
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }// node_modules/.pnpm/tsup@8.2.4_jiti@1.21.6_postcss@8.4.40_typescript@5.5.4/node_modules/tsup/assets/cjs_shims.js | ||
var getImportMetaUrl = () => typeof document === "undefined" ? new URL(`file:${__filename}`).href : document.currentScript && document.currentScript.src || new URL("main.js", document.baseURI).href; | ||
var importMetaUrl = /* @__PURE__ */ getImportMetaUrl(); | ||
@@ -91,7 +88,9 @@ // src/rules/predicates.ts | ||
// src/rules/load-rule.ts | ||
var _module = require('module'); | ||
var rule; | ||
var require2 = _module.createRequire.call(void 0, importMetaUrl); | ||
function getBaseRule() { | ||
if (!rule) { | ||
try { | ||
const tslint = __require("@typescript-eslint/eslint-plugin"); | ||
const tslint = require2("@typescript-eslint/eslint-plugin"); | ||
rule = tslint.rules["no-unused-vars"]; | ||
@@ -105,3 +104,3 @@ } catch (_) { | ||
function getESLintBaseRule() { | ||
const eslint = __require("eslint"); | ||
const eslint = require2("eslint"); | ||
return new eslint.Linter({ configType: "eslintrc" }).getRules().get("no-unused-vars"); | ||
@@ -108,0 +107,0 @@ } |
{ | ||
"name": "eslint-plugin-unused-imports", | ||
"version": "4.1.1", | ||
"version": "4.1.2", | ||
"type": "commonjs", | ||
@@ -5,0 +5,0 @@ "packageManager": "pnpm@9.7.0", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Debug access
Supply chain riskUses debug, reflection and dynamic code execution features.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
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
2
15194
242