Skip to content

Commit eab7693

Browse files
ctjhoaRobbieTheWagner
authored andcommitted
Use double quotes everywhere (#433)
1 parent dfb896a commit eab7693

File tree

52 files changed

+287
-287
lines changed

Some content is hidden

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

52 files changed

+287
-287
lines changed

.template-lintrc.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
'use strict';
22

33
module.exports = {
4-
extends: 'recommended',
5-
rules: {
6-
quotes: 'single'
7-
}
4+
extends: 'recommended'
85
};

addon/components/api/x-class/template.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<h1 class='docs-h1' data-test-class-name>{{class.name}}</h1>
1+
<h1 class="docs-h1" data-test-class-name>{{class.name}}</h1>
22

33
{{! wrapping in a div seems to work around https://github.com/ember-learn/ember-cli-addon-docs/issues/7 }}
44
<div data-test-class-description>{{{class.description}}}</div>

addon/components/api/x-component/template.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<h1 class='docs-h1' data-test-component-name>{{component.name}}</h1>
1+
<h1 class="docs-h1" data-test-component-name>{{component.name}}</h1>
22

33
{{! wrapping in a div seems to work around https://github.com/ember-learn/ember-cli-addon-docs/issues/7 }}
44
<div data-test-component-name>{{{component.description}}}</div>
@@ -19,7 +19,7 @@
1919
deprecated=(if component.hasDeprecated showDeprecated)
2020
)
2121

22-
onToggle=(action 'updateFilter')
22+
onToggle=(action "updateFilter")
2323
}}
2424
{{/if}}
2525
{{/api/x-meta-panel}}

addon/components/api/x-section/template.hbs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
<div data-test-item class="docs-pb-8">
22
<h3
33
id={{item.name}}
4-
data-text="{{item.name}}"
4+
data-text={{item.name}}
55
data-test-item-header
66
class="docs-h3 docs-font-mono docs-font-normal"
77
>
8-
{{#if (eq item.exportType 'default')}}
8+
{{#if (eq item.exportType "default")}}
99
<span class="docs-border docs-border-grey-light docs-align-text-top docs-leading-loose docs-text-xxs docs-pl-2 docs-mr-2 docs-py-1 docs-rounded">
1010
Default
1111
</span>
1212
{{/if}}
1313

1414
{{#if (or item.isClass item.isComponent)}}
15-
{{#link-to 'docs.api.item' (concat 'modules/' item.id) class='hover:underline'}}
15+
{{#link-to "docs.api.item" (concat "modules/" item.id) class="hover:underline"}}
1616
<strong>{{item.name}}</strong>
1717
{{/link-to}}
1818
{{else}}

addon/components/api/x-toggles/template.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<input type="checkbox"
77
checked={{toggle}}
88
onclick={{action onToggle key}}
9-
class='docs-mr-1'
9+
class="docs-mr-1"
1010
>
1111

1212
{{capitalize key}}

addon/components/docs-demo/template.hbs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<div class="docs-rounded docs-border docs-border-grey-lighter docs-my-8 {{class}}">
22

33
{{yield (hash
4-
example=(component 'docs-demo/x-example')
5-
snippet=(component 'docs-demo/x-snippet' did-init=(action 'registerSnippet') activeSnippet=activeSnippet)
4+
example=(component "docs-demo/x-example")
5+
snippet=(component "docs-demo/x-snippet" did-init=(action "registerSnippet") activeSnippet=activeSnippet)
66
)}}
77

88
<div>
@@ -13,15 +13,15 @@
1313
docs-border-grey-darkest
1414
">
1515
{{#each snippets as |snippet|}}
16-
<button {{action 'selectSnippet' snippet}}
17-
class='
16+
<button {{action "selectSnippet" snippet}}
17+
class="
1818
docs-mr-4 docs-text-xs docs-no-underline outline-none
1919
hover:docs-text-grey-lighter
2020
{{if snippet.isActive
21-
'docs-text-grey-lighter'
22-
'docs-text-grey-dark'
21+
"docs-text-grey-lighter"
22+
"docs-text-grey-dark"
2323
}}
24-
'
24+
"
2525
>
2626
{{snippet.label}}
2727
</button>

addon/components/docs-header/link/template.hbs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
{{#if href}}
22

33
<a href={{href}}
4-
class='
4+
class="
55
docs-px-4 docs-py-5 docs-transition docs-uppercase docs-text-xxs docs-font-bold
66
docs-text-grey-darkest docs-no-underline hover:docs-text-brand
7-
{{if push 'docs-ml-auto'}}
8-
'
7+
{{if push "docs-ml-auto"}}
8+
"
99
data-test-id={{data-test-id}}>
1010
{{yield}}
1111
</a>
1212

1313
{{else if on-click}}
1414

1515
<a {{action on-click}}
16-
href='#'
17-
class='
16+
href="#"
17+
class="
1818
docs-px-4 docs-py-5 docs-transition docs-uppercase docs-text-xxs docs-font-bold
1919
docs-text-grey-darkest docs-no-underline hover:docs-text-brand
20-
{{if push 'docs-ml-auto'}}
21-
'
20+
{{if push "docs-ml-auto"}}
21+
"
2222
data-test-id={{data-test-id}}>
2323
{{yield}}
2424
</a>
@@ -27,14 +27,14 @@
2727

2828
{{#link-to route
2929
class=(concat
30-
'docs-px-4 docs-py-5 docs-transition docs-uppercase docs-text-xxs
31-
docs-font-bold docs-no-underline '
32-
(if (not (eq route 'index'))
30+
"docs-px-4 docs-py-5 docs-transition docs-uppercase docs-text-xxs
31+
docs-font-bold docs-no-underline "
32+
(if (not (eq route "index"))
3333
(if isActive
34-
'docs-text-brand'
35-
'docs-text-grey-darkest hover:docs-text-brand'
34+
"docs-text-brand"
35+
"docs-text-grey-darkest hover:docs-text-brand"
3636
)
37-
'docs-text-grey-darkest'
37+
"docs-text-grey-darkest"
3838
)
3939
)
4040
data-test-id=data-test-id

addon/components/docs-header/search-box/template.hbs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
<div class='docs-relative docs-text-grey-darkest' data-search-box>
2-
{{svg-jar 'search' width=12 height=12 class='docs-absolute docs-pin-t docs-h-full docs-ml-1'}}
1+
<div class="docs-relative docs-text-grey-darkest" data-search-box>
2+
{{svg-jar "search" width=12 height=12 class="docs-absolute docs-pin-t docs-h-full docs-ml-1"}}
33

44
{{!--
55
This is a dumb input - so why not use the {{input}} helper? Because apparently
66
it takes over enter and ctrl+n/p keys. We are using those for our own shortcuts
77
so we stick with the dumb html element. Maybe there's a way to disable them
88
and get the convenient two-way binding.
99
--}}
10-
<input oninput={{action on-input value='target.value'}}
10+
<input oninput={{action on-input value="target.value"}}
1111
value={{query}}
1212
type="text"
1313
disabled={{fetchProject.isRunning}}
14-
placeholder='SEARCH'
15-
class='docs-w-24 docs-text-xxs docs-p-2 docs-pl-6 docs-rounded focus:docs-bg-grey-lighter outline-none'
14+
placeholder="SEARCH"
15+
class="docs-w-24 docs-text-xxs docs-p-2 docs-pl-6 docs-rounded focus:docs-bg-grey-lighter outline-none"
1616
data-search-box-input
1717
data-test-search-box-input
1818
aria-label="search">

addon/components/docs-header/search-result/template.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
}}
88
<div class="docs-flex docs-items-center">
99
{{svg-jar icon height=28 width=28 class="docs-mr-2 docs-flex-no-shrink"}}
10-
<span class='docs-truncate'>
10+
<span class="docs-truncate">
1111
{{#if titleMatchesQuery}}
1212
{{{highlightedTitle}}}
1313
{{else}}
@@ -17,7 +17,7 @@
1717
</div>
1818

1919
{{#if (not titleMatchesQuery)}}
20-
<small class='docs-text-grey-dark docs-inline-block'>
20+
<small class="docs-text-grey-dark docs-inline-block">
2121
{{{bestMatch}}}
2222
</small>
2323
{{/if}}

addon/components/docs-header/search-results/template.hbs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{{#if (and trimmedQuery search.isIdle)}}
22
{{#modal-dialog
3-
tetherTarget='[data-search-box]'
4-
attachment='top left'
3+
tetherTarget="[data-search-box]"
4+
attachment="top left"
55
clickOutsideToClose=true
6-
onClose=(action 'clearSearch')
7-
targetAttachment='bottom left'
8-
constraints=(array (hash to='window' attachment='together' pin=true))}}
6+
onClose=(action "clearSearch")
7+
targetAttachment="bottom left"
8+
constraints=(array (hash to="window" attachment="together" pin=true))}}
99

1010
<ul class="docs-w-76 docs-bg-white docs-shadow-md docs-list-reset" data-test-search-result-list>
1111
{{#each (take 5 searchResults) as |result index|}}
@@ -14,11 +14,11 @@
1414
result=result
1515
query=query
1616
selected=(eq index selectedIndex)
17-
on-mouse-enter=(action 'selectResult' index)
18-
on-click=(action 'clearSearch')}}
17+
on-mouse-enter=(action "selectResult" index)
18+
on-click=(action "clearSearch")}}
1919
</li>
2020
{{else}}
21-
<li class='docs-block docs-py-1 docs-px-3 docs-text-grey-dark docs-no-underline'>
21+
<li class="docs-block docs-py-1 docs-px-3 docs-text-grey-dark docs-no-underline">
2222
No results.
2323
</li>
2424
{{/each}}

0 commit comments

Comments
 (0)