Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@salesforce/eslint-plugin-vscode-extensions

Latest version: v65.15.1

Overview

Last scanned
30 Nov 2026
Published
30 Nov 2026
npm package Publisher: ire-npm-team-user, jasonschroeder-sfdc, jimjag, lwc-admin, mobify, salesforce-admin, salesforce-releases
1,042 Stars
456 Forks
4 Versions
83 Downloads
TypeScript Repo language

Scan summary

@salesforce/eslint-plugin-vscode-extensions was last scanned on 30 Nov 2026 at version 65.15.1. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 4 versions; the latest was published on 30 Nov 2026.
  • Findings: No rules fired in version 65.15.1.
  • Downloads: 83 downloads.

Versions

4 versions published
Versions and the rules that fired in each
VersionPublishedStatus
65.15.1 LATEST 30 Nov 2026 No rules fired
65.13.1 16 Sep 2026 No rules fired
65.13.0 29 Aug 2026 No rules fired
65.12.2 26 Aug 2026 Not shown

No rules fired in 65.15.1

Findings

Findings for v65.15.1. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 65.15.1; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

@salesforce/eslint-plugin-vscode-extensions

Custom ESLint rules for Salesforce VSCode extensions.

Rules

no-duplicate-error-message-conversion

Reports isError(value) ? value.message : String(value) and value instanceof Error ? value.message : String(value) for the same identifier or property chain. Like other syntax-only rules, the predicate matches the isError identifier. Calls and computed expressions with side effects are excluded.

Recommends getMessageFromError from @salesforce/effect-ext-utils when the nearest package declares it in dependencies, devDependencies, or peerDependencies; otherwise recommends getErrorMessage from @salesforce/salesforcedx-utils. The canonical salesforcedx-utils helper implementation is exempt. Different formatting (stacks, JSON, custom messages) remains allowed. No autofix: the Effect helper formats non-Error values differently. Enabled as an error for workspace package code in eslint.config.mjs; standalone automation can run without built workspace dependencies.

prefer-effect-array-ensure

Reports Array.isArray(value) ? value : [value] and !Array.isArray(value) ? [value] : value when the nearest package declares effect in dependencies, devDependencies, or peerDependencies. Matches only the same identifier or property-access chain with identifier or literal keys; calls and other potentially side-effectful expressions are excluded.

Use import * as Arr from 'effect/Array' and Arr.ensure(value). No autofix. Shape checks, transformed results, element selection, undefined-to-empty fallbacks, and nested-array conversions remain unchanged.

prefer-effect-string-trim

Reports trim-only callbacks passed to Effect.map, including single-return function bodies and data-first calls. Resolves namespace imports from effect/Effect and named Effect imports from effect, including aliases; unrelated or shadowed bindings remain allowed.

Use Effect.map(String.trim) with import * as String from 'effect/String'. Optional chaining, nullish handling, non-Effect calls, and callbacks doing additional work remain unchanged. No autofix: imports and optional-value handling require review. Enabled as an error for TypeScript in eslint.config.mjs.

no-effect-tag

Replaces no-option-tag. Reports direct _tag reads on Effect tagged values: dot access, computed string keys (including literal-typed variables), and object destructuring, including computed keys. Uses TypeScript declaration origins, including inherited tags from Data.TaggedClass, Data.TaggedError, and Schema.TaggedError. Unrelated application _tag fields remain allowed, even with Some/None tags. Requires type information.

Writes, assignment targets, deletes, and type-only accesses remain allowed. No autofix: predicates, partial matches, and exhaustive dispatch have different control flow.

Bad:

option._tag === 'Some';
either['_tag'] === 'Left';
const { ['_tag']: tag } = exit;
switch (error._tag) { /* dispatch */ }

Dedicated APIs:

import * as Option from 'effect/Option';
import * as Either from 'effect/Either';
import * as Exit from 'effect/Exit';

Option.isNone(option);
Option.isSome(option);
Option.match(option, { onNone: () => 0, onSome: value => value });
Either.isLeft(either);
Either.isRight(either);
Either.match(either, { onLeft: error => error.message, onRight: value => String(value) });
Exit.match(exit, { onFailure: cause => String(cause), onSuccess: value => String(value) });

