Skip to content

Commit

Permalink
Lint panels
Browse files Browse the repository at this point in the history
  • Loading branch information
balloob committed Jul 19, 2016
1 parent 362ac33 commit 8c3f760
Show file tree
Hide file tree
Showing 17 changed files with 47 additions and 46 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"watch_ru_all": "npm run watch_ru_core | npm run watch_ru_demo",
"watch_ru_core": "rollup --config rollup/core.js --watch",
"watch_ru_demo": "rollup --config rollup/demo.js --watch",
"test": "eslint src panels --ext html && ls -1 src/**/*.html | xargs polymer lint --input"
"test": "eslint src panels --ext html && ls -1 src/**/*.html panels/**/*.html | xargs polymer lint --input"
},
"author": "Paulus Schoutsen <[email protected]> (http://paulusschoutsen.nl)",
"license": "MIT",
Expand Down
4 changes: 3 additions & 1 deletion panels/dev-event/events-list.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<!-- <link rel="import" href="../../bower_components/polymer/polymer.html"> -->
<link rel="import" href="../../bower_components/polymer/polymer.html">

<link rel="import" href="../../src/util/hass-behavior.html">

<dom-module id="events-list">
<template>
Expand Down
6 changes: 3 additions & 3 deletions panels/dev-event/ha-panel-dev-event.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<!--

<link rel="import" href="../../bower_components/polymer/polymer.html">

<link rel="import" href="../../bower_components/paper-button/paper-button.html">
<link rel="import" href="../../bower_components/paper-input/paper-input.html">
<link rel="import" href="../../bower_components/paper-input/paper-textarea.html">

<link rel="import" href="./partial-base.html">
-->
<link rel="import" href="../../src/layouts/partial-base.html">

<link rel="import" href="./events-list.html">

<dom-module id="ha-panel-dev-event">
Expand Down
6 changes: 3 additions & 3 deletions panels/dev-info/ha-panel-dev-info.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<!--
<link rel="import" href="../../bower_components/polymer/polymer.html">

<link rel="import" href="../../bower_components/paper-icon-button/paper-icon-button.html">

<link rel="import" href="./partial-base.html">
-->
<link rel="import" href="../../src/layouts/partial-base.html">
<link rel="import" href="../../src/util/hass-behavior.html">

<dom-module id="ha-panel-dev-info">
<template>
<style is="custom-style" include="iron-positioning"></style>
Expand Down
6 changes: 3 additions & 3 deletions panels/dev-service/ha-panel-dev-service.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<!--

<link rel="import" href="../../bower_components/polymer/polymer.html">

<link rel="import" href="../../bower_components/paper-button/paper-button.html">
<link rel="import" href="../../bower_components/paper-input/paper-input.html">
<link rel="import" href="../../bower_components/paper-input/paper-textarea.html">

<link rel="import" href="./partial-base.html">
-->
<link rel="import" href="../../src/layouts/partial-base.html">

<link rel="import" href="./services-list.html">

<dom-module id="ha-panel-dev-service">
Expand Down
4 changes: 3 additions & 1 deletion panels/dev-service/services-list.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<!-- <link rel="import" href="../../bower_components/polymer/polymer.html"> -->
<link rel="import" href="../../bower_components/polymer/polymer.html">

<link rel="import" href="../../src/util/hass-behavior.html">

<dom-module id="services-list">
<template>
Expand Down
4 changes: 3 additions & 1 deletion panels/dev-state/entity-list.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<!-- <link rel="import" href="../../bower_components/polymer/polymer.html"> -->
<link rel="import" href="../../bower_components/polymer/polymer.html">

<link rel="import" href="../../src/util/hass-behavior.html">

<dom-module id="entity-list">
<template>
Expand Down
6 changes: 3 additions & 3 deletions panels/dev-state/ha-panel-dev-state.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<!--

<link rel="import" href="../../bower_components/polymer/polymer.html">

<link rel="import" href="../../bower_components/paper-button/paper-button.html">
<link rel="import" href="../../bower_components/paper-input/paper-input.html">
<link rel="import" href="../../bower_components/paper-input/paper-textarea.html">

<link rel="import" href="./partial-base.html">
-->
<link rel="import" href="../../src/layouts/partial-base.html">

<link rel="import" href="./entity-list.html">

<dom-module id="ha-panel-dev-state">
Expand Down
6 changes: 3 additions & 3 deletions panels/dev-template/ha-panel-dev-template.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<!--

<link rel="import" href="../../bower_components/polymer/polymer.html">

<link rel="import" href="../../bower_components/paper-input/paper-textarea.html">
<link rel="import" href="../../bower_components/paper-spinner/paper-spinner.html">

