Skip to content

Commit 28e1c01

Browse files
committed
Run updated prettier
1 parent 6a0f49d commit 28e1c01

Some content is hidden

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

49 files changed

+209
-206
lines changed

.github/workflows/gh-pages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- uses: pnpm/action-setup@v4
1616
- uses: actions/setup-node@v4
1717
with:
18-
cache: 'pnpm'
18+
cache: "pnpm"
1919
node-version: 20
2020
- run: pnpm i --frozen-lockfile
2121
- run: npx lint-to-the-future output -o lttfOutput --rootUrl ember-api-docs --previous-results https://ember-learn.github.io/ember-api-docs/data.json

app.json

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"name": "ember-api-docs",
3-
"scripts": {
4-
},
3+
"scripts": {},
54
"env": {
65
"FASTLY_API_KEY": {
76
"required": false
@@ -16,10 +15,8 @@
1615
"required": false
1716
}
1817
},
19-
"formation": {
20-
},
21-
"addons": [
22-
],
18+
"formation": {},
19+
"addons": [],
2320
"buildpacks": [
2421
{
2522
"url": "https://buildpack-registry.s3.amazonaws.com/buildpacks/aedev/emberjs.tgz"

app/adapters/application.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export default class Application extends JSONAPIAdapter {
5656
if (typeof revId !== 'undefined') {
5757
let encodedRevId = encodeURIComponent(revId);
5858
url = `json-docs/${projectName}/${version}/${pluralize(
59-
modelNameToUse
59+
modelNameToUse,
6060
)}/${encodedRevId}`;
6161
} else {
6262
throw new Error('Documentation item not found');
@@ -65,7 +65,7 @@ export default class Application extends JSONAPIAdapter {
6565
let version = this.projectService.version;
6666
let revId = this.metaStore.getRevId(projectName, version, modelName, id);
6767
url = `json-docs/${projectName}/${version}/${pluralize(
68-
modelName
68+
modelName,
6969
)}/${revId}`;
7070
} else if (modelName === 'project') {
7171
this.currentProject = id;
@@ -86,7 +86,7 @@ export default class Application extends JSONAPIAdapter {
8686
let response = await fetch(url);
8787
if (!response.ok) {
8888
throw new Error(
89-
`Network response was not ok: ${response.status} ${response.statusText}`
89+
`Network response was not ok: ${response.status} ${response.statusText}`,
9090
);
9191
}
9292
let json = await response.json();

app/components/class-field-description.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default class ClassFieldDescription extends Component {
88
get hasImportExample() {
99
return this.legacyModuleMappings.hasFunctionMapping(
1010
this.args.field.name,
11-
this.args.field.class
11+
this.args.field.class,
1212
);
1313
}
1414
}

app/components/search-input/dropdown-result.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export default Component.extend({
2424
attributeBindings: ['role'],
2525
version: computed('result._tags.[]', function () {
2626
let versionTag = this.get('result._tags').find(
27-
(_tag) => _tag.indexOf('version:') > -1
27+
(_tag) => _tag.indexOf('version:') > -1,
2828
);
2929
let versionSegments = versionTag.replace('version:', '').split('.');
3030
return `${versionSegments[0]}.${versionSegments[1]}`;

app/components/search-input/dropdown.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export default class Dropdown extends Component {
6565
lvl1Result[lvl1Key].addObject(lvl1Item);
6666
return lvl1Result;
6767
},
68-
{}
68+
{},
6969
);
7070

7171
return lvl0Result;

app/controllers/project-version.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ export default class ProjectVersionController extends Controller {
114114
});
115115
let groupedVersions = groupBy(
116116
versions,
117-
(version) => version.compactVersion
117+
(version) => version.compactVersion,
118118
);
119119

120120
return values(groupedVersions).map((groupedVersion) => groupedVersion[0]);
@@ -164,13 +164,13 @@ export default class ProjectVersionController extends Controller {
164164
// to the home page instead of trying to translate the url
165165
let shouldConvertPackages = this._shouldConvertPackages(
166166
ver,
167-
this.projectService.version
167+
this.projectService.version,
168168
);
169169
let isEmberProject = project === 'ember';
170170

171171
if (!isEmberProject || !shouldConvertPackages) {
172172
this.router.transitionTo(
173-
`/${project}/${projectVersionID}/${endingRoute}`
173+
`/${project}/${projectVersionID}/${endingRoute}`,
174174
);
175175
} else {
176176
this.router.transitionTo(`/${project}/${projectVersionID}`);

app/controllers/project-version/classes/class.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export default class ClassController extends Controller {
2727
metaStore;
2828

2929
@computed(
30-
'filterData.{showInherited,showProtected,showPrivate,showDeprecated}'
30+
'filterData.{showInherited,showProtected,showPrivate,showDeprecated}',
3131
)
3232
get visibilityFilter() {
3333
let appliedFilters = filterTypes
@@ -59,15 +59,15 @@ export default class ClassController extends Controller {
5959
get hasImportExample() {
6060
return this.legacyModuleMappings.hasClassMapping(
6161
this.get('model.name'),
62-
this.get('model.module')
62+
this.get('model.module'),
6363
);
6464
}
6565

6666
@computed('legacyModulemappings.mappings', 'model.{module,name}')
6767
get module() {
6868
return this.legacyModuleMappings.getModule(
6969
this.get('model.name'),
70-
this.get('model.module')
70+
this.get('model.module'),
7171
);
7272
}
7373

app/controllers/project-version/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ import { htmlSafe } from '@ember/template';
33

44
export default Controller.extend({
55
oldPackageImportSyntax: htmlSafe(
6-
"<div class='highlight javascript'> <div class='ribbon'></div><table class='CodeRay'> <tbody> <tr> <td class='line-numbers'> <pre>1\n2\n3\n4</pre></td><td class='code'><pre><span class='wrapper'><span class='keyword'>import</span> Ember <span class='keyword'>from</span> <span class='string'>'ember'</span>;</span>\n<span class='keyword'>export</span> <span class='keyword'>default</span> Ember.Component.extend({<span class='comment'>\n // this is the old way</span>\n});</pre> </td></tr></tbody> </table></div>"
6+
"<div class='highlight javascript'> <div class='ribbon'></div><table class='CodeRay'> <tbody> <tr> <td class='line-numbers'> <pre>1\n2\n3\n4</pre></td><td class='code'><pre><span class='wrapper'><span class='keyword'>import</span> Ember <span class='keyword'>from</span> <span class='string'>'ember'</span>;</span>\n<span class='keyword'>export</span> <span class='keyword'>default</span> Ember.Component.extend({<span class='comment'>\n // this is the old way</span>\n});</pre> </td></tr></tbody> </table></div>",
77
),
88

99
newPackageImportSyntax: htmlSafe(
10-
"<div class='highlight javascript'> <div class='ribbon'></div><table class='CodeRay'> <tbody> <tr> <td class='line-numbers'><pre>1\n2\n3\n4</pre> </td><td class='code'><pre><span class='wrapper'><span class='keyword'>import</span> Component <span class='keyword'>from</span> <span class='string'>'@ember/component'</span>;</span>\n<span class='keyword'>export</span> <span class='keyword'>default</span> Component.extend({<span class='comment'>\n // this is the current way</span>\n});</pre> </td></tr></tbody> </table></div>"
10+
"<div class='highlight javascript'> <div class='ribbon'></div><table class='CodeRay'> <tbody> <tr> <td class='line-numbers'><pre>1\n2\n3\n4</pre> </td><td class='code'><pre><span class='wrapper'><span class='keyword'>import</span> Component <span class='keyword'>from</span> <span class='string'>'@ember/component'</span>;</span>\n<span class='keyword'>export</span> <span class='keyword'>default</span> Component.extend({<span class='comment'>\n // this is the current way</span>\n});</pre> </td></tr></tbody> </table></div>",
1111
),
1212
});

app/controllers/project-version/modules/module.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export default class ModuleController extends ClassController {
2727
get classes() {
2828
if (this.showPrivateClasses) {
2929
return this.get('model.publicclasses').concat(
30-
this.get('model.privateclasses')
30+
this.get('model.privateclasses'),
3131
);
3232
}
3333
return this.get('model.publicclasses');

0 commit comments

Comments
 (0)