oxlintconfig-jsplugin-bug

0
0
0
TypeScript
public

Zed ocx bug

  1. Start Zed and open index.ts.
  2. There will be inline oxc error on any and const one = 1 (coming from eslint-plugin-prefer-let).
  3. Run pnpm remove eslint-plugin-prefer-let (this dependencies still exists as nested dependency of @logux/oxc-configs).
  4. Restart Zed.

Actual: No inline errors in index.ts.

Expected: The same errors as in pnpm oxlint.

$ pnpm oxlint

  × typescript-eslint(no-explicit-any): Unexpected `any`. Specify a different type.
   ╭─[index.ts:3:20]
 2 │
 3 │ export const test: any = one;
   ·                    ───
   ╰────
  help: Use `unknown` instead, this will force you to explicitly, and safely, assert the type is correct.

  × prefer-let(prefer-let): `const` declaration for non-constant names at top-level scope. Use `let` or rename to UPPER_CASE
   ╭─[index.ts:1:1]
 1 │ const one = 1;
   · ──────────────
 2 │
   ╰────

Found 0 warnings and 2 errors.
Finished in 152ms on 2 files with 195 rules using 16 threads.
v0.3.3[beta]