More ESM #93
Annotations
1 error and 1 warning
lint
error running commitlint
Must use import to load ES Module: /github/workspace/commitlint.config.js
require() of ES modules is not supported.
require() of /github/workspace/commitlint.config.js from /node_modules/cosmiconfig/node_modules/import-fresh/index.js is an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which defines all .js files in that package scope as ES modules.
Instead rename commitlint.config.js to end in .cjs, change the requiring code to use import(), or remove "type": "module" from /github/workspace/package.json.
Error [ERR_REQUIRE_ESM]: Must use import to load ES Module: /github/workspace/commitlint.config.js
require() of ES modules is not supported.
require() of /github/workspace/commitlint.config.js from /node_modules/cosmiconfig/node_modules/import-fresh/index.js is an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which defines all .js files in that package scope as ES modules.
Instead rename commitlint.config.js to end in .cjs, change the requiring code to use import(), or remove "type": "module" from /github/workspace/package.json.
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1154:13)
at Module.load (internal/modules/cjs/loader.js:986:32)
at Function.Module._load (internal/modules/cjs/loader.js:879:14)
at Module.require (internal/modules/cjs/loader.js:1026:19)
at require (internal/modules/cjs/helpers.js:72:18)
at module.exports (/node_modules/cosmiconfig/node_modules/import-fresh/index.js:28:9)
at loadJs (/node_modules/cosmiconfig/dist/loaders.js:9:18)
at Explorer.loadFileContent (/node_modules/cosmiconfig/dist/createExplorer.js:230:12)
at /node_modules/cosmiconfig/dist/createExplorer.js:252:21
|
lint
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|