Skip to content

Commit

Permalink
tools: update eslint to 8.50.0
Browse files Browse the repository at this point in the history
PR-URL: #49989
Backport-PR-URL: #50669
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Moshe Atlow <[email protected]>
Reviewed-By: Tobias Nießen <[email protected]>
  • Loading branch information
nodejs-github-bot authored and targos committed Nov 23, 2023
1 parent 1c1cbf0 commit b8d2a29
Show file tree
Hide file tree
Showing 659 changed files with 2,878 additions and 1,261 deletions.
2 changes: 1 addition & 1 deletion test/es-module/test-esm-import-assertion-4.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { strictEqual } from 'assert';
import secret0 from '../fixtures/experimental.json' assert { type: 'json' };
const secret1 = await import('../fixtures/experimental.json', {
assert: { type: 'json' },
});
});

strictEqual(secret0.ofLife, 42);
strictEqual(secret1.default.ofLife, 42);
Expand Down
2 changes: 1 addition & 1 deletion test/es-module/test-esm-import-assertion-errors.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ async function test() {
);

await rejects(
import(jsonModuleDataUrl, { assert: { type: 'unsupported' }}),
import(jsonModuleDataUrl, { assert: { type: 'unsupported' } }),
{ code: 'ERR_IMPORT_ASSERTION_TYPE_UNSUPPORTED' }
);
}
Expand Down
2 changes: 1 addition & 1 deletion test/es-module/test-esm-import-assertion-errors.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,6 @@ await rejects(
);

await rejects(
import(jsonModuleDataUrl, { assert: { type: 'unsupported' }}),
import(jsonModuleDataUrl, { assert: { type: 'unsupported' } }),
{ code: 'ERR_IMPORT_ASSERTION_TYPE_UNSUPPORTED' }
);
8 changes: 4 additions & 4 deletions test/es-module/test-esm-json.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -36,19 +36,19 @@ describe('ESM: importing JSON', () => {
await writeFile(url, JSON.stringify({ id: i++ }));
const absoluteURL = await import(`${url}`, {
assert: { type: 'json' },
});
});
await writeFile(url, JSON.stringify({ id: i++ }));
const queryString = await import(`${url}?a=2`, {
assert: { type: 'json' },
});
});
await writeFile(url, JSON.stringify({ id: i++ }));
const hash = await import(`${url}#a=2`, {
assert: { type: 'json' },
});
});
await writeFile(url, JSON.stringify({ id: i++ }));
const queryStringAndHash = await import(`${url}?a=2#a=2`, {
assert: { type: 'json' },
});
});

assert.notDeepStrictEqual(absoluteURL, queryString);
assert.notDeepStrictEqual(absoluteURL, hash);
Expand Down
12 changes: 11 additions & 1 deletion tools/node_modules/eslint/lib/config/flat-config-schema.js

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

229 changes: 172 additions & 57 deletions 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.

Loading

0 comments on commit b8d2a29

Please sign in to comment.