Commit c09f49f4 authored by Robert Knight's avatar Robert Knight

Fix indentation inconsistencies

Use 2-space indents everywhere and fix up non-conforming code with
ESLint's --fix tool.
parent 1ef5e770
......@@ -20,6 +20,7 @@
"dot-notation": "error",
"eqeqeq": "error",
"guard-for-in": "error",
"indent": ["error", 2],
"no-caller": "error",
"no-case-declarations": "error",
"no-console": [
......
......@@ -69,7 +69,7 @@ function getEnv(key) {
var vendorModules = Object.keys(vendorBundles.bundles)
.reduce(function (deps, key) {
return deps.concat(vendorBundles.bundles[key]);
}, []);
}, []);
// Builds the bundles containing vendor JS code
gulp.task('build-vendor-js', function () {
......@@ -319,8 +319,7 @@ gulp.task('test-watch-app', function (callback) {
runKarma('./h/static/scripts/karma.config.js', {}, callback);
});
gulp.task('upload-sourcemaps',
['build-app-js'], function () {
gulp.task('upload-sourcemaps', ['build-app-js'], function () {
var uploadToSentry = require('./scripts/gulp/upload-to-sentry');
var opts = {
......
......@@ -14,7 +14,7 @@ var Observable = require('zen-observable');
* @param {EventTarget} src - The event source.
* @param {Array<string>} eventNames - List of events to subscribe to
*/
function listen(src, eventNames) {
function listen(src, eventNames) {
return new Observable(function (observer) {
var onNext = function (event) {
observer.next(event);
......@@ -30,7 +30,7 @@ var Observable = require('zen-observable');
});
};
});
}
}
/**
* Delay events from a source Observable by `delay` ms.
......@@ -62,7 +62,7 @@ function delay(delay, src) {
* @param {Observable<T>} src
* @return {Observable<T>}
*/
function buffer(delay, src) {
function buffer(delay, src) {
return new Observable(function (obs) {
var lastValue;
var timeout;
......@@ -84,7 +84,7 @@ function delay(delay, src) {
clearTimeout(timeout);
};
});
}
}
/**
* Merges multiple streams of values into a single stream.
......@@ -92,7 +92,7 @@ function delay(delay, src) {
* @param {Array<Observable>} sources
* @return Observable
*/
function merge(sources) {
function merge(sources) {
return new Observable(function (obs) {
var subs = sources.map(function (src) {
return src.subscribe({
......@@ -108,7 +108,7 @@ function delay(delay, src) {
});
};
});
}
}
/** Drop the first `n` events from the `src` Observable. */
function drop(src, n) {
......
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