Skip to content
Moritz Jacobs edited this page Feb 25, 2020 · 1 revision
Usage: scriptlint [options] [packageFile]

Options:
  -V, --version  output the version number
  -s, --strict   strict mode
  -j, --json     JSON output
  -c, --config   inspect the config
  -f, --fix      autofixing
  -h, --help     output usage information

Examples

Find problems in the current directory's package.json:
scriptlint

Find problems in the current directory's package.json in strict mode:
scriptlint --strict or scriptlint -s

Fix autofixable problems in the current directory's package.json in strict mode:
scriptlint --fix --strict or scriptlint -f -s

Find problems in a specific package.json:
scriptlint ~/foo/project-dir/package.json


scriptlint status
npm version badge
dependency badge
Issue badge
CI badge

Clone this wiki locally