Skip to content
This repository has been archived by the owner on Sep 24, 2021. It is now read-only.

Add unbalanced polymer databinding delimitors rule. #23

Merged
merged 2 commits into from
Feb 25, 2017

Conversation

rictic
Copy link
Contributor

@rictic rictic commented Feb 15, 2017

  • CHANGELOG.md has been updated

Steals from @usergenic's PR #1


This change is Reviewable

@rictic
Copy link
Contributor Author

rictic commented Feb 15, 2017

Fixes #30


export interface Template extends parse5.ASTNode { content: parse5.ASTNode; }

export function getNestedDataBindingTemplates(node: parse5.ASTNode) {
Copy link
Contributor

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.

Copy link
Contributor Author

@rictic rictic Feb 24, 2017

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).

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So clean! Awesome.

@rictic rictic force-pushed the unbalanced-delimitors branch from 32dc95c to 40ef567 Compare February 24, 2017 16:12
Copy link
Contributor

@usergenic usergenic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@rictic rictic force-pushed the unbalanced-delimitors branch from fc6ae8e to 0bc3850 Compare February 25, 2017 01:05
rictic and others added 2 commits February 24, 2017 19:10
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
@rictic rictic force-pushed the unbalanced-delimitors branch from 0bc3850 to 141af21 Compare February 25, 2017 01:12
@rictic rictic merged commit 5cc895e into master Feb 25, 2017
@rictic rictic deleted the unbalanced-delimitors branch February 25, 2017 01:12
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants