Skip to content

KOLint

EXPERIMENTAL

Many features in the toolchain is still under development and may be unstable. The documentation is still unfinished and may be missing crutial parts or be out of date.

KOLint, despite its name, is not only a linter. The toolchain has grown to provide many useful tools for developing knockout views.

Linting

Code analyzer that can detect common issues in the code. The linter can also spit out type-checking errors provided by TypeScript.

html
<p data-bind="visible: isVisible"></p>
                       ^^^^^^^^^
Argument of type 'number' is not assignable to parameter of type 'boolean'.

Server-side Render

Pre-render knockout views on the server to optimize runtime performance and SEO.

html
<!-- ko foreach: users -->
  <p>{{ name }}</p>
<!-- /ko -->

<p>John Doe</p>
<p>Albert Einstein</p>

Language Support

A language server (implementing the language server protocol) for Knockout.js to provide language features, such as intellisense, diagnostics, syntax highlighting, etc. mainly for editors.