kolint / next

Modern toolchain for enhancing usage of Knockout.js
https://kolint.github.io/next/
MIT License
1 stars 0 forks source link

Forgiving binding parser #45

Open tscpp opened 2 months ago

tscpp commented 2 months ago

The current binding parser currently uses acorn and will fail if the binding doesn't have valid object syntax.

The below example will make the parser crash because it expected the property "text" to have a value.

<div data-bind="text: "></div>

This will cause the analyzer and other language features not working while writing code, and the analyzer not to spit out any other errors than parsing errors if a single binding is broken.