0.2.1 • Published 7 years ago

lint-package-lock v0.2.1

Weekly downloads
2
License
Apache-2.0
Repository
github
Last release
7 years ago

Lint Package Lock

License npm version

This is a tool to keep your package-lock sane when working with multiple devs who may be using different npm versions or .npmrc files.

Installation

npm i --save-dev lint-package-lock

Usage

It is configured using the JSON file .lint-package-lock in your home folder, details of which are in the Rules section of the readme.

Add it to your packages scripts to use it:

{
  "scripts": {
    "lint:package-lock": "lint-package-lock"
  }
}

Rules

Server

Enforces the resolves server to use, defaults to https://registry.npmjs.org

Example:

{
  "server": "https://your-private-registry.internal"
}

Arguments

--file=package-lock.json

Sets the file to lint, defaults to package-lock.json in the current working directory.

--config=.lint-package-lock

Sets the config file, defaults to .lint-package-lock in the current working directory.

0.2.1

7 years ago

0.2.0

7 years ago

0.1.0

7 years ago

0.0.1

7 years ago