Move to @pezkuwi/dev 0.86 (eslint 10, typescript-eslint 8)

What the new toolchain asked for here:

- test/deno.ts: the import/* rules are import-x/* now, so the file-wide
  disable for .ts imports names import-x/extensions. The test runner's `it`
  was typed by redeclaring the global globalThis, which eslint 10 reports as
  shadowing a restricted name; it is read through a typed alias instead,
  the same object at runtime. A note duplicated in that file is gone.
- Two disable comments that no longer suppress anything were removed by the
  linter (camelcase in wasm-crypto-init types, ban-ts-comment above a
  described @ts-ignore, which typescript-eslint 8 allows).
This commit is contained in:
Satoshi Qazi Muhammed authored and SatoshiQaziMuhammed committed 2026-10-09 09:41:08 +04:00
1 parent 1b62094af9
commit 72bb42bdb5
5 files changed
+2630 -3427

No files matched your search

+1 -1
View File
@@ -43,7 +43,7 @@
"test:wasm-crypto:rust": "cd packages/wasm-crypto && RUST_BACKTRACE=full cargo test --release -- --test-threads=1 --nocapture"
},
"devDependencies": {
"@pezkuwi/dev": "^0.85.12",
"@pezkuwi/dev": "^0.86.0",
"@pezkuwi/util": "^14.0.1",
"@types/node": "^20.16.1",
"fflate": "^0.8.2"
-2
View File
@@ -3,8 +3,6 @@
import type { WasmBaseInstance } from '@pezkuwi/wasm-bridge/types';
/* eslint-disable camelcase */
// wasm-pack build output (formatted) from pkg/wasm_bg.d.ts
export interface WasmCryptoInstance extends WasmBaseInstance {
// exposed functions
+6 -7
View File
@@ -2,12 +2,8 @@
// SPDX-License-Identifier: Apache-2.0
// This is a Deno file, so we can allow .ts imports
/* eslint-disable import/extensions */
/* eslint-disable import-x/extensions */
// NOTE We don't use ts-expect-error here since the build folder may or may
// not exist (so the error may or may not be there)
//
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// NOTE We don't use ts-expect-error here since the build folder may or may
// not exist (so the error may or may not be there)
//
@@ -18,9 +14,12 @@ import { initRun, tests } from './all/index.js';
type Tests = Record<string, (wasm: unknown) => void>;
declare const globalThis: {
// The test runner's `it`, read through a typed alias rather than by
// redeclaring the global.
const testGlobal = globalThis as unknown as {
it: (name: string, fn: () => void) => unknown;
};
declare const Deno: {
test: (name: string, test: () => unknown) => unknown;
};
@@ -28,7 +27,7 @@ declare const Deno: {
await initRun('wasm', wasm);
// We use it to denote the tests
globalThis.it = (name: string, fn: () => void) => Deno.test(name, () => fn());
testGlobal.it = (name: string, fn: () => void) => Deno.test(name, () => fn());
Object
.entries<Tests>(tests)
+1 -1
View File
@@ -6,7 +6,7 @@
// NOTE We don't use ts-expect-error here since the build folder may or may
// not exist (so the error may or may not be there)
//
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// NOTE We don't use ts-expect-error here since the build folder may or may
// not exist (so the error may or may not be there)
//
+2622 -3416
View File
File diff suppressed because it is too large. Load diff