lint-unpushed
Lint code before it's pushed
Last updated a month ago by steelbrain .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install lint-unpushed 
SYNC missed versions from official npm registry.

Lint Unpushed

Lint Unpushed will make sure your code passes relevant tests before git push. Best used with husky.

Installation

npm install --save-dev lint-unpushed
# OR
yarn add --dev lint-unpushed

Configuration

Example config to tell Husky to invoke lint-unpushed, and run Prettier on JS/JSON files

// package.json:
{
  "husky": {
    "hooks": {
      "pre-push": "lint-unpushed"
    }
  },
  "lint-unpushed": {
    "**/*.{js,json}": [
      "prettier --list-different"
    ]
  }
}

Accepted values in lint-unpushed are string[] (which do NOT get inidividual changed files as arguments) and Record<string, string|string[]> (which DO get individual changed files as arguments).

License

This project is licensed under the terms of MIT License. See the License file for more info.

Current Tags

  • 0.2.0                                ...           latest (a month ago)

3 Versions

  • 0.2.0                                ...           a month ago
  • 0.1.1                                ...           a month ago
  • 0.1.0                                ...           a month ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 31
Dependencies (6)
Dev Dependencies (11)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |