What it does

This action runs the pluggable linting utility for JavaScript and JSX, ESLint. Code linting is a type of static analysis that is frequently used to find problematic patterns or code that doesn’t adhere to certain style guidelines.

How it works

Buddy launches a Docker container in which it runs ESLint in on source code pulled from the repository to the pipeline filesystem.

Action preview

screenshot

ESLint Action Features

  • It’s possible to select code style which tells the action code conventions should the source code comply with
  • The action can be run in two modes: analyze code or analyze and fix issues automatically. The fixes will be applied only in the source code pulled into the pipeline filesystem, they won’t be pushed to the repository
  • It’s possible to select Node version on which ESLint will be run
  • If Report warnings and errors are selected, the action will fail a pipeline execution on errors found
  • Input fields: ConfigPath supports Environment variables
  • The action can be configured in YAML mode. See ESLint YAML parameters and ESLint YAML config example
  • Buddy's ESLint API is supported
  • The action supports conditional execution: it can be run on each execution, only if there are changes in the repository or specific paths since last execution or if an environment variable has a specific value
ESLint

Do more with ESLint

Buddy allows you to instantly connect ESLint with 100+ actions to automate your development and build better apps faster.

1 - 9 (of 107)