Skip to content

Commit

Permalink
tools: update eslint to 8.18.0
Browse files Browse the repository at this point in the history
PR-URL: #43479
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: Mohammed Keyvanzadeh <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
  • Loading branch information
nodejs-github-bot authored and targos committed Jul 12, 2022
1 parent 1022c0d commit 59d4da6
Show file tree
Hide file tree
Showing 839 changed files with 1,019 additions and 953 deletions.
1 change: 0 additions & 1 deletion lib/internal/streams/operators.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,6 @@ function asIndexedPairs(options = undefined) {
}

async function some(fn, options = undefined) {
// eslint-disable-next-line no-unused-vars
for await (const unused of filter.call(this, fn, options)) {
return true;
}
Expand Down
2 changes: 1 addition & 1 deletion test/parallel/test-fs-opendir.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ doAsyncIterBreakTest().then(common.mustCall());
async function doAsyncIterReturnTest() {
const dir = await fs.promises.opendir(testDir);
await (async function() {
for await (const dirent of dir) { // eslint-disable-line no-unused-vars
for await (const dirent of dir) {
return;
}
})();
Expand Down
2 changes: 1 addition & 1 deletion test/parallel/test-stream-readable-async-iterators.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ async function tests() {
});

await (async () => {
for await (const d of readable) { // eslint-disable-line no-unused-vars
for await (const d of readable) {
return;
}
})();
Expand Down
2 changes: 0 additions & 2 deletions test/parallel/test-whatwg-readablestream.js
Original file line number Diff line number Diff line change
Expand Up @@ -1304,7 +1304,6 @@ class Source {
});

async function read(stream) {
// eslint-disable-next-line no-unused-vars
for await (const _ of stream.values({ preventCancel: true }))
return;
}
Expand All @@ -1319,7 +1318,6 @@ class Source {
const stream = new ReadableStream(source);

async function read(stream) {
// eslint-disable-next-line no-unused-vars
for await (const _ of stream.values({ preventCancel: false }))
return;
}
Expand Down
2 changes: 1 addition & 1 deletion tools/node_modules/eslint/lib/linter/linter.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion tools/node_modules/eslint/lib/linter/timing.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions tools/node_modules/eslint/lib/rules/no-unused-vars.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 1 addition & 8 deletions tools/node_modules/eslint/lib/shared/deprecation-warnings.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 59d4da6

Please sign in to comment.