Skip to content

Commit

Permalink
chore: adjust examples for new linting rules
Browse files Browse the repository at this point in the history
  • Loading branch information
rvagg committed Oct 29, 2024
1 parent 1cd48bf commit adc534b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion examples/block-interface.js
Original file line number Diff line number Diff line change
@@ -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 () {
Expand Down
3 changes: 2 additions & 1 deletion examples/cid-interface.js
Original file line number Diff line number Diff line change
@@ -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 **
Expand Down
3 changes: 2 additions & 1 deletion examples/multihash-interface.js
Original file line number Diff line number Diff line change
@@ -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'

Expand Down

0 comments on commit adc534b

Please sign in to comment.