Other Effect tags — predicate or type guard:

import * as Predicate from 'effect/Predicate';

const isFailed = Predicate.isTagged('Failed');
if (isFailed(error)) { /* error narrowed to the matching tagged shape */ }

Dispatch — handle all variants or preserve intentional unmatched cases:

import * as Match from 'effect/Match';

Match.value(error).pipe(
  Match.tag('Failed', error => error.message),
  Match.tag('Cancelled', () => 'Cancelled'),
  Match.exhaustive
);

Match.value(error).pipe(Match.tag('Failed', error => error.message), Match.option);
Match.value(error).pipe(Match.tag('Failed', error => error.message), Match.orElse(() => 'Other'));

Enabled as 'local/no-effect-tag': 'error' in eslint.config.mjs for TypeScript production files. Test directories, *.test.*, *.spec.*, and Playwright configuration files are excluded.

no-schema-is-wrapper

Reports named bindings such as const isItem = Schema.is(Item) and functions whose only operation is returning Schema.is(Item)(value) or a fixed Schema.is(Item) predicate. Use Schema.is(Item)(value) directly, or pass Schema.is(Item) directly to a filter or other callback consumer. Functions with additional validation logic and schema factories remain allowed.

Like other AST-only Effect rules, it matches the Schema identifier. Enabled as an error in eslint.config.mjs. No autofix: removing a wrapper may require updating imports and callers in other modules.

no-schema-is-throw-guard

Reports if (!Schema.is(Id)(value)) { throw ... } and success checks with a throwing else, including checks of an unchanged boolean initialized from Schema.is(Id)(value). Ordinary predicates, filters, and non-throwing branches remain allowed. Like other AST-only Effect rules, it matches the Schema identifier.

Use Schema.asserts or Schema.decodeUnknownSync, with a custom Schema.annotations message or Schema.filter failure message on the schema. No autofix: the schema may live in another module.

no-legacy-telemetry-service

Disallows value imports of TelemetryService and value namespace imports from the retired @salesforce/salesforcedx-utils-vscode package, calls to TelemetryService.getInstance(), and identifiers named telemetryService. Namespace imports are rejected because they can access the legacy service via members or destructuring. Wrap work in Effect and use annotateRootSpan (ADR-0012); fireSpan is a last resort, not the default. Type-only imports remain allowed.

The only exemptions preserve the frozen core API: salesforcedx-vscode-core/src/services/telemetry/telemetryService.ts, src/telemetry/index.ts, src/index.ts, src/services/telemetry/telemetryServiceProvider.ts, and telemetry tests. The rule is enabled as an error for TypeScript files in eslint.config.mjs.

no-duplicate-i18n-values

Disallows English text in translation files that should be localized. This rule checks i18n locale files (e.g., i18n.ja.ts) and flags any translations that appear to be in English or duplicate the English source text.

no-vscode-message-literals

Enforces that vscode.window.show*Message calls use localized strings via nls.localize() or variables, not string literals.

Bad:

vscode.window.showErrorMessage('An error occurred');
vscode.window.showWarningMessage(`Failed: ${error}`);

Good:

vscode.window.showErrorMessage(nls.localize('error_message'));
const msg = nls.localize('error_with_details', error);
vscode.window.showWarningMessage(msg);
vscode.window.showErrorMessage(`${nls.localize('prefix')} - ${details}`);

The rule allows template literals that contain nls.localize() calls.

no-inline-esbuild-platform

Enforces that process.env.ESBUILD_PLATFORM is compared inline against a string literal (e.g. === 'web' / !== 'web', including ternary tests). esbuild's define replaces the literal at bundle time so 'web' === 'web' constant-folds and the dead call folds (ADR 0013); assigning it to a variable, object/class property, destructuring it, or comparing against a non-literal (=== someVar) defeats the fold and leaves the node call live in the web bundle.

Bad:

const isWebMode = process.env.ESBUILD_PLATFORM === 'web';
const { ESBUILD_PLATFORM } = process.env;
doThing(process.env.ESBUILD_PLATFORM);
if (process.env.ESBUILD_PLATFORM === someVar) { ... }

