From adc534be75138e65df0c4f5f1efdf294a7b5f7ba Mon Sep 17 00:00:00 2001 From: Rod Vagg Date: Wed, 30 Oct 2024 10:09:59 +1100 Subject: [PATCH] chore: adjust examples for new linting rules --- examples/block-interface.js | 4 +++- examples/cid-interface.js | 3 ++- examples/multihash-interface.js | 3 ++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/examples/block-interface.js b/examples/block-interface.js index 262a9976..2b9b054d 100644 --- a/examples/block-interface.js +++ b/examples/block-interface.js @@ -1,5 +1,7 @@ -import * as Block from 'multiformats/block' +/* eslint-disable no-console */ + import * as codec from '@ipld/dag-cbor' +import * as Block from 'multiformats/block' import { sha256 as hasher } from 'multiformats/hashes/sha2' async function run () { diff --git a/examples/cid-interface.js b/examples/cid-interface.js index add5b5b6..ddc8e254 100644 --- a/examples/cid-interface.js +++ b/examples/cid-interface.js @@ -1,8 +1,9 @@ +/* eslint-disable no-console */ import assert from 'assert' +import { base64 } from 'multiformats/bases/base64' import { CID } from 'multiformats/cid' import * as json from 'multiformats/codecs/json' import { sha256 } from 'multiformats/hashes/sha2' -import { base64 } from 'multiformats/bases/base64' async function run () { // ** PART 1: CREATING A NEW CID ** diff --git a/examples/multihash-interface.js b/examples/multihash-interface.js index 979a1c8d..e72b0e5a 100644 --- a/examples/multihash-interface.js +++ b/examples/multihash-interface.js @@ -1,5 +1,6 @@ -import { CID } from 'multiformats/cid' +/* eslint-disable no-console */ import crypto from 'crypto' +import { CID } from 'multiformats/cid' import * as json from 'multiformats/codecs/json' import * as hasher from 'multiformats/hashes/hasher'