Skip to content

Commit

Permalink
lint: remove remaining no-use-before-define
Browse files Browse the repository at this point in the history
  • Loading branch information
turadg committed Nov 20, 2024
1 parent 70e02e7 commit b05fc01
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 8 deletions.
4 changes: 2 additions & 2 deletions packages/internal/src/node/fs-stream.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ export const fsStreamReady = stream =>
}

const onReady = () => {
cleanup(); // eslint-disable-line no-use-before-define
cleanup();
resolve();
};

/** @param {Error} err */
const onError = err => {
cleanup(); // eslint-disable-line no-use-before-define
cleanup();
reject(err);
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ const contract = async (
* @param {{ validator: CosmosValidatorAddress }} offerArgs
*/
(seat, { validator }) =>
// eslint-disable-next-line no-use-before-define -- defined by orchestrateAll, necessarily after this
orchFns.depositAndDelegate(account, seat, validator),
'Deposit and delegate',
undefined,
Expand All @@ -98,7 +97,6 @@ const contract = async (

return zcf.makeInvitation(
() =>
// eslint-disable-next-line no-use-before-define -- defined by orchestrateAll, necessarily after this
orchFns.undelegateAndTransfer(account, {
delegations,
destination,
Expand Down
1 change: 0 additions & 1 deletion packages/orchestration/src/exos/chain-hub.js
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,6 @@ export const makeChainHub = (zone, agoricNames, vowTools) => {
},
);

/* eslint-disable no-use-before-define -- chainHub defined below */
const lookupChainsAndConnection = vowTools.retryable(
zone,
'lookupChainsAndConnection',
Expand Down
2 changes: 1 addition & 1 deletion packages/swingset-liveslots/src/virtualObjectManager.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* global globalThis */
/* eslint-disable no-use-before-define, jsdoc/require-returns-type */
/* eslint-disable jsdoc/require-returns-type */

import { environmentOptionsListHas } from '@endo/env-options';
import { assert, Fail, q, b } from '@endo/errors';
Expand Down
2 changes: 1 addition & 1 deletion packages/swingset-liveslots/src/virtualReferences.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-disable no-use-before-define, jsdoc/require-returns-type */
/* eslint-disable jsdoc/require-returns-type */

import { assert, Fail } from '@endo/errors';
import { Nat } from '@endo/nat';
Expand Down
2 changes: 1 addition & 1 deletion packages/xsnap-lockdown/lib/object-inspect.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// @ts-nocheck
/* eslint-disable no-nested-ternary,no-use-before-define */
/* eslint-disable no-nested-ternary */

/* global globalThis */
// Adapted from [email protected] https://github.com/inspect-js/object-inspect
Expand Down

0 comments on commit b05fc01

Please sign in to comment.