Skip to content

Commit 039ccaf

Browse files
committed
docs: inital README
1 parent f67a89f commit 039ccaf

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

README.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# eslint-formatter-bitbucket
2+
3+
An ESLint formatter that uploads results as a report to Bitbucket.
4+
5+
[ ![npm version](https://img.shields.io/npm/v/eslint-formatter-bitbucket.svg?style=flat) ](https://npmjs.org/package/eslint-formatter-bitbucket "View this project on npm") [ ![Issues](https://img.shields.io/github/issues/Sleavely/eslint-formatter-bitbucket.svg) ](https://github.com/Sleavely/eslint-formatter-bitbucket/issues)
6+
7+
Bitbucket Reports are useful especially in the context of pullrequests, because any linting errors will appear as annotations in the code diffs.
8+
9+
This package was originally forked from [a7madgamal's fork](https://github.com/a7madgamal/eslint-formatter-bitbucket-reports) of [eslint-formatter-bitbucket-reports](https://github.com/spartez/eslint-formatter-bitbucket-reports).
10+
11+
## Usage
12+
13+
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.
14+
15+
```sh
16+
npm install --save-dev eslint-formatter-bitbucket
17+
```
18+
19+
Add a linting step `bitbucket-pipelines.yml`:
20+
21+
```yaml
22+
pipelines:
23+
pull-requests:
24+
'**':
25+
- step:
26+
name: PR linting
27+
script:
28+
- npx eslint -f bitbucket .
29+
```
30+
31+
## License
32+
33+
See [LICENSE](./LICENSE)

0 commit comments

Comments
 (0)