JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q44519F
  • License MIT

Lint and type check knockout.js bindings in the view with view model types.

Package Exports

  • knockout-lint
  • knockout-lint/build/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (knockout-lint) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

npm version Downloads License

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

  1. Add reference to your view:
    <!-- ko-import ViewModel from './viewmodel' -->
    <!-- ko-viewmodel ViewModel -->
  2. Run KOLint without installing it:
    $ npx knockout-lint view.html