Skip to content

Commit 243af27

Browse files
committed
run lint:fix
1 parent e56fcd8 commit 243af27

File tree

9 files changed

+121
-115
lines changed

9 files changed

+121
-115
lines changed

app/components/class-field-description.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<span class='access'>deprecated</span>
1717
{{/if}}
1818
{{!-- TODO: Fix this link for a11y --}}
19-
<a class='class-field-description--link' data-test-anchor="{{@field.name}}" role='link' {{on 'click' (fn this.updateAnchor @field.name)}} {{!-- template-lint-disable link-href-attributes --}}>
19+
<a class='class-field-description--link' data-test-anchor="{{@field.name}}" {{on 'click' (fn this.updateAnchor @field.name)}} {{!-- template-lint-disable link-href-attributes --}}>
2020
{{svg-jar 'link' width='20px' height='20px'}}
2121
</a>
2222
</h3>

app/deprecation-workflow.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,12 @@ setupDeprecationWorkflow({
1111
handler: 'throw',
1212
matchId: 'deprecated-run-loop-and-computed-dot-access',
1313
},
14-
{ handler: "silence", matchId: "ember-data:deprecate-non-strict-relationships" },
15-
{ handler: "silence", matchId: "ember-data:deprecate-store-find" },
16-
{ handler: "silence", matchId: "remove-owner-inject" },
17-
{ handler: "silence", matchId: "ember-polyfills.deprecate-assign" }
14+
{
15+
handler: 'silence',
16+
matchId: 'ember-data:deprecate-non-strict-relationships',
17+
},
18+
{ handler: 'silence', matchId: 'ember-data:deprecate-store-find' },
19+
{ handler: 'silence', matchId: 'remove-owner-inject' },
20+
{ handler: 'silence', matchId: 'ember-polyfills.deprecate-assign' },
1821
],
1922
});

app/routes/project-version/namespaces/namespace.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,21 @@ export default class NamespaceRoute extends ClassRoute.extend(ScrollTracker) {
1212
const { project, project_version: compactVersion } =
1313
this.paramsFor('project-version');
1414

15-
let projectRecord = await this.store.findRecord('project', project.toLowerCase());
15+
let projectRecord = await this.store.findRecord(
16+
'project',
17+
project.toLowerCase()
18+
);
1619
let projectVersion = getFullVersion(
1720
compactVersion,
1821
project,
1922
projectRecord,
2023
this.metaStore
2124
);
2225
const klass = params['namespace'];
23-
return this.find('namespace', `${project}-${projectVersion}-${klass}`.toLowerCase());
26+
return this.find(
27+
'namespace',
28+
`${project}-${projectVersion}-${klass}`.toLowerCase()
29+
);
2430
}
2531

