We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3c0cb1a commit 81f9271Copy full SHA for 81f9271
lib/package-json.ts
@@ -78,7 +78,7 @@ export async function loadPlugin(path: string): Promise<Plugin> {
78
if (extname(pluginEntryPointAbs) === '.json') {
79
// For JSON files, have to require() instead of import(..., { assert: { type: 'json' } }) because of this error:
80
// Dynamic imports only support a second argument when the '--module' option is set to 'esnext', 'node16', or 'nodenext'. ts(1324)
81
- // TODO: Switch to import() when we drop support for Node 14.
+ // TODO: Switch to import() when we drop support for Node 14. https://github.com/bmish/eslint-doc-generator/issues/585
82
return require(pluginEntryPointAbs) as Plugin; // eslint-disable-line import/no-dynamic-require
83
}
84
0 commit comments