Skip to content

Commit ad497ca

Browse files
renovate-botjridgewell
authored andcommitted
πŸ“¦ Update dependency prettier to v1.19.1 (ampproject#25524)
* πŸ“¦ Update dependency prettier to v1.19.1 * `gulp lint --fix`
1 parent b203bba commit ad497ca

File tree

41 files changed

+489
-243
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+489
-243
lines changed

β€Žads/adform.jsβ€Ž

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,10 @@ export function adform(global, data) {
3838

3939
// Custom ad url using "data-src" attribute
4040
if (src) {
41-
validateSrcPrefix(Object.keys(hosts).map(type => hosts[type]), src);
41+
validateSrcPrefix(
42+
Object.keys(hosts).map(type => hosts[type]),
43+
src
44+
);
4245
url = src;
4346
}
4447
// Ad tag using "data-bn" attribute

β€Žads/blade.jsβ€Ž

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,7 @@ export function blade(global, data) {
3838
macros.width = data.width;
3939
macros.height = data.height;
4040

41-
const containerId = `player-${data['blade_api_key']}-${
42-
data['blade_player_id']
43-
}`;
41+
const containerId = `player-${data['blade_api_key']}-${data['blade_player_id']}`;
4442
createContainer(containerId);
4543

4644
const bladeConfig = `_bladeConfig-${containerId}`;
@@ -71,11 +69,7 @@ export function blade(global, data) {
7169

7270
loadScript(
7371
global,
74-
`https://${servingDomain}/js/${data['blade_api_key']}/${
75-
data['blade_player_id']
76-
}/player.js?t=${
77-
data['blade_player_type']
78-
}&callback=${bladeOnLoad}&config=${bladeConfig}&c=${containerId}`,
72+
`https://${servingDomain}/js/${data['blade_api_key']}/${data['blade_player_id']}/player.js?t=${data['blade_player_type']}&callback=${bladeOnLoad}&config=${bladeConfig}&c=${containerId}`,
7973
undefined,
8074
() => {
8175
global.context.noContentAvailable();

β€Žads/google/a4a/test/test-line-delimited-response-handler.jsβ€Ž

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,10 @@ describe('#line-delimited-response-handler', () => {
203203
it.configure().skipSafari(
204204
'should handle multiple no fill responses properly',
205205
() => {
206-
slotData = [{headers: {}, creative: ''}, {headers: {}, creative: ''}];
206+
slotData = [
207+
{headers: {}, creative: ''},
208+
{headers: {}, creative: ''},
209+
];
207210
setup();
208211
return executeAndVerifyResponse();
209212
}

β€Žads/google/a4a/test/test-utils.jsβ€Ž

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1093,13 +1093,14 @@ describes.realWin('#groupAmpAdsByType', {amp: true}, env => {
10931093
expect(result['bar'].length).to.equal(2);
10941094
expect(result['hello']).to.be.ok;
10951095
expect(result['hello'].length).to.equal(1);
1096-
return Promise.all(result['bar'].concat(result['hello'])).then(
1097-
baseElements =>
1098-
baseElements.forEach(baseElement =>
1099-
expect(baseElement.element.getAttribute('type')).to.equal(
1100-
'doubleclick'
1101-
)
1096+
return Promise.all(
1097+
result['bar'].concat(result['hello'])
1098+
).then(baseElements =>
1099+
baseElements.forEach(baseElement =>
1100+
expect(baseElement.element.getAttribute('type')).to.equal(
1101+
'doubleclick'
11021102
)
1103+
)
11031104
);
11041105
});
11051106
});

β€Žads/onnetwork.jsβ€Ž

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,10 @@ export function onnetwork(global, data) {
3636

3737
// Custom movie url using "data-src" attribute
3838
if (src) {
39-
validateSrcPrefix(Object.keys(hosts).map(type => hosts[type]), src);
39+
validateSrcPrefix(
40+
Object.keys(hosts).map(type => hosts[type]),
41+
src
42+
);
4043
url = src;
4144
}
4245
// Movie tag using "data-sid" attribute

β€Žads/speakol.jsβ€Ž

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@ export function speakol(global, data) {
3737

3838
loadScript(
3939
global,
40-
`https://crawler.speakol.com/sdk/speakol-widget.js?wid=wi-${
41-
data['widgetid']
42-
}&eid=spk-wi-${data['widgetid']}`
40+
`https://crawler.speakol.com/sdk/speakol-widget.js?wid=wi-${data['widgetid']}&eid=spk-wi-${data['widgetid']}`
4341
);
4442
}

β€Žbuild-system/compile/single-pass.jsβ€Ž

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -719,7 +719,12 @@ function compile(flagsArray) {
719719
.pipe(gulpIf(!argv.pseudo_names, checkForUnknownDeps()))
720720
.on('error', reject)
721721
.pipe(sourcemaps.write('.'))
722-
.pipe(gulpIf(/(\/amp-|\/_base)/, rename(path => (path.dirname += '/v0'))))
722+
.pipe(
723+
gulpIf(
724+
/(\/amp-|\/_base)/,
725+
rename(path => (path.dirname += '/v0'))
726+
)
727+
)
723728
.pipe(gulp.dest('.'))
724729
.on('end', resolve);
725730
});

β€Žbuild-system/tasks/e2e/puppeteer-controller.jsβ€Ž

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,9 @@ class PuppeteerController {
523523
try {
524524
const {windowId} = await browser._connection.send(
525525
'Browser.getWindowForTarget',
526-
{targetId}
526+
{
527+
targetId,
528+
}
527529
);
528530

529531
// Resize.

β€Žbuild-system/tasks/get-zindex/index.jsβ€Ž

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@ const postcss = require('postcss');
2222
const table = require('text-table');
2323
const through = require('through2');
2424

25-
const tableHeaders = [['selector', 'z-index', 'file'], ['---', '---', '---']];
25+
const tableHeaders = [
26+
['selector', 'z-index', 'file'],
27+
['---', '---', '---'],
28+
];
2629

2730
const tableOptions = {
2831
align: ['l', 'l', 'l'],

β€Žbuild-system/tasks/lint.jsβ€Ž

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,7 @@ const rootDir = path.dirname(path.dirname(__dirname));
4848
function initializeStream(globs, streamOptions) {
4949
let stream = gulp.src(globs, streamOptions);
5050
if (isWatching) {
51-
const watcher = lazypipe().pipe(
52-
watch,
53-
globs
54-
);
51+
const watcher = lazypipe().pipe(watch, globs);
5552
stream = stream.pipe(watcher());
5653
}
5754
return stream;

0 commit comments

Comments
Β (0)