Good:

if (process.env.ESBUILD_PLATFORM === 'web') { ... }
const reporter = process.env.ESBUILD_PLATFORM === 'web' ? webReporter : nodeReporter;

Test files set/delete/save-restore the env var as Vitest plumbing; that is allowed via an off override in eslint.config.mjs, not the rule.

no-effect-fn-wrapper

Enforces that an arrow function wrapping an Effect.fn call hoists its params into the generator, where they become typed arguments instead of closure captures. The wrapper arrow then disappears.

Bad:

// params on wrapper arrow, generator has none (closure capture)
const findById = (id: UserId) =>
  Effect.fn('UserService.findById')(function* () {
    yield* repo.findById(id); // id from closure
  });

Good:

const findById = Effect.fn('UserService.findById')(function* (id: UserId) {
  yield* repo.findById(id);
});

Note: Immediately-invoked Effect.fn calls (e.g. Effect.fn('x')(function* (){})()) are flagged by the Effect Language Service rule effectFnIife (config-enforced in config/effect-diagnostics.json), not this rule. Use Effect.gen(...).pipe(Effect.withSpan(...)) for one-shot effects.

inline-single-use-yield-binding

Reports a single-use const x = yield* e when its only reference is in the immediately following return x, return f(x, ...), or yield* f(x, ...). The rule uses ESLint scope references, not Effect types. Only return x is autofixed: rewriting the call-argument cases as pipes requires knowing whether f is pure (Effect.map) or Effect-returning (Effect.flatMap), so those stay report-only for a human to rewrite. Comments outside the initializer in the removed declaration or between the binding and its use prevent autofix. Do not fix by nesting — f(yield* e) reads the callee before the yield runs; rewrite as a pipe instead.

Bad:

const value = yield* readValue;
return value;

Good:

return yield* readValue;

Bad:

const user = yield* getUser;
return formatUser(user);

Good (pure transform):

return yield* getUser.pipe(Effect.map(formatUser));

Bad:

const inputs = yield* getInputs;
yield* run(inputs);

Good (Effect-returning step):

yield* getInputs.pipe(Effect.flatMap(run));

Unlike the Effect Language Service's returnEffectInGen, this rule handles a local bound to the yielded value, not an un-run Effect returned from a generator.

no-nested-effect-gen-catch-tags

Inside an Effect.fn generator, do not wrap a span in Effect.gen just so .pipe can attach Effect.catchTags. Pipe from that span's first Effect and keep catchTags on that pipe. catchTags after other .pipe steps is the same shape. An Effect.gen service body, an Effect.gen inside Effect.fn with no catchTags, and Effect.catchTags on a non-Effect.gen receiver stay allowed. The rule is AST-only: it matches an Effect identifier, the same way no-effect-fn-wrapper does.

Bad:

const persist = Effect.fn('Example.persist')(function* () {
  yield* Effect.gen(function* () {
    const api = yield* (yield* ExtensionProviderService).getServicesApi;
    yield* (yield* api.services.SettingsService).setValue('section', 'key', true);
  }).pipe(
    Effect.catchTags({
      MissingSettingsError: error => Effect.logWarning(error.message)
    })
  );
});

Good:

const persist = Effect.fn('Example.persist')(function* () {
  yield* ExtensionProviderService.pipe(
    Effect.flatMap(provider => provider.getServicesApi),
    Effect.flatMap(api => api.services.SettingsService),
    Effect.flatMap(settings => settings.setValue('section', 'key', true)),
    Effect.catchTags({
      MissingSettingsError: error => Effect.logWarning(error.message)
    })
  );
});

