1.0.0 • Published 1 year ago

eslint-formatter-bitbucket v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

eslint-formatter-bitbucket

An ESLint formatter that uploads results as a report to Bitbucket.

npm version Issues

Bitbucket Reports are useful especially in the context of pullrequests, because any linting errors will appear as annotations in the code diffs.

This package was originally forked from a7madgamal's fork of eslint-formatter-bitbucket-reports.

Usage

Assuming you have already installed and configured ESLint in your project you only have to install the formatter and use it in your Bitbucket Pipeline.

npm install --save-dev eslint-formatter-bitbucket

Add a linting step bitbucket-pipelines.yml:

pipelines:
  pull-requests:
    '**':
      - step:
          name: PR linting
          script:
            - npx eslint -f bitbucket .

License

See LICENSE