-
Notifications
You must be signed in to change notification settings - Fork 11
Add unbalanced polymer databinding delimitors rule. #23
Conversation
5cd2dd9
to
64abc4b
Compare
Fixes #30 |
src/polymer/matchers.ts
Outdated
|
||
export interface Template extends parse5.ASTNode { content: parse5.ASTNode; } | ||
|
||
export function getNestedDataBindingTemplates(node: parse5.ASTNode) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I feel like this needs commenting. Also, I feel like matchers.ts should be all predicate functions, but maybe that wouldn't make sense for this one, so not a deal-breaker.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It turns out that this can be written more correctly as a predicate (as top level dom-if and dom-repeat is allowed).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So clean! Awesome.
32dc95c
to
40ef567
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
fc6ae8e
to
0bc3850
Compare
Add typings for parse5 Fix spelling of delimiters. Allow toplevel dom-if and dom-repeat.
* Add two known failures in expression parsing to integration tests. * Warn when binding to undeclared attributes and properties. * Add test, suggest nearest spelling when no attribute found. * Fix the warning for data-* attributes. * Add issue for TODO * Update CHANGELOG, improve documentation * Remove TODO for implemented feature. * Update integration test with new rule code. * Use consistent naming, also check attributes outside polymer databindings. * Update integration tests
0bc3850
to
141af21
Compare
Steals from @usergenic's PR #1
This change is![Reviewable](https://camo.githubusercontent.com/1541c4039185914e83657d3683ec25920c672c6c5c7ab4240ee7bff601adec0b/68747470733a2f2f72657669657761626c652e696f2f7265766965775f627574746f6e2e737667)