KOLint
Search…
Using the CLI
KOLint's package name knockout-lint is not to be confused with the cli name kolint.

Installation

You can also try to package without installing it using npx knockout-lint.
1
npm i knockout-lint -g # install globally
2
npm i knockout-lint -D # install as dev dependency
Copied!

Usage

kolint is used with one or more arguments as glob patterns to the view files.
1
kolint views/**/*.html
Copied!

Config

Create a new file called .kolint.js (preferably), .kolint.json or .kolint.yml. The file will be automatically used by kolint if the config flag is not used.
Use can specify a custom filename with the argument flag --config, or the shorthand -c or disable automatic config import by using --no-config.

Help

See all the available argument flags and help by using:
1
kolint --help
Copied!
Last modified 4mo ago