1.0.1 • Published 3 months ago

stylelint-formatter-bitbucket v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

stylelint-formatter-bitbucket

A stylelint formatter that uploads results as a report to Bitbucket.

Inspired by https://github.com/Sleavely/eslint-formatter-bitbucket

Usage

[npm|pnpm] install -D stylelint-formatter-bitbucket

Add a linting step bitbucket-piplines.yml:

pipelines:
  pull-requests:
    '**':
      - step:
          name: stylelint
          script:
            - npx stylelint --custom-formatter node_modules/stylelint-formatter-bitbucket **/*.css

Outside of Bitbucket Pipelines

If you are running the formatter in a context outside of Bitbucket Pipelines, for example from a local environment or in a custom CI provider, you'll need to set some environment variables manually:

  • BITBUCKET_API_AUTH - the value for the "Authorization" header when communicating with the Bitbucket API, e.g. Bearer my_access_token
  • BITBUCKET_COMMIT - commit SHA for the current run, e.g. a624d1419b98
  • BITBUCKET_WORKSPACE - e.g. mghdotdev
  • BITBUCKET_REPO_SLUG - URL-friendly repo name, e.g. stylelint-formatter-bitbucket

License

See LICENSE

1.0.1

3 months ago

1.0.0

3 months ago

0.5.0

3 months ago

0.4.0

3 months ago

0.6.0

3 months ago

0.3.0

3 months ago

0.2.0

3 months ago

0.1.0

3 months ago