Remove last ESLint presence

..

///
This commit is contained in:
Abdón Rodríguez Davila 2018-04-21 12:38:29 +02:00
parent 4858f06b38
commit d4a8b6be17
4 changed files with 7 additions and 11 deletions

View File

@ -72,13 +72,13 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
* to indicate the path from which you'll be serving, including leading * to indicate the path from which you'll be serving, including leading
* and trailing slashes (e.g., `/my-app/`). * and trailing slashes (e.g., `/my-app/`).
*/ */
window.Polymer = {rootPath: '/'}; window.Polymer = { rootPath: '/' };
// Load and register pre-caching Service Worker // Load and register pre-caching Service Worker
if ('serviceWorker' in navigator) { if ('serviceWorker' in navigator) {
window.addEventListener('load', function() { window.addEventListener('load', function() {
navigator.serviceWorker.register('service-worker.js', { navigator.serviceWorker.register('service-worker.js', {
scope: Polymer.rootPath, scope: Polymer.rootPath
}); });
}); });
} }
@ -94,7 +94,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
<style> <style>
body { body {
margin: 0; margin: 0;
font-family: 'Roboto', 'Noto', sans-serif; font-family: "Roboto", "Noto", sans-serif;
line-height: 1.5; line-height: 1.5;
min-height: 100vh; min-height: 100vh;
background-color: #eeeeee; background-color: #eeeeee;

View File

@ -8,8 +8,6 @@
* subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/ */
/* eslint no-console: ["error", { allow: ["info"] }] */
console.info( console.info(
'Service worker disabled for development, will be generated at build time.' 'Service Worker disabled for development, will be generated at build time.'
); );

View File

@ -154,7 +154,7 @@ class MyApp extends PolymerElement {
// Load page import on demand. Show 404 page if fails // Load page import on demand. Show 404 page if fails
// Note: `polymer build` doesn't like string concatenation in // Note: `polymer build` doesn't like string concatenation in
// the import statement, so break it up. // the import statement, so break it up.
switch(page) { switch (page) {
case 'view1': case 'view1':
import('./my-view1.js'); import('./my-view1.js');
break; break;

View File

@ -8,17 +8,15 @@
* subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/ */
/* eslint-env node */
module.exports = { module.exports = {
staticFileGlobs: [ staticFileGlobs: [
'manifest.json',
'src/**/*', 'src/**/*',
'manifest.json'
], ],
runtimeCaching: [ runtimeCaching: [
{ {
urlPattern: /\/@webcomponents\/webcomponentsjs\//, urlPattern: /\/@webcomponents\/webcomponentsjs\//,
handler: 'fastest' handler: 'fastest'
} }
], ]
}; };