knockout-lint
v0.3.5
Published
Lint and type check knockout.js bindings in the view with view model types.
Downloads
37
Readme
KOLint
KOLint is a type checker and lint tool for Knockout.JS views. TypeScript is used for type checking the Knockout view bindings when the viewmodel is defined in Typescript. The tool also checks for common mistakes in Knockout views. See documentation at GitHub Wiki.
Try it out
- Add reference to your view:
<!-- ko-import ViewModel from './viewmodel' --> <!-- ko-viewmodel ViewModel -->
- Run KOLint without installing it:
$ npx knockout-lint view.html