You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looks like the stylish formatter cant be correctly required. I receive this error in my pipeline:
There was a problem loading formatter: /opt/atlassian/pipelines/agent/build/node_modules/eslint-formatter-bitbucket-reports/index.js
Error: Package subpath './lib/cli-engine/formatters/stylish' is not defined by "exports" in /opt/atlassian/pipelines/agent/build/node_modules/eslint/package.json
Environment:
node 14.20.0
npm 6.14.17
eslint 8.14.0
I think the issue could be mitigated by, instead of requiring eslint/lib/cli-engine/formatters/stylish directly, you import eslint.ESLint and use the following snippet to render the results.
// we dont have to bother passing any settings since we wont do any lintingconsteslint=newESLint();constformatter=awaiteslint.loadFormatter("stylish");returnformatter.format(results);
The text was updated successfully, but these errors were encountered:
Looks like the
stylish
formatter cant be correctly required. I receive this error in my pipeline:Environment:
I think the issue could be mitigated by, instead of requiring
eslint/lib/cli-engine/formatters/stylish
directly, you importeslint.ESLint
and use the following snippet to render the results.Change:
eslint-formatter-bitbucket-reports/index.js
Line 131 in f25eaf3
To:
The text was updated successfully, but these errors were encountered: