DEV: Update linting (#227)

This commit is contained in:
David Taylor
2024-11-20 15:43:19 +01:00
committed by GitHub
parent e28f97a0f4
commit 119d331759
17 changed files with 315 additions and 326 deletions
@@ -1,13 +1,13 @@
{{#each adComponents as |adComponent|}}
{{#each this.adComponents as |adComponent|}}
{{! Trick to force full destroy/re-render of component when route changes }}
{{#each (array this.router.currentRoute)}}
{{component
adComponent
placement=placement
category=category
postNumber=postNumber
indexNumber=indexNumber
tagName=childTagName
placement=this.placement
category=this.category
postNumber=this.postNumber
indexNumber=this.indexNumber
tagName=this.childTagName
}}
{{/each}}
{{/each}}
@@ -1,3 +1,3 @@
{{#if showAd}}
<div id={{divId}} class={{className}}></div>
{{#if this.showAd}}
<div id={{this.divId}} class={{this.className}}></div>
{{/if}}
@@ -1,14 +1,16 @@
{{#if showAd}}
{{#if site.mobileView}}
<div class="amazon-product-links-label" style={{adTitleStyleMobile}}><h2
>{{i18n "adplugin.advertisement_label"}}</h2></div>
{{#if this.showAd}}
{{#if this.site.mobileView}}
<div
class="amazon-product-links-label"
style={{this.adTitleStyleMobile}}
><h2>{{i18n "adplugin.advertisement_label"}}</h2></div>
<iframe
style={{adWrapperStyleMobile}}
style={{this.adWrapperStyleMobile}}
marginwidth="0"
marginheight="0"
scrolling="no"
frameborder="0"
src={{userInputMobile}}
src={{this.userInputMobile}}
title={{i18n "adplugin.advertisement_label"}}
>
</iframe>
@@ -18,12 +20,12 @@
}}</h2></div>
<div class="container" align="center">
<iframe
style={{adWrapperStyle}}
style={{this.adWrapperStyle}}
marginwidth="0"
marginheight="0"
scrolling="no"
frameborder="0"
src={{userInput}}
src={{this.userInput}}
title={{i18n "adplugin.advertisement_label"}}
>
</iframe>
@@ -1,5 +1,5 @@
{{#if showAd}}
{{#if this.showAd}}
{{! template-lint-disable no-forbidden-elements }}
<script src={{url}} id="_carbonads_js" async type="text/javascript">
<script src={{this.url}} id="_carbonads_js" async type="text/javascript">
</script>
{{/if}}
@@ -1,18 +1,18 @@
{{#if showAd}}
{{#if this.showAd}}
<div class="google-adsense-label"><h2>{{i18n
"adplugin.advertisement_label"
}}</h2></div>
<div
class="google-adsense-content"
id={{if isResponsive "google-adsense__responsive"}}
style={{adWrapperStyle}}
id={{if this.isResponsive "google-adsense__responsive"}}
style={{this.adWrapperStyle}}
>
<ins
class="adsbygoogle"
style={{adInsStyle}}
data-ad-client="ca-pub-{{publisher_id}}"
data-ad-slot={{ad_code}}
data-ad-format={{autoAdFormat}}
style={{this.adInsStyle}}
data-ad-client="ca-pub-{{this.publisher_id}}"
data-ad-slot={{this.ad_code}}
data-ad-format={{this.autoAdFormat}}
>
</ins>
</div>
@@ -1,11 +1,10 @@
{{#if showAd}}
{{#if site.mobileView}}
<div class="google-dfp-ad-label" style={{adTitleStyleMobile}}><h2>{{i18n
"adplugin.advertisement_label"
}}</h2></div>
{{#if this.showAd}}
{{#if this.site.mobileView}}
<div class="google-dfp-ad-label" style={{this.adTitleStyleMobile}}><h2
>{{i18n "adplugin.advertisement_label"}}</h2></div>
<div
id={{divId}}
style={{adWrapperStyle}}
id={{this.divId}}
style={{this.adWrapperStyle}}
class="dfp-ad-unit"
align="center"
></div>
@@ -14,8 +13,8 @@
"adplugin.advertisement_label"
}}</h2></div>
<div
id={{divId}}
style={{adWrapperStyle}}
id={{this.divId}}
style={{this.adWrapperStyle}}
class="dfp-ad-unit"
align="center"
></div>
@@ -1,3 +1,3 @@
{{#if showAd}}
{{html-safe adHtml}}
{{#if this.showAd}}
{{html-safe this.adHtml}}
{{/if}}
@@ -1,6 +1,6 @@
{{ad-slot
placement="topic-list-between"
category=category.slug
indexNumber=index
category=this.category.slug
indexNumber=this.index
childTagName="td"
}}
@@ -1 +1 @@
{{ad-slot placement="topic-list-top" category=category.slug}}
{{ad-slot placement="topic-list-top" category=this.category.slug}}
@@ -1 +1,4 @@
{{ad-slot placement="topic-above-post-stream" category=model.category.slug}}
{{ad-slot
placement="topic-above-post-stream"
category=this.model.category.slug
}}
@@ -1 +1 @@
{{ad-slot placement="topic-above-suggested" category=model.category.slug}}
{{ad-slot placement="topic-above-suggested" category=this.model.category.slug}}