Skip to content

Github action that runs ESLint on javascript code.

License

Notifications You must be signed in to change notification settings

jsfiddle/gulp-minify-action

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GitHub ESLint runner

This action executes ESLint linter on specified javascript files without any previous action/build step or Docker required.

Prerequisites

ESLint

You must have the ESLint running locally for the action to execute. It will use the same rules as you do locally. More info on the ESLint getting started guide

Usage

Add any of the examples below to your workflow file in .github/main.workflow

This is the simplest example to get it running:

workflow "New workflow" {
  on = "push"
  resolves = ["ESLint"]
}

action "ESLint" {
  uses = "stefanoeb/eslint-action@master"
}

By default it will run ESLint through all the files in the project. But you can also specify a glob of files on the args, just like ESLint:

workflow "New workflow" {
  on = "push"
  resolves = ["ESLint"]
}

action "ESLint" {
  uses = "stefanoeb/eslint-action@master"
  args = "index.js src/**.js"
}

If there is no previous step installing the necessary modules, this action will execute a yarn install or npm install automatically.

License

The Dockerfile and associated scripts and documentation in this project are released under the MIT License.

About

Github action that runs ESLint on javascript code.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 69.3%
  • Dockerfile 30.7%