Skip to content

Installation

Moritz Jacobs edited this page Feb 25, 2020 · 1 revision

You can install the scriptlint CLI tool locally or globally

Local installation (recommended)

Install with npm install scriptlint -D / yarn add scriptlint -D and add a linting script to your package.json:

"scripts": {
    ...
    "test:scripts": "scriptlint",
    ...
  },

You can also add this as a pre-run to husky or as a precommit-hook.

Global installation

Install with npm install scriptlint -g / yarn global add scriptlint and then run with scriptlint.


scriptlint status
npm version badge
dependency badge
Issue badge
CI badge

Clone this wiki locally