Skip to content

[WIP] Refactor/plugins #56

[WIP] Refactor/plugins

[WIP] Refactor/plugins #56

Triggered via pull request April 25, 2025 10:11
Status Failure
Total duration 24s
Artifacts

lint.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

1 error
lint
You have commit messages with errors error running commitlint require() of ES Module /github/workspace/commitlint.config.js from /node_modules/@commitlint/load/node_modules/cosmiconfig/dist/loaders.js not supported. commitlint.config.js is treated as an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which declares all .js files in that package scope as ES modules. Instead either rename commitlint.config.js to end in .cjs, change the requiring code to use dynamic import() which is available in all CommonJS modules, or change "type": "module" to "type": "commonjs" in /github/workspace/package.json to treat all .js files as CommonJS (using .mjs for all ES modules instead). Error [ERR_REQUIRE_ESM]: require() of ES Module /github/workspace/commitlint.config.js from /node_modules/@commitlint/load/node_modules/cosmiconfig/dist/loaders.js not supported. commitlint.config.js is treated as an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which declares all .js files in that package scope as ES modules. Instead either rename commitlint.config.js to end in .cjs, change the requiring code to use dynamic import() which is available in all CommonJS modules, or change "type": "module" to "type": "commonjs" in /github/workspace/package.json to treat all .js files as CommonJS (using .mjs for all ES modules instead). at module.exports (/node_modules/import-fresh/index.js:32:59) at loadJsSync (/node_modules/@commitlint/load/node_modules/cosmiconfig/dist/loaders.js:17:12) at loadJs (/node_modules/@commitlint/load/node_modules/cosmiconfig/dist/loaders.js:26:39) at async #loadConfiguration (/node_modules/@commitlint/load/node_modules/cosmiconfig/dist/Explorer.js:92:24) at async #readConfiguration (/node_modules/@commitlint/load/node_modules/cosmiconfig/dist/Explorer.js:77:51) at async load (/node_modules/@commitlint/load/node_modules/cosmiconfig/dist/Explorer.js:20:48) at async Explorer.load (/node_modules/@commitlint/load/node_modules/cosmiconfig/dist/Explorer.js:23:20) at async loadConfig (/node_modules/@commitlint/load/lib/utils/load-config.js:56:19) at async Object.load [as default] (/node_modules/@commitlint/load/lib/load.js:19:20) at async showLintResults (/run.js:141:46)