prelint

1.2.0 • Public • Published

preLint

preLint passes your git staged files through ESLint utility.

Shines with pre-commit module.

Requirements

  • NodeJS 6+ and npm installed

Installation

  • $ npm install prelint --save-dev

Usage

  • Add the lint command to the scripts section of your package.json like this: "lint": "./node_modules/.bin/prelint",
  • Install pre-commit module npm install --save-dev pre-commit
  • Add precommit section to your package.json
  • Add lint task to precommit section

Example

package.json

{
  ...
  "scripts": {
    ...
    "lint": "./node_modules/.bin/prelint",
    ...
  },
  "precommit": [
    ...
    "lint",
    ...
  ],
  ...
}

Package Sidebar

Install

npm i prelint

Weekly Downloads

20

Version

1.2.0

License

MIT

Last publish

Collaborators

  • antipin