Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

restore types linting #8058

Merged
merged 10 commits into from
Jul 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: lintTypes
? {
// this is not yet compatible with eslint lsp so it's conditioned on AGORIC_ESLINT_TYPES
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Recommend “gated”, “contingent on”, or “predicated”.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

all better, though imo not different enough to suffer through the Chain deployment test again.

EXPERIMENTAL_useProjectService: true,
sourceType: 'module',
project: [
'./packages/*/jsconfig.json',
Expand Down
2 changes: 1 addition & 1 deletion golang/cosmos/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"postpack": "git clean -f git-revision.txt",
"build": "exit 0",
"lint-fix": "yarn lint:eslint --fix",
"lint": "eslint '**/*.{cjs,js}'"
"lint": "exit 0"
},
"dependencies": {
"bindings": "^1.2.1",
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"@jessie.js/eslint-plugin": "^0.4.0",
"@types/express": "^4.17.17",
"@types/node": "^16.13.0",
"@typescript-eslint/eslint-plugin": "^5.61.0",
"@typescript-eslint/parser": "^5.61.0",
"@typescript-eslint/eslint-plugin": "^6.1.0",
"@typescript-eslint/parser": "^6.1.0",
"ava": "^5.3.0",
"c8": "^7.13.0",
"conventional-changelog-conventionalcommits": "^4.6.0",
Expand Down
1 change: 1 addition & 0 deletions packages/ERTP/jsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
{
"extends": "../../tsconfig.json",
"include": [
"exported.js",
"src/**/*.js",
"src/**/*.ts",
"test"
Expand Down
7 changes: 5 additions & 2 deletions packages/SwingSet/jsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@
{
"extends": "../../tsconfig.json",
"include": [
"exported.js",
"demo/**/*.js",
"lib/**/*.js",
"misc-tools/**/*.js",
"src/**/*.js",
"src/**/*.ts",
// "test",
"test",
"tools",
],
]
}
1 change: 1 addition & 0 deletions packages/SwingSet/misc-tools/db-delete.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env node
// @ts-nocheck
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was dismayed by all these @ts-nocheck until I realized that they weren’t previously checked and that you’ve just moved the exclusion from jsconfig.json to individual files, presumably so we can reveal them to the checker individually. Carry on.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bingo. glad that was apparent enough since I was too lazy to leave a comment explaining

import '@endo/init';
import process from 'process';
import { openSwingStore } from '@agoric/swing-store';
Expand Down
1 change: 1 addition & 0 deletions packages/SwingSet/misc-tools/db-dump.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
/* eslint-disable */
import '@endo/init';
import process from 'process';
Expand Down
1 change: 1 addition & 0 deletions packages/SwingSet/misc-tools/db-get.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env node
// @ts-nocheck
import '@endo/init';
import process from 'process';
import { openSwingStore } from '@agoric/swing-store';
Expand Down
1 change: 1 addition & 0 deletions packages/SwingSet/misc-tools/db-set.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env node
// @ts-nocheck
import '@endo/init';
import process from 'process';
import { openSwingStore } from '@agoric/swing-store';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
import fs from 'fs';
import zlib from 'zlib';
import readline from 'readline';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// @ts-check
// @ts-nocheck

import '@endo/init';
import process from 'process';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
import fs from 'fs';
import zlib from 'zlib';
import readline from 'readline';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
import fs from 'fs';
import zlib from 'zlib';
import readline from 'readline';
Expand Down
2 changes: 1 addition & 1 deletion packages/SwingSet/misc-tools/extract-xs-snapshot.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// @ts-check
// @ts-nocheck

import '@endo/init';
import process from 'process';
Expand Down Expand Up @@ -54,7 +54,7 @@
const { snapPos, hash } = info;
const snapshot = snapStore.loadSnapshot(vatIDToExtract);
const fn = `${vatIDToExtract}-${snapPos}-${hash}.xss`;
E.when(fs.promises.writeFile(fn, snapshot), () =>

Check warning on line 57 in packages/SwingSet/misc-tools/extract-xs-snapshot.js

View workflow job for this annotation

GitHub Actions / lint-primary

Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the `void` operator
console.log(`wrote snapshot to ${fn}`),
);
}
1 change: 1 addition & 0 deletions packages/SwingSet/misc-tools/ingest-xs-snapshot.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
/* eslint-disable */
// import '@endo/init';
// import { E } from '@endo/far';
Expand Down
1 change: 1 addition & 0 deletions packages/SwingSet/misc-tools/measure-metering/measure.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
// run as `node tools/measure-metering/measure.js`

// eslint-disable-next-line import/order
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
/* eslint-disable import/no-extraneous-dependencies,no-unused-vars,no-empty-function */
import { Far, E } from '@endo/far';
import vaultFactoryBundle from '@agoric/inter-protocol/bundles/bundle-vaultFactory.js';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
/* eslint-disable import/no-extraneous-dependencies,no-unused-vars,no-empty-function */
import { Far } from '@endo/far';
// XXX cyclic dependency; TODO move this tool out of swingset-vat
Expand Down
1 change: 1 addition & 0 deletions packages/SwingSet/misc-tools/replace-bundle.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env node
// @ts-nocheck

import '@endo/init';
import process from 'process';
Expand Down
2 changes: 2 additions & 0 deletions packages/SwingSet/misc-tools/replay-transcript.js
Original file line number Diff line number Diff line change
Expand Up @@ -332,13 +332,15 @@ async function replay(transcriptFile) {
throw Error(`unhandled worker type ${worker}`);
}

// @ts-expect-error missing symbol
/** @type {Partial<Record<ReturnType<typeof getResultKind>, Map<string, number[]>>>} */
let syscallResults = {};

const analyzeSyscallResults = () => {
const numWorkers = workers.length;
let divergent = false;
for (const [kind, kindSummary] of Object.entries(syscallResults)) {
// @ts-expect-error due to missing symbol above, but also `syscallResults` is never populated
for (const [syscallKey, workerList] of kindSummary.entries()) {
if (workerList.length !== numWorkers) {
console.error(
Expand Down
1 change: 1 addition & 0 deletions packages/SwingSet/misc-tools/vat-stats.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
/* eslint-disable */
import '@endo/init';
import process from 'process';
Expand Down
3 changes: 2 additions & 1 deletion packages/SwingSet/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
"devDependencies": {
"@types/better-sqlite3": "^7.5.0",
"@types/microtime": "^2.1.0",
"@types/tmp": "^0.2.0"
"@types/tmp": "^0.2.0",
"@types/yargs-parser": "^21.0.0"
},
"dependencies": {
"@agoric/assert": "^0.6.0",
Expand Down
1 change: 1 addition & 0 deletions packages/SwingSet/test/bundling/nonvat-importable.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
/* global big globalThis */

export function runTheCheck(world) {
Expand Down
1 change: 1 addition & 0 deletions packages/SwingSet/test/bundling/nonvat-install.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
/* global big globalThis */

export function runTheCheck(world) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
// eslint-disable-next-line import/order
import { test } from '../../tools/prepare-test-env-ava.js';

Expand Down
1 change: 1 addition & 0 deletions packages/SwingSet/test/bundling/test-bundles.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
// eslint-disable-next-line import/order
import { test } from '../../tools/prepare-test-env-ava.js';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
// eslint-disable-next-line import/order
import { test } from '../../tools/prepare-test-env-ava.js';

Expand Down
1 change: 1 addition & 0 deletions packages/SwingSet/test/commsVatDriver.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
import { assert, Fail } from '@agoric/assert';
import buildCommsDispatch from '../src/vats/comms/index.js';
import { debugState } from '../src/vats/comms/dispatch.js';
Expand Down
1 change: 1 addition & 0 deletions packages/SwingSet/test/device-hooks/test-device-hooks.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
/* eslint-disable no-lone-blocks */
// eslint-disable-next-line import/order
import { test } from '../../tools/prepare-test-env-ava.js';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
// eslint-disable-next-line import/order
import { test } from '../../tools/prepare-test-env-ava.js';
// eslint-disable-next-line import/order
Expand Down
1 change: 1 addition & 0 deletions packages/SwingSet/test/device-plugin/test-device.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
import { test } from '../../tools/prepare-test-env-ava.js';

// eslint-disable-next-line import/order
Expand Down
1 change: 1 addition & 0 deletions packages/SwingSet/test/devices/bootstrap-raw.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
import { Far } from '@endo/far';
import { makePromiseKit } from '@endo/promise-kit';

Expand Down
1 change: 1 addition & 0 deletions packages/SwingSet/test/devices/test-devices.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
// eslint-disable-next-line import/order
import { test } from '../../tools/prepare-test-env-ava.js';

Expand Down
1 change: 1 addition & 0 deletions packages/SwingSet/test/devices/test-raw-device.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
// eslint-disable-next-line import/order
import { test } from '../../tools/prepare-test-env-ava.js';

Expand Down
1 change: 1 addition & 0 deletions packages/SwingSet/test/gc/bootstrap.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
import { Far, E } from '@endo/far';

export function buildRootObject() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
// eslint-disable-next-line import/order
import { test } from '../../tools/prepare-test-env-ava.js';

Expand Down
1 change: 1 addition & 0 deletions packages/SwingSet/test/promise-watcher/vat-upton.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
import { Far, E } from '@endo/far';
import { initEmpty } from '@agoric/store';
import { makePromiseKit } from '@endo/promise-kit';
Expand Down
1 change: 1 addition & 0 deletions packages/SwingSet/test/run-policy/test-run-policy.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
import { test } from '../../tools/prepare-test-env-ava.js';

// eslint-disable-next-line import/order
Expand Down
1 change: 1 addition & 0 deletions packages/SwingSet/test/test-abandon-export.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
/* eslint-disable import/order */
import { test } from '../tools/prepare-test-env-ava.js';

Expand Down
1 change: 1 addition & 0 deletions packages/SwingSet/test/test-activityhash-vs-start.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
// eslint-disable-next-line import/order
import { test } from '../tools/prepare-test-env-ava.js';

Expand Down
1 change: 1 addition & 0 deletions packages/SwingSet/test/test-clist.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
import { test } from '../tools/prepare-test-env-ava.js';

// eslint-disable-next-line import/order
Expand Down
1 change: 1 addition & 0 deletions packages/SwingSet/test/test-comms.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
// eslint-disable-next-line import/order
import { test } from '../tools/prepare-test-env-ava.js';

Expand Down
1 change: 1 addition & 0 deletions packages/SwingSet/test/test-controller.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
// eslint-disable-next-line import/order
import { test } from '../tools/prepare-test-env-ava.js';

Expand Down
1 change: 1 addition & 0 deletions packages/SwingSet/test/test-device-bridge.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
import { test } from '../tools/prepare-test-env-ava.js';

// eslint-disable-next-line import/order
Expand Down
1 change: 1 addition & 0 deletions packages/SwingSet/test/test-gc-and-finalize.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
/* global FinalizationRegistry WeakRef */
// eslint-disable-next-line import/order
import { test } from '../tools/prepare-test-env-ava.js';
Expand Down
1 change: 1 addition & 0 deletions packages/SwingSet/test/test-gc-kernel.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
/* global WeakRef, FinalizationRegistry */
// eslint-disable-next-line import/order
import anylogger from 'anylogger';
Expand Down
1 change: 1 addition & 0 deletions packages/SwingSet/test/test-kernel.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
// eslint-disable-next-line import/order
import { test } from '../tools/prepare-test-env-ava.js';

Expand Down
1 change: 1 addition & 0 deletions packages/SwingSet/test/test-message-patterns-comms.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
/* eslint no-await-in-loop: "off" */
/* eslint dot-notation: "off" */
/* eslint object-shorthand: "off" */
Expand Down
1 change: 1 addition & 0 deletions packages/SwingSet/test/test-message-patterns-local.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
/* eslint no-await-in-loop: "off" */
/* eslint dot-notation: "off" */
/* eslint object-shorthand: "off" */
Expand Down
1 change: 1 addition & 0 deletions packages/SwingSet/test/test-network.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
// eslint-disable-next-line import/order
import { test } from '../tools/prepare-test-env-ava.js';

Expand Down
1 change: 1 addition & 0 deletions packages/SwingSet/test/test-promises.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
import { test } from '../tools/prepare-test-env-ava.js';

// eslint-disable-next-line import/order
Expand Down
1 change: 1 addition & 0 deletions packages/SwingSet/test/test-state.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
/* eslint-disable no-useless-concat */
// eslint-disable-next-line import/order
import { test } from '../tools/prepare-test-env-ava.js';
Expand Down
1 change: 1 addition & 0 deletions packages/SwingSet/test/test-syscall-failure.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
import { test } from '../tools/prepare-test-env-ava.js';

// eslint-disable-next-line import/order
Expand Down
1 change: 1 addition & 0 deletions packages/SwingSet/test/test-timer-device.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
import { test } from '../tools/prepare-test-env-ava.js';

// eslint-disable-next-line import/order
Expand Down
1 change: 1 addition & 0 deletions packages/SwingSet/test/test-transcript-light.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
// eslint-disable-next-line import/order
import { test } from '../tools/prepare-test-env-ava.js';
// eslint-disable-next-line import/order
Expand Down
1 change: 1 addition & 0 deletions packages/SwingSet/test/test-vat-env.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
import { test, VatData } from '../tools/prepare-test-env-ava.js';

// eslint-disable-next-line import/order
Expand Down
1 change: 1 addition & 0 deletions packages/SwingSet/test/test-vat-timer.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
// eslint-disable-next-line import/order
import { test } from '../tools/prepare-test-env-ava.js';

Expand Down Expand Up @@ -267,8 +268,8 @@
const whenNobrand = 123n;
const delayNobrand = 123n;
ts.setWakeup(whenNobrand, handler);
ts.wakeAt(whenNobrand);

Check warning on line 271 in packages/SwingSet/test/test-vat-timer.js

View workflow job for this annotation

GitHub Actions / lint-primary

Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the `void` operator
ts.delay(delayNobrand);

Check warning on line 272 in packages/SwingSet/test/test-vat-timer.js

View workflow job for this annotation

GitHub Actions / lint-primary

Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the `void` operator
ts.makeRepeater(delayNobrand, delayNobrand);
ts.repeatAfter(delayNobrand, delayNobrand, handler);
ts.makeNotifier(delayNobrand, delayNobrand);
Expand Down Expand Up @@ -874,7 +875,7 @@
// getUpdateSince(undefined) before 'start' waits until start
const p1 = n.getUpdateSince(undefined);
let done1;
p1.then(res => (done1 = res));

Check warning on line 878 in packages/SwingSet/test/test-vat-timer.js

View workflow job for this annotation

GitHub Actions / lint-primary

Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the `void` operator
await waitUntilQuiescent();
t.is(state.currentWakeup, 125n);

Expand All @@ -888,7 +889,7 @@
// fast handler turnaround waits for the next event
const p2 = n.getUpdateSince(done1.updateCount);
let done2;
p2.then(res => (done2 = res));

Check warning on line 892 in packages/SwingSet/test/test-vat-timer.js

View workflow job for this annotation

GitHub Actions / lint-primary

Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the `void` operator
await waitUntilQuiescent();
// notifier waits when updateCount matches
t.deepEqual(done2, undefined);
Expand All @@ -904,7 +905,7 @@
state.now = 150n;
const p3 = n.getUpdateSince(done2.updateCount);
let done3;
p3.then(res => (done3 = res));

Check warning on line 908 in packages/SwingSet/test/test-vat-timer.js

View workflow job for this annotation

GitHub Actions / lint-primary

Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the `void` operator
await waitUntilQuiescent();
// fires immediately
t.deepEqual(done3, { value: toTS(145n), updateCount: 3n });
Expand All @@ -914,7 +915,7 @@
state.now = 180n; // missed 155 and 165
const p4 = n.getUpdateSince(done3.updateCount);
let done4;
p4.then(res => (done4 = res));

Check warning on line 918 in packages/SwingSet/test/test-vat-timer.js

View workflow job for this annotation

GitHub Actions / lint-primary

Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the `void` operator
await waitUntilQuiescent();
t.deepEqual(done4, { value: toTS(175n), updateCount: 6n });
t.is(state.currentWakeup, undefined);
Expand All @@ -930,14 +931,14 @@
let done1;
const n = ts.makeNotifier(toRT(0n), toRT(10n));
const p1 = n.getUpdateSince(undefined);
p1.then(res => (done1 = res));

Check warning on line 934 in packages/SwingSet/test/test-vat-timer.js

View workflow job for this annotation

GitHub Actions / lint-primary

Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the `void` operator
await waitUntilQuiescent();
t.deepEqual(done1, { value: toTS(100n), updateCount: 1n });

// but doesn't fire forever
const p2 = n.getUpdateSince(done1.updateCount);
let done2;
p2.then(res => (done2 = res));

Check warning on line 941 in packages/SwingSet/test/test-vat-timer.js

View workflow job for this annotation

GitHub Actions / lint-primary

Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the `void` operator
await waitUntilQuiescent();
t.deepEqual(done2, undefined);
t.is(state.currentWakeup, 110n);
Expand All @@ -955,7 +956,7 @@

const p3 = n.getUpdateSince(done1.updateCount);
let done3;
p3.then(res => (done3 = res));

Check warning on line 959 in packages/SwingSet/test/test-vat-timer.js

View workflow job for this annotation

GitHub Actions / lint-primary

Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the `void` operator
await waitUntilQuiescent();
t.deepEqual(done3, undefined);
// still waiting
Expand Down
1 change: 1 addition & 0 deletions packages/SwingSet/test/test-vpid-kernel.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
/* global WeakRef, FinalizationRegistry */
// eslint-disable-next-line import/order
import { test } from '../tools/prepare-test-env-ava.js';
Expand Down
1 change: 1 addition & 0 deletions packages/SwingSet/test/test-xsnap-metering.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
// eslint-disable-next-line import/order
import { test } from '../tools/prepare-test-env-ava.js';

Expand Down
1 change: 1 addition & 0 deletions packages/SwingSet/test/test-xsnap-store.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
/* global globalThis */
import '@endo/init/debug.js';

Expand Down
1 change: 1 addition & 0 deletions packages/SwingSet/test/timer-device/device-timer.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
import setup from '../../src/devices/timer/device-timer.js';

export { setup };
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
import test from 'ava';
import '@endo/init/debug.js';
import tmp from 'tmp';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
import test from 'ava';
import '@endo/init/debug.js';
import { initSwingStore } from '@agoric/swing-store';
Expand Down
1 change: 1 addition & 0 deletions packages/SwingSet/test/upgrade/test-upgrade-replay.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
// eslint-disable-next-line import/order
import { test } from '../../tools/prepare-test-env-ava.js';

Expand Down
1 change: 1 addition & 0 deletions packages/SwingSet/test/upgrade/test-upgrade.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
// eslint-disable-next-line import/order
import { test } from '../../tools/prepare-test-env-ava.js';

Expand Down
1 change: 1 addition & 0 deletions packages/SwingSet/test/vat-admin/broken-module-vat.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
// eslint-disable-next-line no-undef
missing({});

Expand Down
1 change: 1 addition & 0 deletions packages/SwingSet/test/vat-admin/broken-root-vat.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
export function buildRootObject() {
// eslint-disable-next-line no-undef
return missing({});
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
// eslint-disable-next-line import/order
import { test } from '../../../tools/prepare-test-env-ava.js';
// eslint-disable-next-line import/order
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
// eslint-disable-next-line import/order
import { test } from '../../../tools/prepare-test-env-ava.js';
// eslint-disable-next-line import/order
Expand Down
1 change: 1 addition & 0 deletions packages/SwingSet/test/vat-admin/test-create-vat.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
// eslint-disable-next-line import/order
import { test } from '../../tools/prepare-test-env-ava.js';
// eslint-disable-next-line import/order
Expand Down
Loading
Loading