Skip to content

Commit fea45c7

Browse files
committed
class-field-desc: prefer single quotes
Let's prefer single quotes to double quotes throughout our template file.
1 parent 8483b3f commit fea45c7

File tree

1 file changed

+29
-29
lines changed

1 file changed

+29
-29
lines changed
Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,66 +1,66 @@
1-
<section class="{{@type}}">
1+
<section class='{{@type}}'>
22
{{!-- TODO: Fix this link for a11y --}}
3-
<h3 class="class-field-description--link" data-anchor="{{@field.name}}" role="link" {{on "click" (fn this.updateAnchor @field.name)}}>
4-
<a class="anchor" {{!-- template-lint-disable link-href-attributes --}}>
5-
{{svg-jar 'fa-link' class="class-field-description--link-hover" width="20px" height="20px"}}
3+
<h3 class='class-field-description--link' data-anchor='{{@field.name}}' role='link' {{on 'click' (fn this.updateAnchor @field.name)}}>
4+
<a class='anchor' {{!-- template-lint-disable link-href-attributes --}}>
5+
{{svg-jar 'fa-link' class='class-field-description--link-hover' width='20px' height='20px'}}
66
</a>
7-
<span class="{{@type}}-name">{{@field.name}}</span>
7+
<span class='{{@type}}-name'>{{@field.name}}</span>
88
{{#if @field.params}}
9-
<span class="args">
10-
({{join ", " (map-by "name" @field.params)}})
9+
<span class='args'>
10+
({{join ', ' (map-by 'name' @field.params)}})
1111
</span>
1212
{{/if}}
1313
{{#if @field.return}}
14-
<span class="return-type">{{@field.return.type}}</span>
14+
<span class='return-type'>{{@field.return.type}}</span>
1515
{{/if}}
1616
{{#if @field.access}}
17-
<span class="access">{{@field.access}}</span>
17+
<span class='access'>{{@field.access}}</span>
1818
{{/if}}
1919
{{#if @field.deprecated}}
20-
<span class="access">deprecated</span>
20+
<span class='access'>deprecated</span>
2121
{{/if}}
2222
</h3>
2323
{{#if @model.module}}
24-
<div class="attributes">
25-
<div class="attribute">
26-
<span class="attribute-label">Module:</span>
27-
<span class="attribute-value"><LinkTo @route="project-version.modules.module" @models={{array @model.projectVersion.compactVersion @model.module}}>{{@model.module}}</LinkTo></span>
24+
<div class='attributes'>
25+
<div class='attribute'>
26+
<span class='attribute-label'>Module:</span>
27+
<span class='attribute-value'><LinkTo @route='project-version.modules.module' @models={{array @model.projectVersion.compactVersion @model.module}}>{{@model.module}}</LinkTo></span>
2828
</div>
2929
</div>
3030
{{/if}}
31-
<p class="github-link" data-test-file={{@field.file}}>
31+
<p class='github-link' data-test-file={{@field.file}}>
3232
{{#if @field.inherited}}
3333
Inherited from
34-
<a href="{{github-link @model.project.id @model.projectVersion.version @field.file @field.line}}" target="_blank" rel="noopener noreferrer">
34+
<a href='{{github-link @model.project.id @model.projectVersion.version @field.file @field.line}}' target='_blank' rel='noopener noreferrer'>
3535
{{@field.inheritedFrom}} {{@field.file}}:{{@field.line}}
3636
</a>
3737
{{else}}
3838
Defined in
39-
<a href="{{github-link @model.project.id @model.projectVersion.version @field.file @field.line}}" target="_blank" rel="noopener noreferrer">
39+
<a href='{{github-link @model.project.id @model.projectVersion.version @field.file @field.line}}' target='_blank' rel='noopener noreferrer'>
4040
{{@field.file}}:{{@field.line}}
4141
</a>
4242
{{/if}}
4343
</p>
4444
{{#if @field.since}}
45-
<p class="field-since">
45+
<p class='field-since'>
4646
Available since v{{@field.since}}
4747
</p>
4848
{{/if}}
49-
{{#if (and (eq @field.static 1) (eq @field.itemtype "method") this.hasImportExample)}}
50-
<ImportExample @item={{concat "{ " @field.name " }"}} @package={{@field.class}} />
49+
{{#if (and (eq @field.static 1) (eq @field.itemtype 'method') this.hasImportExample)}}
50+
<ImportExample @item={{concat '{ ' @field.name ' }'}} @package={{@field.class}}/>
5151
{{/if}}
52-
<dl class="parameters">
52+
<dl class='parameters'>
5353
{{#each @field.params as |param|}}
54-
<div class="parameter">
54+
<div class='parameter'>
5555
<dt>{{param.name}}</dt>
56-
<dd class="parameter-type">{{param.type}}</dd>
56+
<dd class='parameter-type'>{{param.type}}</dd>
5757
<dd>{{param.description}}</dd>
5858
{{#if param.props}}
59-
<dl class="parameters">
59+
<dl class='parameters'>
6060
{{#each param.props as |prop|}}
61-
<div class="prop">
61+
<div class='prop'>
6262
<dt>{{prop.name}}</dt>
63-
<dd class="parameter-type">{{prop.type}}</dd>
63+
<dd class='parameter-type'>{{prop.type}}</dd>
6464
<dd>{{prop.description}}</dd>
6565
</div>
6666
{{/each}}
@@ -69,12 +69,12 @@
6969
</div>
7070
{{/each}}
7171
{{#if @field.return}}
72-
<div class="return">
72+
<div class='return'>
7373
<dt>returns</dt>
74-
<dd class="return-type">{{@field.return.type}}</dd>
74+
<dd class='return-type'>{{@field.return.type}}</dd>
7575
<dd>{{@field.return.description}}</dd>
7676
</div>
7777
{{/if}}
7878
</dl>
7979
{{html-safe @field.description}}
80-
</section>
80+
</section>

0 commit comments

Comments
 (0)