2632
serialize(model) {

app/styles/app.css

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -56,22 +56,23 @@ main a.edit-icon {
5656
background: none;
5757
}
5858

59-
.sub-table-of-contents .toc-item a {
59+
.sub-table-of-contents .toc-item a {
6060
display: block;
6161
padding: var(--spacing-1);
6262
border-radius: var(--radius);
6363
line-height: var(--line-height-xs);
6464
color: var(--color-gray-700);
6565
border-left: 0 solid transparent;
66-
transition: border-width .3s;
66+
transition: border-width 0.3s;
6767
}
6868

6969
.sub-table-of-contents .toc-item a:hover {
7070
border-left: 4px solid var(--color-gray-400);
7171
border-radius: 0;
7272
}
7373

74-
.sub-table-of-contents .toc-item.selected > a, .sub-table-of-contents .toc-item > a.active {
74+
.sub-table-of-contents .toc-item.selected > a,
75+
.sub-table-of-contents .toc-item > a.active {
7576
border-left: 4px solid var(--color-brand-hc-dark);
7677
border-radius: 0;
7778
}
@@ -109,19 +110,23 @@ a.class-field-description--link:hover svg {
109110
fill: var(--color-brand);
110111
}
111112

112-
113-
114-
.parameter, .return {
113+
.parameter,
114+
.return {
115115
display: flex;
116116
gap: var(--spacing-1);
117117
}
118-
.parameter dt, .return dt {
118+
119+
.parameter dt,
120+
.return dt {
119121
font-weight: bold;
120122
}
123+
121124
dd {
122125
margin: 0;
123126
}
124-
.parameter-type, .return .return-type {
127+
128+
.parameter-type,
129+
.return .return-type {
125130
font-style: italic;
126131
color: var(--color-gray-600);
127132
}
@@ -130,15 +135,15 @@ dd {
130135
display: flex;
131136
justify-content: center;
132137
align-items: center;
133-
padding: var(--spacing-6)
138+
padding: var(--spacing-6);
134139
}
135140

136141
.whoops img {
137-
width: 240px;
138-
margin: var(--spacing-2);
142+
width: 240px;
143+
margin: var(--spacing-2);
139144
}
140145

141-
@media (min-width: 845px) {
146+
@media (width >= 845px) {
142147
.es-header {
143148
padding: 0 var(--spacing-4);
144149
justify-content: start;
@@ -154,7 +159,7 @@ dd {
154159
}
155160
}
156161

157-
@media (max-width: 450px) {
162+
@media (width <= 450px) {
158163
.whoops {
159164
flex-direction: column;
160165
padding: var(--spacing-3);

prember-urls.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
const { readdirSync, existsSync } = require('fs');
22
const cmp = require('semver-compare');
3-
// eslint-disable-next-line node/no-extraneous-require
43
const semver = require('semver');
54

65
function partialUrlEncode(input) {

tests/acceptance/convert-legacy-url-to-current-test.js

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,7 @@ module('Acceptance | convert legacy url to current', function (hooks) {
77

88
test('should convert url for legacy Ember class', async function (assert) {
99
await visit('/classes/Ember.Application.html');
10-
assert.equal(
11-
currentURL(),
12-
'/ember/release/classes/Application'
13-
);
10+
assert.equal(currentURL(), '/ember/release/classes/Application');
1411
});
1512

1613
test('should convert url for legacy Ember class to function', async function (assert) {
@@ -23,18 +20,12 @@ module('Acceptance | convert legacy url to current', function (hooks) {
2320

2421
test('should convert url for legacy ember data class', async function (assert) {
2522
await visit('/data/classes/DS.Adapter.html');
26-
assert.equal(
27-
currentURL(),
28-
'/ember-data/release/classes/Adapter'
29-
);
23+
assert.equal(currentURL(), '/ember-data/release/classes/Adapter');
3024
});
3125

3226
test('should convert url for legacy ember module', async function (assert) {
3327
await visit('/modules/ember-application.html');
34-
assert.equal(
35-
currentURL(),
36-
'/ember/release/modules/@ember%2Fapplication'
37-
);
28+
assert.equal(currentURL(), '/ember/release/modules/@ember%2Fapplication');
3829
});
3930

4031
test('should convert url for legacy ember data module to overview', async function (assert) {

tests/integration/components/api-index-filter-test.js

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ module('Integration | Component | api index filter', function (hooks) {
8686
};
8787

8888
await render(hbs`
89-
{{#api-index-filter model=this.model filterData=this.filterData as |myModel|}}
89+
<ApiIndexFilter @model={{this.model}} @filterData={{this.filterData}} as |myModel|>
9090
<section>
9191
Show:
9292
<label class="access-checkbox">
@@ -97,31 +97,31 @@ module('Integration | Component | api index filter', function (hooks) {
9797
Inherited
9898
</label>
9999
<label class="access-checkbox">
100-
<input id=\"protected-toggle\"
101-
type=\"checkbox\"
100+
<input id="protected-toggle"
101+
type="checkbox"
102102
checked={{this.filterData.showProtected}}
103-
onchange={{action "updateFilter" \"showProtected\"}}>
103+
onchange={{action "updateFilter" "showProtected"}}>
104104
Protected
105105
</label>
106106
<label class="access-checkbox">
107-
<input id=\"private-toggle\"
108-
type=\"checkbox\"
107+
<input id="private-toggle"
108+
type="checkbox"
109109
checked={{this.sectionData.showPrivate}}
110-
onchange={{action \"updateFilter\" \"showPrivate\"}}>
110+
onchange={{action "updateFilter" "showPrivate"}}>
111111
Private
112112
</label>
113113
<label class="access-checkbox">
114-
<input id=\"deprecated-toggle\"
115-
type=\"checkbox\"
116-
checked=\"{{this.sectionData.showDeprecated}}\"
117-
onchange={{action \"updateFilter\" \"showDeprecated\"}}>
114+
<input id="deprecated-toggle"
115+
type="checkbox"
116+
checked={{this.sectionData.showDeprecated}}
117+
onchange={{action "updateFilter" "showDeprecated"}}>
118118
</label>
119119
</section>
120120
<h2>Methods</h2>
121121
{{#each myModel.methods as |method|}}
122-
<p class=\"method-name\">{{method.name}}</p>
122+
<p class="method-name">{{method.name}}</p>
123123
{{/each}}
124-
{{/api-index-filter}}
124+
</ApiIndexFilter>
125125
`);
126126

127127
await click('#inherited-toggle');
@@ -151,7 +151,7 @@ module('Integration | Component | api index filter', function (hooks) {
151151
};
152152

153153
await render(hbs`
154-
{{#api-index-filter model=this.model filterData=this.filterData updateFilter=(action "updateFilter") as |myModel|}}
154+
<ApiIndexFilter @model={{this.model}} @filterData={{this.filterData}} @updateFilter={{action "updateFilter"}} as |myModel|>
155155
<section>
156156
Show:
157157
<label class="access-checkbox">
@@ -162,10 +162,10 @@ module('Integration | Component | api index filter', function (hooks) {
162162
Inherited
163163
</label>
164164
<label class="access-checkbox">
165-
<input id=\"protected-toggle\"
166-
type=\"checkbox\"
165+
<input id="protected-toggle"
166+
type="checkbox"
167167
checked={{this.filterData.showProtected}}
168-
onchange={{action "updateFilter" \"showProtected\"}}>
168+
onchange={{action "updateFilter" "showProtected"}}>
169169
Protected
170170
</label>
171171
<label class="access-checkbox">
@@ -176,17 +176,17 @@ module('Integration | Component | api index filter', function (hooks) {
176176
Private
177177
</label>
178178
<label class="access-checkbox">
179-
<input id=\"deprecated-toggle\"
180-
type=\"checkbox\"
181-
checked=\"{{this.sectionData.showDeprecated}}\"
182-
onchange={{action \"updateFilter\" \"showDeprecated\"}}>
179+
<input id="deprecated-toggle"
180+
type="checkbox"
181+
checked={{this.sectionData.showDeprecated}}
182+
onchange={{action "updateFilter" "showDeprecated"}}>
183183
</label>
184184
</section>
185185
<h2>Methods</h2>
186186
{{#each myModel.methods as |method|}}
187-
<p class=\"method-name\">{{method.name}}</p>
187+
<p class="method-name">{{method.name}}</p>
188188
{{/each}}
189-
{{/api-index-filter}}
189+
</ApiIndexFilter>
190190
`);
191191

192192
await click('#private-toggle');
@@ -216,7 +216,7 @@ module('Integration | Component | api index filter', function (hooks) {
216216
};
217217

218218
await render(hbs`
219-
{{#api-index-filter model=this.model filterData=this.filterData as |myModel|}}
219+
<ApiIndexFilter @model={{this.model}} @filterData={{this.filterData}} as |myModel|>
220220
<section>
221221
Show:
222222
<label class="access-checkbox">
@@ -227,10 +227,10 @@ module('Integration | Component | api index filter', function (hooks) {
227227
Inherited
228228
</label>
229229
<label class="access-checkbox">
230-
<input id=\"protected-toggle\"
231-
type=\"checkbox\"
230+
<input id="protected-toggle"
231+
type="checkbox"
232232
checked={{this.filterData.showProtected}}
233-
onchange={{action "updateFilter" \"showProtected\"}}>
233+
onchange={{action "updateFilter" "showProtected"}}>
234234
Protected
235235
</label>
236236
<label class="access-checkbox">
@@ -241,17 +241,17 @@ module('Integration | Component | api index filter', function (hooks) {
241241
Private
242242
</label>
243243
<label class="access-checkbox">
244-
<input id=\"deprecated-toggle\"
245-
type=\"checkbox\"
246-
checked=\"{{this.sectionData.showDeprecated}}\"
247-
onchange={{action \"updateFilter\" \"showDeprecated\"}}>
244+
<input id="deprecated-toggle"
245+
type="checkbox"
246+
checked="{{this.sectionData.showDeprecated}}"
247+
onchange={{action "updateFilter" "showDeprecated"}}>
248248
</label>
249249
</section>
250250
<h2>Methods</h2>
251251
{{#each myModel.methods as |method|}}
252-
<p class=\"method-name\">{{method.name}}</p>
252+
<p class="method-name">{{method.name}}</p>
253253
{{/each}}
254-
{{/api-index-filter}}
254+
</ApiIndexFilter>
255255
`);
256256

257257
await click('#private-toggle');
@@ -285,7 +285,7 @@ module('Integration | Component | api index filter', function (hooks) {
285285
};
286286

287287
await render(hbs`
288-
{{#api-index-filter model=this.model filterData=this.filterData as |myModel|}}
288+
<ApiIndexFilter @model={{this.model}} @filterData={{this.filterData}} as |myModel|>
289289
<section>
290290
Show:
291291
<label class="access-checkbox">
@@ -318,9 +318,9 @@ module('Integration | Component | api index filter', function (hooks) {
318318
</section>
319319
<h2>Methods</h2>
320320
{{#each myModel.methods as |method|}}
321-
<p class=\"method-name\">{{method.name}}</p>
321+
<p class="method-name">{{method.name}}</p>
322322
{{/each}}
323-
{{/api-index-filter}}
323+
</ApiIndexFilter>
324324
`);
325325

326326
await click('#private-toggle');
@@ -362,7 +362,7 @@ module('Integration | Component | api index filter', function (hooks) {
362362
};
363363

364364
await render(hbs`
365-
{{#api-index-filter model=this.model filterData=this.filterData as |myModel|}}
365+
<ApiIndexFilter @model={{this.model}} @filterData={{this.filterData}} as |myModel|>
366366
<section>
367367
Show:
368368
<label class="access-checkbox">
@@ -395,9 +395,9 @@ module('Integration | Component | api index filter', function (hooks) {
395395
</section>
396396
<h2>Methods</h2>
397397
{{#each myModel.methods as |method|}}
398-
<p class=\"method-name\">{{method.name}}</p>
398+
<p class="method-name">{{method.name}}</p>
399399
{{/each}}
400-
{{/api-index-filter}}
400+
</ApiIndexFilter>
401401
`);
402402

403403
assert
@@ -444,12 +444,12 @@ module('Integration | Component | api index filter', function (hooks) {
444444
this.set('filterData', filterData);
445445

446446
await render(hbs`
447-
{{#api-index-filter model=this.model filterData=this.filterData as |myModel|}}
447+
<ApiIndexFilter @model={{this.model}} @filterData={{this.filterData}} as |myModel|>
448448
<h2>Methods</h2>
449449
{{#each myModel.methods as |method|}}
450-
<p class=\"method-name\">{{method.name}}</p>
450+
<p class="method-name">{{method.name}}</p>
451451
{{/each}}
452-
{{/api-index-filter}}
452+
</ApiIndexFilter>
453453
`);
454454
assert
455455
.dom('.method-name')

0 commit comments

Comments
 (0)