Skip to content

Commit

Permalink
šŸ›šŸ— Indentation fixes based on the new (more accurate) eslint implemā€¦
Browse files Browse the repository at this point in the history
ā€¦entation of the `indent` rule (#16736)
  • Loading branch information
rsimha authored Jul 14, 2018
1 parent ec8e691 commit 920e13f
Show file tree
Hide file tree
Showing 25 changed files with 195 additions and 195 deletions.
2 changes: 1 addition & 1 deletion 3p/iframe-transport-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export class IframeTransportClient {
return this.creativeIdToContext_[creativeId] ||
(this.creativeIdToContext_[creativeId] =
new IframeTransportContext(this.win_, this.iframeMessagingClient_,
creativeId, this.vendor_));
creativeId, this.vendor_));
}

/**
Expand Down
2 changes: 1 addition & 1 deletion ads/google/a4a/experiment-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export class ExperimentUtils {
maybeSelectExperiment(
win, element, selectionBranches, experimentName) {
const experimentInfoMap =
/** @type {!Object<string, !ExperimentInfo>} */ ({});
/** @type {!Object<string, !ExperimentInfo>} */ ({});
experimentInfoMap[experimentName] = {
isTrafficEligible: () => true,
branches: selectionBranches,
Expand Down
2 changes: 1 addition & 1 deletion ads/google/a4a/line-delimited-response-handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export function metaJsonCreativeGrouper(callback) {
return function(line, done) {
if (first) {
const metadata =
/** @type {!Object<string, *>} */(tryParseJson(first) || {});
/** @type {!Object<string, *>} */(tryParseJson(first) || {});
const lowerCasedMetadata =
Object.keys(metadata).reduce((newObj, key) => {
newObj[key.toLowerCase()] = metadata[key];
Expand Down
2 changes: 1 addition & 1 deletion ads/google/a4a/url-builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export function buildUrl(
if (fullLength > capacity) {
const truncatedValue = encodedValue
.substr(0, capacity - encodedNameAndSep.length - 1)
// Don't end with a partially truncated escape sequence
// Don't end with a partially truncated escape sequence
.replace(/%\w?$/, '');
if (truncatedValue) {
encodedParams.push(encodedNameAndSep + truncatedValue);
Expand Down
4 changes: 2 additions & 2 deletions ads/nativo.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ export function nativo(global, data) {
setPercentageOfadViewed(
(((coordinates.intersectionRect
.height * 100) / coordinates
.boundingClientRect
.height) / 100));
.boundingClientRect
.height) / 100));
global.PostRelease.checkIsAdVisible();
}
// Public
Expand Down
2 changes: 1 addition & 1 deletion build-system/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ module.exports = {
'**/*.js',
'!**/*.extern.js',
'!{node_modules,build,dist,dist.3p,dist.tools,' +
'third_party}/**/*.*',
'third_party,test/coverage}/**/*.*',
'!examples/**/*.*',
'!{validator/dist,validator/webui/dist,' +
'validator/node_modules,validator/nodejs/node_modules,' +
Expand Down
2 changes: 1 addition & 1 deletion extensions/amp-a4a/0.1/template-validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export class TemplateValidator extends Validator {
}

const parsedResponseBody =
/** @type {!./amp-ad-type-defs.AmpTemplateCreativeDef} */ (
/** @type {!./amp-ad-type-defs.AmpTemplateCreativeDef} */ (
tryParseJson(body) || {});
return getAmpAdTemplateHelper(context.win)
.fetch(parsedResponseBody.templateUrl)
Expand Down
2 changes: 1 addition & 1 deletion extensions/amp-ad-exit/0.1/amp-ad-exit.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export class AmpAdExit extends AMP.BaseElement {
continue;
}
const customVar =
/** @type {!./config.VariableDef} */ (target.vars[customVarName]);
/** @type {!./config.VariableDef} */ (target.vars[customVarName]);
if (!customVar) {
continue;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ export class AmpAdNetworkAdsenseImpl extends AmpA4A {
*/
divertExperiments() {
const experimentInfoMap =
/** @type {!Object<string,
/** @type {!Object<string,
!../../../src/experiments.ExperimentInfo>} */ ({
[FORMAT_EXP]: {
isTrafficEligible: () => !this.isResponsive_() &&
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export class AmpAdNetworkFakeImpl extends AmpA4A {
return null;
}
const {status, headers} =
/** @type {{status: number, headers: !Headers}} */ (response);
/** @type {{status: number, headers: !Headers}} */ (response);

// In the convert creative mode the content is the plain AMP HTML.
// This mode is primarily used for A4A Envelop for testing.
Expand Down
24 changes: 12 additions & 12 deletions extensions/amp-analytics/0.1/iframe-transport.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,22 +174,22 @@ export class IframeTransport {
// TODO(jonkeller): Consider merging with jank-meter.js
IframeTransport.performanceObservers_[this.type_] =
new this.ampWin_.PerformanceObserver(entryList => {
if (!entryList) {
return;
}
entryList.getEntries().forEach(entry => {
if (entry && entry['entryType'] == 'longtask' &&
if (!entryList) {
return;
}
entryList.getEntries().forEach(entry => {
if (entry && entry['entryType'] == 'longtask' &&
(entry['name'] == 'cross-origin-descendant') &&
entry.attribution) {
entry.attribution.forEach(attrib => {
if (this.frameUrl_ == attrib.containerSrc &&
entry.attribution.forEach(attrib => {
if (this.frameUrl_ == attrib.containerSrc &&
++this.numLongTasks_ % LONG_TASK_REPORTING_THRESHOLD == 0) {
user().error(TAG_, `Long Task: Vendor: "${this.type_}"`);
}
});
}
user().error(TAG_, `Long Task: Vendor: "${this.type_}"`);
}
});
}
});
});
});
IframeTransport.performanceObservers_[this.type_].observe({
entryTypes: ['longtask'],
});
Expand Down
2 changes: 1 addition & 1 deletion extensions/amp-analytics/0.1/vendors.js
Original file line number Diff line number Diff line change
Expand Up @@ -2204,7 +2204,7 @@ ANALYTICS_CONFIG['infonline']['triggers']['pageview']['iframe' +

ANALYTICS_CONFIG['adobeanalytics_nativeConfig']
['triggers']['pageLoad']['iframe' +
/* TEMPORARY EXCEPTION */ 'Ping'] = true;
/* TEMPORARY EXCEPTION */ 'Ping'] = true;

ANALYTICS_CONFIG['oewa']['triggers']['pageview']['iframe' +
/* TEMPORARY EXCEPTION */ 'Ping'] = true;
Expand Down
2 changes: 1 addition & 1 deletion extensions/amp-next-page/0.1/next-page-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ export class NextPageService {
this.resources_ = Services.resourcesForDoc(ampDoc);
this.multidocManager_ =
new MultidocManager(win, Services.ampdocServiceFor(win),
Services.extensionsFor(win), Services.timerFor(win));
Services.extensionsFor(win), Services.timerFor(win));

installPositionObserverServiceForDoc(ampDoc);
this.positionObserver_ = getServiceForDoc(ampDoc, 'position-observer');
Expand Down
Loading

0 comments on commit 920e13f

Please sign in to comment.