Skip to content

Commit 0f86006

Browse files
committed
style: fix ESLint errors — import order, blank lines, padding-line
- utils.ts: move node:os import after node:net (import/order) - executor.ts: collapse multiple blank lines to max 2 (no-multiple-empty-lines) - host.ts: add blank line before statement at line 175 (padding-line-between-statements)
1 parent ebca5fc commit 0f86006

File tree

3 files changed

+2
-3
lines changed
  • packages
    • angular_devkit
    • angular/cli/src/package-managers

3 files changed

+2
-3
lines changed

packages/angular/cli/src/package-managers/host.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ export const NodeJS_HOST: Host = {
172172
if (err.name === 'AbortError') {
173173
const message = `Process timed out.`;
174174
reject(new PackageManagerError(message, stdout, stderr, null));
175+
175176
return;
176177
}
177178
const message = `Process failed with error: ${err.message}`;

packages/angular_devkit/build_angular/src/builders/ssr-dev-server/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
*/
88

99
import { SpawnOptions, spawn } from 'node:child_process';
10-
import { platform } from 'node:os';
1110
import { AddressInfo, createConnection, createServer } from 'node:net';
11+
import { platform } from 'node:os';
1212
import { Observable, mergeMap, retryWhen, throwError, timer } from 'rxjs';
1313

1414
export function getAvailablePort(): Promise<number> {

packages/angular_devkit/schematics/tasks/package-manager/executor.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
import { BaseException } from '@angular-devkit/core';
1010
import { SpawnOptions, spawn } from 'node:child_process';
1111

12-
13-
1412
import * as path from 'node:path';
1513
import ora from 'ora';
1614
import { TaskExecutor, UnsuccessfulWorkflowExecution } from '../../src';

0 commit comments

Comments
 (0)