Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tools: update eslint to 8.50.0 #49989

Merged
merged 2 commits into from
Oct 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
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