spartez / eslint-formatter-bitbucket-reports Goto Github PK
View Code? Open in Web Editor NEWESLint formatter that uploads results as Bitbucket report
License: MIT License
ESLint formatter that uploads results as Bitbucket report
License: MIT License
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:
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.
Change:
eslint-formatter-bitbucket-reports/index.js
Line 131 in f25eaf3
To:
// we dont have to bother passing any settings since we wont do any linting
const eslint = new ESLint();
const formatter = await eslint.loadFormatter("stylish");
return formatter.format(results);
Hello,
it would be helpful to know how to use this script exactly.
Tried somethink like
result=$(npx eslint . --ext=.js,jsx)
node eslint-formatter-bitbucket-reports/index.js "$result"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.