Unverified Commit 8dab397a authored by Robert Knight's avatar Robert Knight Committed by GitHub

Merge pull request #871 from hypothesis/dependabot/npm_and_yarn/eslint-4.19.1

Bump eslint from 3.19.0 to 4.19.1
parents 555d6330 5099470d
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
"end-of-stream": "^1.1.0", "end-of-stream": "^1.1.0",
"escape-html": "^1.0.3", "escape-html": "^1.0.3",
"escape-string-regexp": "^1.0.5", "escape-string-regexp": "^1.0.5",
"eslint": "^3.18.0", "eslint": "^4.19.1",
"eslint-config-hypothesis": "^1.0.0", "eslint-config-hypothesis": "^1.0.0",
"eslint-plugin-mocha": "^4.8.0", "eslint-plugin-mocha": "^4.8.0",
"exorcist": "^0.4.0", "exorcist": "^0.4.0",
......
...@@ -229,7 +229,7 @@ describe('DocumentMeta', function() { ...@@ -229,7 +229,7 @@ describe('DocumentMeta', function() {
const expected = ( const expected = (
document.location.protocol + '//' + document.location.protocol + '//' +
document.location.host + document.location.host +
document.location.pathname.replace(/[^\/]+$/, '') + document.location.pathname.replace(/[^/]+$/, '') +
'path' 'path'
); );
assert.equal(result, expected); assert.equal(result, expected);
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
const Observable = require('zen-observable'); const Observable = require('zen-observable');
/** /**
* Returns an observable of events emitted by a DOM event source * Returns an observable of events emitted by a DOM event source
* (eg. an Element, Document or Window). * (eg. an Element, Document or Window).
* *
...@@ -54,7 +54,7 @@ function delay(delay, src) { ...@@ -54,7 +54,7 @@ function delay(delay, src) {
}); });
} }
/** /**
* Buffers events from a source Observable, waiting for a pause of `delay` * Buffers events from a source Observable, waiting for a pause of `delay`
* ms with no events before emitting the last value from `src`. * ms with no events before emitting the last value from `src`.
* *
...@@ -86,7 +86,7 @@ function buffer(delay, src) { ...@@ -86,7 +86,7 @@ function buffer(delay, src) {
}); });
} }
/** /**
* Merges multiple streams of values into a single stream. * Merges multiple streams of values into a single stream.
* *
* @param {Array<Observable>} sources * @param {Array<Observable>} sources
......
...@@ -189,7 +189,7 @@ class Discovery { ...@@ -189,7 +189,7 @@ class Discovery {
discovered = true; discovered = true;
} else if (messageType === 'offer' || messageType === 'ack') { } else if (messageType === 'offer' || messageType === 'ack') {
throw new Error( throw new Error(
`A second Discovery server has been detected at ${origin}. `A second Discovery server has been detected at ${origin}.
This is unsupported and will cause unexpected behaviour.` This is unsupported and will cause unexpected behaviour.`
); );
} }
......
...@@ -134,7 +134,7 @@ const embedGenerators = [ ...@@ -134,7 +134,7 @@ const embedGenerators = [
return null; return null;
} }
const groups = /[&\?]v=([^&#]+)/.exec(link.search); const groups = /[&?]v=([^&#]+)/.exec(link.search);
if (groups) { if (groups) {
return youTubeEmbed(groups[1], link); return youTubeEmbed(groups[1], link);
} }
...@@ -148,7 +148,7 @@ const embedGenerators = [ ...@@ -148,7 +148,7 @@ const embedGenerators = [
} }
// extract video ID from URL // extract video ID from URL
const groups = /^\/([^\/]+)\/?$/.exec(link.pathname); const groups = /^\/([^/]+)\/?$/.exec(link.pathname);
if (groups) { if (groups) {
return youTubeEmbed(groups[1], link); return youTubeEmbed(groups[1], link);
} }
...@@ -161,7 +161,7 @@ const embedGenerators = [ ...@@ -161,7 +161,7 @@ const embedGenerators = [
return null; return null;
} }
const groups = /^\/([^\/\?#]+)\/?$/.exec(link.pathname); const groups = /^\/([^/?#]+)\/?$/.exec(link.pathname);
if (groups) { if (groups) {
return vimeoEmbed(groups[1]); return vimeoEmbed(groups[1]);
} }
...@@ -174,7 +174,7 @@ const embedGenerators = [ ...@@ -174,7 +174,7 @@ const embedGenerators = [
return null; return null;
} }
const groups = /^\/channels\/[^\/]+\/([^\/?#]+)\/?$/.exec(link.pathname); const groups = /^\/channels\/[^/]+\/([^/?#]+)\/?$/.exec(link.pathname);
if (groups) { if (groups) {
return vimeoEmbed(groups[1]); return vimeoEmbed(groups[1]);
} }
...@@ -219,7 +219,7 @@ const embedGenerators = [ ...@@ -219,7 +219,7 @@ const embedGenerators = [
let endTime = linkParams.end; let endTime = linkParams.end;
if (!startTime) { if (!startTime) {
const startPathParam = slug.match(/\/start\/([^\/]+)/); const startPathParam = slug.match(/\/start\/([^/]+)/);
if (startPathParam) { if (startPathParam) {
startTime = startPathParam[1]; startTime = startPathParam[1];
slug = slug.replace(startPathParam[0], ''); slug = slug.replace(startPathParam[0], '');
...@@ -227,7 +227,7 @@ const embedGenerators = [ ...@@ -227,7 +227,7 @@ const embedGenerators = [
} }
if (!endTime) { if (!endTime) {
const endPathParam = slug.match(/\/end\/([^\/]+)/); const endPathParam = slug.match(/\/end\/([^/]+)/);
if (endPathParam) { if (endPathParam) {
endTime = endPathParam[1]; endTime = endPathParam[1];
slug = slug.replace(endPathParam[0], ''); slug = slug.replace(endPathParam[0], '');
......
...@@ -16,7 +16,7 @@ const uiConstants = require('../ui-constants'); ...@@ -16,7 +16,7 @@ const uiConstants = require('../ui-constants');
* for PDFs * for PDFs
*/ */
/** /**
* Return a minimal representation of an annotation that can be sent from the * Return a minimal representation of an annotation that can be sent from the
* sidebar app to a connected frame. * sidebar app to a connected frame.
* *
......
...@@ -24,7 +24,7 @@ const util = require('../util'); ...@@ -24,7 +24,7 @@ const util = require('../util');
*/ */
const TAB_DEFAULT = uiConstants.TAB_ANNOTATIONS; const TAB_DEFAULT = uiConstants.TAB_ANNOTATIONS;
/** /**
* Default sort keys for each tab. * Default sort keys for each tab.
*/ */
const TAB_SORTKEY_DEFAULT = {}; const TAB_SORTKEY_DEFAULT = {};
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
const immutable = require('seamless-immutable'); const immutable = require('seamless-immutable');
// TODO: Update when this is a property available on the API response // TODO: Update when this is a property available on the API response
const DEFAULT_ORG_ID = '__default__'; const DEFAULT_ORG_ID = '__default__';
/** /**
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment