mongodb-js-precommit
Shared static analysis and integrity tooling.
Last updated 9 months ago by imlucas .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install mongodb-js-precommit 
SYNC missed versions from official npm registry.

mongodb-js-precommit travis npm

Standard linting, formatting and more for mongodb-js projects.

Usage

mongodb-js-precommit provides a shortcut to the following useful tools:

  • dependency-check Makes sure you didn't forget to update your package.json with new dependencies or remove dependencies your module isn't using anymore.
  • eslint Makes sure your code conforms to the syleguide for cases that aren't just simple formatting and are probably bugs.

Example

First, install pre-commit, which actually sets up the git pre-commit hook:

npm install --save-dev mongodb-js-precommit

Next, update your package.json to add a new check script:

  "scripts": {
    "check": "mongodb-js-precommit"
  }

To test that everything is working correctly, you can run:

npm run check

Now, sit back, relax and think about what you're going to do with your new found free time that would have been spent on code reviews.

Configuration

mongodb-js-precommit is easily configurable via your package.json.

dependency-check

  "dependency-check": {
    "entries": ["bin/mongodb-js-precommit.js"],
    "ignore": ["mongodb-js-precommit", "mocha"]
  }

precommit

This should just work no config required...

eslint

For more information, checkout eslint-config-mongodb-js.

Todo

  • npm-check-updates Can we safely update dependency versions to latest safely?
  • npm audit Are you using any modules with known security vulnerabilites?

License

Apache 2.0

Current Tags

  • 2.2.1                                ...           latest (9 months ago)

25 Versions

  • 2.2.1                                ...           9 months ago
  • 2.2.0                                ...           9 months ago
  • 2.0.1                                ...           9 months ago
  • 2.1.0                                ...           9 months ago
  • 2.0.0                                ...           2 years ago
  • 1.1.0                                ...           2 years ago
  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
  • 0.4.0                                ...           3 years ago
  • 0.3.0                                ...           3 years ago
  • 0.2.9                                ...           4 years ago
  • 0.2.8                                ...           5 years ago
  • 0.2.7                                ...           5 years ago
  • 0.2.6                                ...           5 years ago
  • 0.2.5                                ...           5 years ago
  • 0.2.4                                ...           5 years ago
  • 0.2.3                                ...           5 years ago
  • 0.2.2                                ...           5 years ago
  • 0.2.1                                ...           5 years ago
  • 0.2.0                                ...           5 years ago
  • 0.1.4                                ...           5 years ago
  • 0.1.3                                ...           5 years ago
  • 0.1.2                                ...           5 years ago
  • 0.1.1                                ...           5 years ago
  • 0.1.0                                ...           5 years ago

Copyright 2014 - 2016 © taobao.org |