Skip to content

Commit

Permalink
style: fixes for new ESLint rules
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
  • Loading branch information
kevinoid committed Oct 2, 2023
1 parent 2dd5b1c commit cacbe99
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const DEFAULT_OPTIONS = {
* Guarantees/Invariants:
*
* <ul>
* <li>Equivalent states are {@link assert.deepStrictEqual}.</li>
* <li>Equivalent states are {@link module:assert.deepStrictEqual}.</li>
* <li>States can be round-tripped to JSON at any point.</li>
* <li>States are owned by the caller, so any additional properties (which are
* permitted to violate the above guarantees) are preserved and the same
Expand Down Expand Up @@ -103,7 +103,7 @@ function StreamState() {
this.totalDataLen = 0;
}

/** Options for {@link streamCompare}.
/** Options for {@link module:stream-compare}.
*
* @template CompareResult
* @typedef {{
Expand Down Expand Up @@ -169,7 +169,8 @@ function StreamState() {
* @param {!module:stream.Readable} stream2 Second stream to compare.
* @param {!StreamCompareOptions<CompareResult>|
* function(!StreamState,!StreamState): CompareResult} optionsOrCompare
* Options, or a comparison function (as described in {@link options.compare}).
* Options, or a comparison function (as described in
* {@link StreamCompareOptions#compare}).
* @returns {StreamComparePromise<CompareResult>} A <code>Promise</code> with
* the comparison result or error.
*/
Expand Down
2 changes: 1 addition & 1 deletion test/stream-compare.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

'use strict';

const { EventEmitter } = require('node:events');
const assert = require('node:assert');
const { EventEmitter } = require('node:events');
const stream = require('node:stream');

// https://github.com/import-js/eslint-plugin-import/issues/2844
Expand Down

0 comments on commit cacbe99

Please sign in to comment.