Skip to content

Commit 7d87045

Browse files
committed
prettier -w .
1 parent c44f066 commit 7d87045

File tree

39 files changed

+107
-117
lines changed

39 files changed

+107
-117
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#!/usr/bin/env node
2-
require('../lib/start.js')
2+
require('../lib/start.js');

apps/api-documenter/src/documenters/YamlDocumenter.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -943,12 +943,12 @@ export class YamlDocumenter {
943943
spec.fullName = apiItem
944944
? apiItem.getScopedNameWithinPackage()
945945
: token.canonicalReference
946-
? token.canonicalReference
947-
.withSource(undefined)
948-
.withMeaning(undefined)
949-
.withOverloadIndex(undefined)
950-
.toString()
951-
: token.text;
946+
? token.canonicalReference
947+
.withSource(undefined)
948+
.withMeaning(undefined)
949+
.withOverloadIndex(undefined)
950+
.toString()
951+
: token.text;
952952
specs.push(spec);
953953
} else {
954954
specs.push({

apps/api-extractor/bin/api-extractor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#!/usr/bin/env node
2-
require('../lib/start.js')
2+
require('../lib/start.js');

apps/api-extractor/src/analyzer/AstImport.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,8 @@ export class AstImport extends AstSyntheticEntity {
154154
const subKey: string = !options.exportName
155155
? '*' // Equivalent to StarImport
156156
: options.exportName.includes('.') // Equivalent to a named export
157-
? options.exportName.split('.')[0]
158-
: options.exportName;
157+
? options.exportName.split('.')[0]
158+
: options.exportName;
159159
return `${options.modulePath}:${subKey}`;
160160
}
161161
default:

apps/heft/src/cli/HeftActionRunner.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -497,9 +497,8 @@ async function _startLifecycleAsync(this: void, internalHeftSession: InternalHef
497497

498498
// Delete all temp folders for tasks by default
499499
for (const pluginDefinition of lifecycle.pluginDefinitions) {
500-
const lifecycleSession: IHeftLifecycleSession = await lifecycle.getSessionForPluginDefinitionAsync(
501-
pluginDefinition
502-
);
500+
const lifecycleSession: IHeftLifecycleSession =
501+
await lifecycle.getSessionForPluginDefinitionAsync(pluginDefinition);
503502
deleteOperations.push({ sourcePath: lifecycleSession.tempFolderPath });
504503
}
505504

apps/heft/src/utilities/GitUtilities.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -188,9 +188,8 @@ export class GitUtilities {
188188
let currentPath: string = normalizedWorkingDirectory;
189189
while (currentPath.length >= gitRepoRootPath.length) {
190190
const gitIgnoreFilePath: string = `${currentPath}/.gitignore`;
191-
const gitIgnorePatterns: string[] | undefined = await this._tryReadGitIgnoreFileAsync(
192-
gitIgnoreFilePath
193-
);
191+
const gitIgnorePatterns: string[] | undefined =
192+
await this._tryReadGitIgnoreFileAsync(gitIgnoreFilePath);
194193
if (gitIgnorePatterns) {
195194
rawIgnorePatternsByGitignoreFolder.set(currentPath, gitIgnorePatterns);
196195
}
@@ -201,9 +200,8 @@ export class GitUtilities {
201200
const gitignoreRelativeFilePaths: string[] = await this._findUnignoredFilesAsync('*.gitignore');
202201
for (const gitignoreRelativeFilePath of gitignoreRelativeFilePaths) {
203202
const gitignoreFilePath: string = `${normalizedWorkingDirectory}/${gitignoreRelativeFilePath}`;
204-
const gitIgnorePatterns: string[] | undefined = await this._tryReadGitIgnoreFileAsync(
205-
gitignoreFilePath
206-
);
203+
const gitIgnorePatterns: string[] | undefined =
204+
await this._tryReadGitIgnoreFileAsync(gitignoreFilePath);
207205
if (gitIgnorePatterns) {
208206
const parentPath: string = gitignoreFilePath.slice(0, gitignoreFilePath.lastIndexOf('/'));
209207
rawIgnorePatternsByGitignoreFolder.set(parentPath, gitIgnorePatterns);

apps/lockfile-explorer-web/assets/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html lang="en">
33
<head>
44
<meta charset="utf-8" />

apps/lockfile-explorer/src/commandLine.test.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,18 @@ import { parseCommandLine } from './commandLine';
66
describe('commandLine', () => {
77
describe('parseCommandLine()', () => {
88
it('sets showHelp when --help specified', async () => {
9-
const result = parseCommandLine(['--help'])
9+
const result = parseCommandLine(['--help']);
1010
expect(result).toHaveProperty('showedHelp', true);
1111
});
1212

1313
it('sets subspace when --subspace specified', async () => {
14-
const result = parseCommandLine(['--subspace', 'wallet'])
14+
const result = parseCommandLine(['--subspace', 'wallet']);
1515
expect(result).toHaveProperty('subspace', 'wallet');
1616
});
1717

1818
it('sets error when --subspace value not missing', async () => {
19-
const result = parseCommandLine(['--subspace'])
19+
const result = parseCommandLine(['--subspace']);
2020
expect(result).toHaveProperty('error', 'Expecting argument after "--subspace"');
2121
});
2222
});
2323
});
24-

apps/rush/src/RushVersionSelector.ts

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -85,14 +85,9 @@ export class RushVersionSelector {
8585
require(path.join(expectedRushPath, 'node_modules', '@microsoft', 'rush', 'lib', 'start'));
8686
} else {
8787
// For newer rush-lib, RushCommandSelector can test whether "rushx" is supported or not
88-
const rushCliEntrypoint: {} = require(path.join(
89-
expectedRushPath,
90-
'node_modules',
91-
'@microsoft',
92-
'rush-lib',
93-
'lib',
94-
'index'
95-
));
88+
const rushCliEntrypoint: {} = require(
89+
path.join(expectedRushPath, 'node_modules', '@microsoft', 'rush-lib', 'lib', 'index')
90+
);
9691
RushCommandSelector.execute(this._currentPackageVersion, rushCliEntrypoint, executeOptions);
9792
}
9893
}

build-tests-samples/heft-storybook-react-tutorial/assets/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html lang="en">
33
<head>
44
<meta charset="utf-8" />

0 commit comments

Comments
 (0)