-
Notifications
You must be signed in to change notification settings - Fork 1
Installation
Moritz Jacobs edited this page Feb 25, 2020
·
1 revision
You can install the scriptlint
CLI tool locally or globally
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.
Install with npm install scriptlint -g
/ yarn global add scriptlint
and then run with scriptlint
.
- Motivation
- The scriptlint "standard" tl;dr
-
The scriptlint "standard"
- Rules enforceable via the scriptlint CLI
- Best practices
- The scriptlint CLI
- Contributing to scriptlint