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: nodejs/node#49989
Backport-PR-URL: nodejs/node#50669
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
  • Loading branch information
sercher committed Apr 25, 2024
1 parent 5bbebd0 commit 27f53fc
Show file tree
Hide file tree
Showing 659 changed files with 2,878 additions and 1,261 deletions.
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
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
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 graal-nodejs/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

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

229 changes: 172 additions & 57 deletions graal-nodejs/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 27f53fc

Please sign in to comment.