eslint-plugin-unused-imports
Advanced tools
Comparing version 4.1.3 to 4.1.4
@@ -1,2 +0,2 @@ | ||
"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 | ||
"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.6.2/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; | ||
@@ -13,3 +13,3 @@ var importMetaUrl = /* @__PURE__ */ getImportMetaUrl(); | ||
sourceCode.getNodeByRangeIndex(sourceCode.getIndexFromLoc(problem.loc.start)))); | ||
return parent ? /^Import(|Default|Namespace)Specifier$/.test(parent.type) == isImport ? Object.assign(problem, _optionalChain([addFixer, 'optionalCall', _2 => _2(parent, sourceCode)])) : false : problem; | ||
return parent ? /^Import(|Default|Namespace)Specifier$/.test(parent.type) == isImport ? Object.assign(problem, _optionalChain([addFixer, 'optionalCall', _2 => _2(parent, sourceCode)])) : false : isImport ? false : problem; | ||
}; | ||
@@ -16,0 +16,0 @@ } |
{ | ||
"name": "eslint-plugin-unused-imports", | ||
"version": "4.1.3", | ||
"version": "4.1.4", | ||
"type": "commonjs", | ||
@@ -37,18 +37,18 @@ "description": "Report and remove unused es6 modules", | ||
"devDependencies": { | ||
"@types/eslint": "^9.6.0", | ||
"@typescript-eslint-v5/eslint-plugin": "npm:@typescript-eslint/eslint-plugin@^5", | ||
"@typescript-eslint-v5/parser": "npm:@typescript-eslint/parser@^5", | ||
"@typescript-eslint-v6/eslint-plugin": "npm:@typescript-eslint/eslint-plugin@^6", | ||
"@typescript-eslint-v6/parser": "npm:@typescript-eslint/parser@^6", | ||
"@typescript-eslint-v7/eslint-plugin": "npm:@typescript-eslint/eslint-plugin@^7", | ||
"@typescript-eslint-v7/parser": "npm:@typescript-eslint/parser@^7", | ||
"@typescript-eslint/eslint-plugin": "^8.0.1", | ||
"@typescript-eslint/parser": "^8.0.1", | ||
"@typescript-eslint/utils": "^8.0.1", | ||
"bumpp": "^9.4.2", | ||
"eslint": "^9.8.0", | ||
"@types/eslint": "^9.6.1", | ||
"@typescript-eslint-v5/eslint-plugin": "npm:@typescript-eslint/eslint-plugin@^5.62.0", | ||
"@typescript-eslint-v5/parser": "npm:@typescript-eslint/parser@^5.62.0", | ||
"@typescript-eslint-v6/eslint-plugin": "npm:@typescript-eslint/eslint-plugin@^6.21.0", | ||
"@typescript-eslint-v6/parser": "npm:@typescript-eslint/parser@^6.21.0", | ||
"@typescript-eslint-v7/eslint-plugin": "npm:@typescript-eslint/eslint-plugin@^7.18.0", | ||
"@typescript-eslint-v7/parser": "npm:@typescript-eslint/parser@^7.18.0", | ||
"@typescript-eslint/eslint-plugin": "^8.5.0", | ||
"@typescript-eslint/parser": "^8.5.0", | ||
"@typescript-eslint/utils": "^8.5.0", | ||
"bumpp": "^9.5.2", | ||
"eslint": "^9.10.0", | ||
"prettier": "^3.3.3", | ||
"tsup": "^8.2.4", | ||
"typescript": "^5.5.4", | ||
"vitest": "^2.0.5" | ||
"typescript": "^5.6.2", | ||
"vitest": "^2.1.0" | ||
}, | ||
@@ -55,0 +55,0 @@ "license": "MIT", |
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
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
14998