Skip to content
search

GitHub Action

Code review using ESLint

v0.0.3 Latest version

Code review using ESLint

search

Code review using ESLint

Analyze code statically using ESLint in Github actions

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Code review using ESLint

uses: moneyforward/eslint-action@v0.0.3

Learn more about this action in moneyforward/eslint-action

Choose a version

Code review using ESLint

Analyze code statically by using ESLint in Github actions

Inputs

files

Specify patterns by glob

(Multiple patterns can be specified by separating them with line feed)

options

Changes eslint command line options.

Specify the options in JSON array format. e.g.: '["--ext", ".js", "--ext", ".ts"]'

working_directory

Changes the current working directory of the Node.js process

reporter_type_notation

Change the reporter.

(Multiple can be specified separated by commas)

Example usage

name: Analyze code statically
"on": pull_request
jobs:
  eslint:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: Analyze code statically using ESLint
        uses: moneyforward/eslint-action@v0

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/moneyforward/eslint-action

License

The gem is available as open source under the terms of the MIT License.