Skip to content

Commit 1627a83

Browse files
authored
Include some ESLint rules to normalize imports. (#5392)
* Include a _phase:lite-build phase to fix the --fix flag. * Clean up build logging. * Enforce the import/enforce-node-protocol-usage rule. * Fix node protocol imports. * fixup! Enforce the import/enforce-node-protocol-usage rule. * fixup! Include a _phase:lite-build phase to fix the --fix flag. * fixup! Include a _phase:lite-build phase to fix the --fix flag. * fixup! Fix node protocol imports. * Configure grouping for imports. * Ensure there's a newline after the copyright header. * Fix header issues. * Group imports. * fixup! Group imports. * Fix import grouping issues. * Fix import grouping issues (manual fixes). * Rush change. * fixup! Fix node protocol imports. * fixup! Fix node protocol imports. * fixup! Fix node protocol imports. * fixup! Fix node protocol imports.
1 parent 981e258 commit 1627a83

File tree

611 files changed

+2052
-876
lines changed

Some content is hidden

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

611 files changed

+2052
-876
lines changed

apps/api-documenter/src/cli/ApiDocumenterCommandLine.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// See LICENSE in the project root for license information.
33

44
import { CommandLineParser } from '@rushstack/ts-command-line';
5+
56
import { MarkdownAction } from './MarkdownAction';
67
import { YamlAction } from './YamlAction';
78
import { GenerateAction } from './GenerateAction';

apps/api-documenter/src/cli/BaseAction.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
22
// See LICENSE in the project root for license information.
33

4-
import * as path from 'path';
5-
import type * as tsdoc from '@microsoft/tsdoc';
4+
import * as path from 'node:path';
65

6+
import type * as tsdoc from '@microsoft/tsdoc';
77
import {
88
CommandLineAction,
99
type CommandLineStringParameter,

apps/api-documenter/src/cli/GenerateAction.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
22
// See LICENSE in the project root for license information.
33

4-
import * as path from 'path';
4+
import * as path from 'node:path';
5+
6+
import { FileSystem } from '@rushstack/node-core-library';
57

68
import type { ApiDocumenterCommandLine } from './ApiDocumenterCommandLine';
79
import { BaseAction } from './BaseAction';
810
import { DocumenterConfig } from '../documenters/DocumenterConfig';
911
import { ExperimentalYamlDocumenter } from '../documenters/ExperimentalYamlDocumenter';
10-
11-
import { FileSystem } from '@rushstack/node-core-library';
1212
import { MarkdownDocumenter } from '../documenters/MarkdownDocumenter';
1313

1414
export class GenerateAction extends BaseAction {

apps/api-documenter/src/cli/YamlAction.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import type {
88

99
import type { ApiDocumenterCommandLine } from './ApiDocumenterCommandLine';
1010
import { BaseAction } from './BaseAction';
11-
1211
import { YamlDocumenter, type YamlFormat } from '../documenters/YamlDocumenter';
1312
import { OfficeYamlDocumenter } from '../documenters/OfficeYamlDocumenter';
1413

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
22
// See LICENSE in the project root for license information.
33

4-
import * as path from 'path';
4+
import * as path from 'node:path';
5+
56
import { JsonSchema, JsonFile, NewlineKind } from '@rushstack/node-core-library';
7+
68
import type { IConfigFile } from './IConfigFile';
79
import apiDocumenterSchema from '../schemas/api-documenter.schema.json';
810

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
22
// See LICENSE in the project root for license information.
33

4-
import * as path from 'path';
4+
import * as path from 'node:path';
5+
56
import { PackageName, FileSystem, NewlineKind } from '@rushstack/node-core-library';
67
import {
78
DocSection,

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
22
// See LICENSE in the project root for license information.
33

4-
import * as path from 'path';
4+
import * as path from 'node:path';
5+
56
import yaml = require('js-yaml');
67

78
import type { ApiModel } from '@microsoft/api-extractor-model';

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
22
// See LICENSE in the project root for license information.
33

4-
import * as path from 'path';
4+
import * as path from 'node:path';
55

66
import yaml = require('js-yaml');
7+
78
import {
89
JsonFile,
910
JsonSchema,
@@ -50,6 +51,7 @@ import {
5051
Navigation,
5152
Meaning
5253
} from '@microsoft/tsdoc/lib-commonjs/beta/DeclarationReference';
54+
5355
import type {
5456
IYamlApiFile,
5557
IYamlItem,

apps/api-documenter/src/nodes/CustomDocNodeKind.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// See LICENSE in the project root for license information.
33

44
import { TSDocConfiguration, DocNodeKind } from '@microsoft/tsdoc';
5+
56
import { DocEmphasisSpan } from './DocEmphasisSpan';
67
import { DocHeading } from './DocHeading';
78
import { DocNoteBox } from './DocNoteBox';

apps/api-documenter/src/nodes/DocEmphasisSpan.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// See LICENSE in the project root for license information.
33

44
import { type DocNode, DocNodeContainer, type IDocNodeContainerParameters } from '@microsoft/tsdoc';
5+
56
import { CustomDocNodeKind } from './CustomDocNodeKind';
67

78
/**

0 commit comments

Comments
 (0)