Skip to content

Have Travis run ESLint on files that were changed in a branch, and send the results back to GitHub.

License

Notifications You must be signed in to change notification settings

it-academyby/eslint-changes

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ESLint Changes

ESLint changes is a script that is run by TravisCI for commits and pull requests. It runs ESLint on the files that were changed and adds the results to GitHub as a status.

ESLint Changes status

Installation

  • Set GITHUB_TOKEN environment variable in Travis to be a GitHub access token with repo privileges.
  • Install the eslint-changes package from npm during the Travis install step:
install:
  - npm install eslint-changes
  • Run the ESLint Changes bin during the Travis script step:
script:
  - ./node_modules/.bin/eslint-changes

Details

  • ESLint Changes has eslint: "3.x" as a peer dependency. That means that your project must already have eslint installed and configured.
  • ESLint Changes will use any configuration like .eslintrc, .eslintignore, plugins or other configurations that are present in the project.
  • If you don't like installing eslint-changes from Travis, you can add it to your project's package.json and add only the script part to .travis.yml. Just be sure to run npm install --save-dev eslint-changes.

About

Have Travis run ESLint on files that were changed in a branch, and send the results back to GitHub.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%