<link rel="import" href="./partial-base.html">
-->
<link rel="import" href="../../src/layouts/partial-base.html">
<link rel="import" href="../../src/util/hass-behavior.html">

<dom-module id="ha-panel-dev-template">
<template>
Expand Down
8 changes: 3 additions & 5 deletions panels/history/ha-panel-history.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
<!--
<link rel="import" href="../../bower_components/polymer/polymer.html">
<link rel="import" href="../../bower_components/paper-icon-button/paper-icon-button.html">
<link rel="import" href="../../bower_components/paper-input/paper-input.html">
<link rel="import" href="./partial-base.html">
<link rel="import" href="../components/state-history-charts.html">
-->

<link rel="import" href="../../src/layouts/partial-base.html">
<link rel="import" href="../../src/components/state-history-charts.html">
<link rel="import" href="../../src/resources/pikaday-js.html">
<link rel="import" href="../../src/util/hass-behavior.html">

<dom-module id="ha-panel-history">
<template>
Expand Down
4 changes: 4 additions & 0 deletions panels/iframe/ha-panel-iframe.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
<link rel="import" href="../../bower_components/polymer/polymer.html">

<link rel="import" href="../../src/layouts/partial-base.html">

<dom-module id='ha-panel-iframe'>
<template>
<style>
Expand Down
2 changes: 0 additions & 2 deletions panels/logbook/ha-logbook.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
<!--
<link rel="import" href="../../bower_components/polymer/polymer.html">
-->

<link rel="import" href="./logbook-entry.html">

Expand Down
11 changes: 4 additions & 7 deletions panels/logbook/ha-panel-logbook.html
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
<!--
<link rel="import" href="../../bower_components/polymer/polymer.html">

<link rel="import" href="../../bower_components/paper-icon-button/paper-icon-button.html">
<link rel="import" href="../../bower_components/paper-input/paper-input.html">

<link rel="import" href="./partial-base.html">
<link rel="import" href="../components/loading-box.html">
-->
<link rel="import" href="../../src/layouts/partial-base.html">
<link rel="import" href="../../src/components/loading-box.html">
<link rel="import" href="../../src/resources/pikaday-js.html">
<link rel="import" href="../../src/util/hass-behavior.html">

<link rel="import" href="./ha-logbook.html">

<link rel="import" href="../../src/resources/pikaday-js.html">

<dom-module id="ha-panel-logbook">
<template>
<style>
Expand Down
8 changes: 3 additions & 5 deletions panels/logbook/logbook-entry.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
<!--
<link rel="import" href="../../bower_components/polymer/polymer.html">

<link rel="import" href="domain-icon.html">
<link rel="import" href="display-time.html">
<link rel="import" href="relative-ha-datetime.html">
-->
<link rel="import" href="../../src/components/domain-icon.html">
<link rel="import" href="../../src/components/display-time.html">
<link rel="import" href="../../src/components/relative-ha-datetime.html">

<dom-module id="logbook-entry">
<template>
Expand Down
8 changes: 3 additions & 5 deletions panels/map/ha-entity-marker.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<!--
<link rel='import' href='../../../bower_components/polymer/polymer.html'>
<link rel='import' href='../../../bower_components/iron-image/iron-image.html'>
<link rel='import' href='../../../bower_components/iron-icon/iron-icon.html'>
-->
<link rel='import' href='../../bower_components/polymer/polymer.html'>
<link rel='import' href='../../bower_components/iron-image/iron-image.html'>
<link rel='import' href='../../bower_components/iron-icon/iron-icon.html'>

<dom-module id='ha-entity-marker'>
<template>
Expand Down
6 changes: 4 additions & 2 deletions panels/map/ha-panel-map.html
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
<!--

<link rel="import" href="../../bower_components/polymer/polymer.html">
<link rel='import' href='../../bower_components/paper-toolbar/paper-toolbar.html'>
<link rel="import" href="../../bower_components/paper-icon-button/paper-icon-button.html">
<link rel='import' href='../../bower_components/iron-icon/iron-icon.html'>
-->

<link rel="import" href="../../bower_components/leaflet-map/leaflet-map.html">

<!-- temp work around -->
<link rel="stylesheet" href="../../bower_components/leaflet/dist/leaflet.css" />

<link rel="import" href="../../src/util/hass-behavior.html">

<link rel="import" href="./ha-entity-marker.html">

<style>
Expand Down
2 changes: 1 addition & 1 deletion src/util/hass-behavior.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script>
/** @polymerBehavior NameSpace.Behavior */
/** @polymerBehavior */
window.hassBehavior = {
attached: function attached() {
var hass = this.hass;
Expand Down

0 comments on commit 8c3f760

Please sign in to comment.