eslint-changes

0.1.2 • Public • Published

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 projects package.json and add only the script part to .travis.yml.

Package Sidebar

Install

npm i eslint-changes

Weekly Downloads

1

Version

0.1.2

License

MIT

Last publish

Collaborators

  • rileytomasek