Skip to content

Commit 317e635

Browse files
committed
polymer linting enabled
1 parent 81c5481 commit 317e635

8 files changed

+21
-7
lines changed

.travis.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@ sudo: true
44

55
language: node_js
66

7-
node_js: node
7+
node_js: stable
88

99
addons:
10+
firefox: latest
1011
apt:
1112
sources:
1213
- google-chrome

dist/polymer-redux.html

+6-1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@
3232
*
3333
* Creates a Class mixin for decorating Elements with a given Redux store.
3434
*
35+
* @polymerMixin
36+
*
3537
* @param {Object} store Redux store.
3638
* @return {Function} Class mixin.
3739
*/
@@ -52,7 +54,7 @@
5254
*
5355
* @example
5456
* const update = bind(el, props) // set bindings
55-
* update(state) // manuel update
57+
* update(state) // manual update
5658
*
5759
* @private
5860
* @param {HTMLElement} element
@@ -143,6 +145,8 @@
143145
* const ReduxMixin = PolymerRedux(store)
144146
* class Foo extends ReduxMixin(Polymer.Element) { }
145147
*
148+
* @polymerMixinClass
149+
*
146150
* @param {Polymer.Element} parent The polymer parent element.
147151
* @return {Function} PolymerRedux mixed class.
148152
*/
@@ -242,3 +246,4 @@
242246

243247
}());
244248
</script>
249+

lib/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<script type="text/javascript" src="index.js"></script>
1+
<script type="text/javascript" src="index.js"></script>

lib/index.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ var Polymer = window_1.Polymer;
3232
*
3333
* Creates a Class mixin for decorating Elements with a given Redux store.
3434
*
35+
* @polymerMixin
36+
*
3537
* @param {Object} store Redux store.
3638
* @return {Function} Class mixin.
3739
*/
@@ -52,7 +54,7 @@ function PolymerRedux(store) {
5254
*
5355
* @example
5456
* const update = bind(el, props) // set bindings
55-
* update(state) // manuel update
57+
* update(state) // manual update
5658
*
5759
* @private
5860
* @param {HTMLElement} element
@@ -143,6 +145,8 @@ function PolymerRedux(store) {
143145
* const ReduxMixin = PolymerRedux(store)
144146
* class Foo extends ReduxMixin(Polymer.Element) { }
145147
*
148+
* @polymerMixinClass
149+
*
146150
* @param {Polymer.Element} parent The polymer parent element.
147151
* @return {Function} PolymerRedux mixed class.
148152
*/

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"build": "gulp",
99
"pretest": "npm run build && npm run lint",
1010
"test": "jest && polymer test",
11-
"lint": "xo #&& polymer lint --root=$(pwd)/lib"
11+
"lint": "xo && polymer lint --root=$(pwd)/lib"
1212
},
1313
"repository": {
1414
"type": "git",

readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ it's state and dispatch actions.
4848

4949
## Documentation
5050

51-
See the documentation page: [https://tur-nr.github.io/polymer-redux/docs](https://tur-nr.github.io/polymer-redux/docs)
51+
See the documentation page: [https://tur-nr.github.io/polymer-redux/docs](https://tur-nr.github.io/polymer-redux/docs).
5252

5353
## API
5454

src/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<script type="text/javascript" src="index.js"></script>
1+
<script type="text/javascript" src="index.js"></script>

src/index.js

+4
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ const {CustomEvent, Polymer} = window;
99
*
1010
* Creates a Class mixin for decorating Elements with a given Redux store.
1111
*
12+
* @polymerMixin
13+
*
1214
* @param {Object} store Redux store.
1315
* @return {Function} Class mixin.
1416
*/
@@ -117,6 +119,8 @@ export default function PolymerRedux(store) {
117119
* const ReduxMixin = PolymerRedux(store)
118120
* class Foo extends ReduxMixin(Polymer.Element) { }
119121
*
122+
* @polymerMixinClass
123+
*
120124
* @param {Polymer.Element} parent The polymer parent element.
121125
* @return {Function} PolymerRedux mixed class.
122126
*/

0 commit comments

Comments
 (0)