@giact/eslint-formatter-github-annotations
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

@giact/eslint-formatter-github-annotations

An ESLint formatter to report as GitHub Checks annotations with a bonus command line tool to format Prettier output as GitHub Checks annotations.

Usage

  1. Add @giact/eslint-formatter-github-annotations to your dependencies:

    npm install --save-dev @giact/eslint-formatter-github-annotations
  2. Create a GitHub action workflow with this formatter:

    name: Lint
    on:
      pull_request:
    jobs:
      eslint:
        runs-on: ubuntu-latest
        steps:
          - uses: actions/checkout@v3
          - uses: actions/setup-node@v3
            with:
              node-version: 18
              cache: npm
          - run: npm ci
          - name: Prettier
            run: npx prettier --list-different . | npx prettier-formatter-github
          - name: ESLint
            if: always()
            run: npx eslint -f @giact/eslint-formatter-github-annotations .

Testing

npm run test

Contributing

Contributions are welcome. Please check out the Contributing guide for the guidelines you need to follow.

Please read our Code of Conduct so that you can understand the kind of respectful behavior we expect of all participants.

License

Open Source Project is released under the MIT license. See LICENSE for the full license text.

Package Sidebar

Install

npm i @giact/eslint-formatter-github-annotations

Weekly Downloads

0

Version

0.1.2

License

MIT

Unpacked Size

12.7 kB

Total Files

9

Last publish

Collaborators

  • giact