From 7ff0a05743074f599e69d7f34545e6860e3e0e5f Mon Sep 17 00:00:00 2001 From: Christoffer Jansson Date: Tue, 16 May 2017 09:42:24 +0200 Subject: [PATCH] Enable eslint cache, added all folders to HTML linting, supressed eslint warning for 3rd party libs --- Gruntfile.js | 12 ++++++------ src/content/capture/video-contenthint/index.html | 6 +++--- src/content/devices/multi/index.html | 16 ++++++++-------- .../multipleroutes/src/background.html | 8 ++++++++ .../extensions/multipleroutes/src/options.html | 12 ++++++++++++ 5 files changed, 37 insertions(+), 17 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index e9a4199ac..4bce51d92 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -11,13 +11,14 @@ module.exports = function(grunt) { options: { csslintrc: '.csslintrc' }, - src: ['src/content/**/*.css'] + src: ['src/content/**/*.css', '!**/third_party/*.css' ] }, eslint: { options: { - configFile: '.eslintrc' + configFile: '.eslintrc', + cache: true }, - target: ['src/content/**/*.js', 'test/*.js'] + target: ['src/content/**/*.js', 'test/*.js', '!**/third_party/*.js' ] }, githooks: { all: { @@ -27,9 +28,8 @@ module.exports = function(grunt) { htmlhint: { html1: { src: [ - 'src/content/datachannel/**/index.html', - 'src/content/getusermedia/**/index.html', - 'src/content/peerconnection/**/index.html' + 'src/content/**/*.html', + '!**/third_party/*.html' ] } }, diff --git a/src/content/capture/video-contenthint/index.html b/src/content/capture/video-contenthint/index.html index 51963c177..a266d24db 100644 --- a/src/content/capture/video-contenthint/index.html +++ b/src/content/capture/video-contenthint/index.html @@ -36,18 +36,18 @@

WebRTC samples Guiding video encoding with content hints

-
+

Source video file (high bitrate)

-
+

"motion" video @ 50kbps

-
+

"detail" video @ 50kbps

diff --git a/src/content/devices/multi/index.html b/src/content/devices/multi/index.html index 140b0d6b4..842366ae0 100644 --- a/src/content/devices/multi/index.html +++ b/src/content/devices/multi/index.html @@ -82,19 +82,19 @@

Local media files:

-

This demo must be run from localhost or over HTTPS 45.0.2441.x or later.

+

This demo must be run from localhost or over HTTPS 45.0.2441.x or later.

Enable experimental Web Platform features must be enabled from the chrome://flags page or run Chrome with the following flag:

    --enable-blink-features=EnumerateDevices,AudioOutputDevices

More information about running Chrome with flags is available from The Chromium Projects.

View source on GitHub -
+
- - - + + + - + - - + + diff --git a/src/content/extensions/multipleroutes/src/background.html b/src/content/extensions/multipleroutes/src/background.html index ede977588..f9494adc6 100644 --- a/src/content/extensions/multipleroutes/src/background.html +++ b/src/content/extensions/multipleroutes/src/background.html @@ -1,2 +1,10 @@ + + diff --git a/src/content/extensions/multipleroutes/src/options.html b/src/content/extensions/multipleroutes/src/options.html index 938deeb24..a4d7a6c42 100644 --- a/src/content/extensions/multipleroutes/src/options.html +++ b/src/content/extensions/multipleroutes/src/options.html @@ -1,4 +1,11 @@ +

@@ -6,6 +13,7 @@ +

+

+

+

+