This monorepo enables the rule as error for **/*.ts in eslint.config.mjs, next to local/no-effect-fn-wrapper.

effect-fn-catch-middleware-last

Effect.fn applies middleware after the generator from left to right, so a later argument wraps the earlier ones. A success combinator after a catch runs on the recovered value and treats that recovery as success. Put Effect.tap and success-notification calls, such as withConfigurableSuccessNotification(...), before Effect.catch, Effect.catchTag, Effect.catchAll, and the rest of the catch family. A later catch stays allowed. A later guard such as preventOrgChanges stays allowed, because it races the command and is not a success tap.

The rule walks Effect.fn('span')(function* () {}, ...middleware) and Effect.fn('name', options)(...). It does not flag Effect.fnUntraced, Effect.gen, a catch inside the generator, or a catch on .pipe.

Bad:

const deploy = Effect.fn('deploySourcePath.deployActiveEditor')(
  function* () {
    yield* deployUris();
  },
  Effect.catchTag('NoActiveEditorError', () => Effect.void),
  withConfigurableSuccessNotification('Deployed')
);

Good:

const deploy = Effect.fn('deploySourcePath.deployActiveEditor')(
  function* () {
    yield* deployUris();
  },
  withConfigurableSuccessNotification('Deployed'),
  Effect.catchTag('NoActiveEditorError', () => Effect.void)
);

const deployActiveEditor = Effect.fn('deploySourcePath.deployActiveEditor')(
  function* () {
    yield* deployUris();
  },
  Effect.catchTag('NoActiveEditorError', () => Effect.void),
  preventOrgChanges
);

This monorepo enables the rule as error for **/*.ts in eslint.config.mjs, next to local/require-effect-fn-span-name.

no-nested-effect-ternary

Disallows nested ternaries (three or more branches) whose type is Effect's Effect. Use Match.value, Match.when, and Match.orElse instead. A single Effect ternary stays allowed, and so do nested ternaries that do not produce an Effect. For a no-op branch, use Match.orElse(() => Effect.void).

The rule is type-aware. It reports only when the conditional expression's type is Effect (including a union or intersection that is entirely Effect).

Bad:

const effect =
  kind === 'a' ? doA : kind === 'b' ? doB : Effect.void;

Good:

const effect = Match.value(kind).pipe(
  Match.when('a', () => doA),
  Match.when('b', () => doB),
  Match.orElse(() => Effect.void)
);

This monorepo enables the rule as error for **/*.ts in eslint.config.mjs, next to local/no-effect-fn-wrapper.

no-raw-duration

Disallows a numeric literal or number-typed argument or object property whose contextual type includes Effect's Duration or Duration.DurationInput, including an optional DurationInput. A bare number in that position is milliseconds. Wrap it with Duration.millis. A parameter whose declared type is plain number or number | undefined stays allowed, so Duration.millis(5000) and a factor?: number argument are not flagged. Still-legal DurationInput values the rule does not cover: bigint nanos (Effect.sleep(1n)) and template-string inputs (Effect.sleep("2 seconds")).

Bad:

Effect.sleep(30_000);

const ms: number = 30_000;
Effect.sleep(ms);

const opts: { timeout?: Duration.DurationInput } = { timeout: 1 };

Good:

Effect.sleep(Duration.millis(30_000));

Duration.millis(5000);

const opts: { timeout: number } = { timeout: 30_000 };

Schedule.exponential(Duration.seconds(1), 2);

This monorepo enables the rule as error for **/*.ts in eslint.config.mjs, next to local/require-effect-fn-span-name.

no-standalone-pipeable-value

Use an Effect, Stream, or Schema's .pipe(...) method instead of passing it as the first argument to the standalone pipe(...) from effect/Function. The rule checks the first argument's TypeScript type, including Schema classes such as Schema.String. Plain values (arrays, strings, parsed JSON) remain valid. Other functions named pipe are not affected. Type-aware ESLint parsing (projectService) is required.

Bad:

pipe(Effect.succeed(1), Effect.map(n => n + 1));
pipe(Stream.fromIterable([1]), Stream.map(n => n + 1));
pipe(Schema.String, Schema.minLength(1));

Good:

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @salesforce/eslint-plugin-vscode-extensions

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Plug and Pray: Your AI Agents Are Taking Orders From Strangers
Research

Plug and Pray: Your AI Agents Are Taking Orders From Strangers

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

PolinRider Returns
Research

PolinRider Returns: Hijacked npm Packages Use Ethereum Blockchain to Conceal Malware Infrastructure

Frame 2085668439 (1)
Group 1261154229