An ESLint formatter to report as GitHub Checks annotations
-
Add
eslint-formatter-github-annotations
to your dependencies:npm install --save-dev eslint-formatter-github-annotations
-
Create a GitHub action workflow with this formatter:
name: lint on: pull_request: jobs: eslint: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - run: npm install - run: npx eslint -f github-annotations .
npm run test
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.
Open Source Project is released under the MIT license. See LICENSE for the full license text.