Skip to content

JLHwung/eslint-ci

Repository files navigation

eslint-ci

Build Status

Fast ESLint for CI, inspired from yaspeller-ci.

It is a simple wrap for ESLint and works well with ESLint from 1.x to the latest version. It runs lint check only in first CI job so that we can speed up build time and reduce unnecessary computation burden for CI service.

Usage

Install eslint-ci

yarn add eslint-ci --dev

Note that eslint must be also installed since eslint-ci states peer dependencies on eslint.

Add it to npm scripts

{
  "scripts": {
    "lint": "eslint-ci",
    "test": "npm run unit && npm run lint"
  }
}