Skip to content
Open
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ module.exports = [
{
files: [
"lib/nodejs/esm-utils.js",
"rollup.config.js",
"rollup.config.mjs",
"scripts/*.mjs",
"scripts/pick-from-package-json.js",
"test/compiler-cjs/test.js",
Expand Down Expand Up @@ -176,6 +176,9 @@ module.exports = [
"test/integration/fixtures/**",
".karma/**",
"mocha.js",
// TODO: EsLint v8 parser can't parse Import attributes
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you clarify what this comment means?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you use Import attributes they can't be parsed by the AST builder used in EsLint v8 and it crashes the lint process.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So import packageJson from "./package.json" with { type: "json" }; result is something like

Error: unexpected character `{` in X

"rollup.config.mjs",
"scripts/pick-from-package-json.mjs",
],
},
];
2 changes: 1 addition & 1 deletion karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const baseConfig = {
rollupPlugin,
],
rollup: {
configFile: "rollup.config.js",
configFile: "rollup.config.mjs",
include: ["test/**"],
},
reporters: ["mocha"],
Expand Down
Loading
Loading