Skip to content

Commit 16c24b6

Browse files
committed
run lint:fix
1 parent e56fcd8 commit 16c24b6

File tree

5 files changed

+37
-32
lines changed

5 files changed

+37
-32
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);

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) {

0 commit comments

Comments
 (0)