Skip to content

Commit 07780b9

Browse files
committed
style: clean up existing lint errors
1 parent 7df180d commit 07780b9

File tree

6 files changed

+16
-15
lines changed

6 files changed

+16
-15
lines changed

packages/angular_devkit/build_angular/test/browser/rebuild_spec_large.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -495,10 +495,10 @@ describe('Browser Builder rebuilds', () => {
495495
case 1:
496496
expect(content).not.toContain('color: green');
497497
host.appendToFile('src/app/app.component.css', 'h1 { color: green; }');
498-
break;
498+
break;
499499
case 2:
500500
expect(content).toContain('color: green');
501-
break;
501+
break;
502502
}
503503

504504
buildCount++;
@@ -525,10 +525,10 @@ describe('Browser Builder rebuilds', () => {
525525
case 1:
526526
expect(content).not.toContain('New Updated Content');
527527
host.appendToFile('src/app/app.component.html', 'New Updated Content');
528-
break;
528+
break;
529529
case 2:
530530
expect(content).toContain('New Updated Content');
531-
break;
531+
break;
532532
}
533533

534534
buildCount++;

packages/angular_devkit/build_angular/test/browser/scripts-array_spec_large.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ describe('Browser Builder scripts array', () => {
9393

9494
host.writeMultipleFiles(scripts);
9595
host.appendToFile('src/main.ts', '\nimport \'./input-script.js\';');
96-
96+
9797
// Enable differential loading
9898
host.appendToFile('browserslist', '\nIE 10');
9999

packages/angular_devkit/build_angular/test/browser/unused-files-warning_spec_large.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,13 @@ describe('Browser Builder unused files warnings', () => {
7575
}
7676

7777
host.writeMultipleFiles({
78-
'src/app/type.ts': 'export type MyType = number;'
78+
'src/app/type.ts': 'export type MyType = number;',
7979
});
8080

8181
host.replaceInFile(
8282
'src/app/app.component.ts',
8383
`'@angular/core';`,
84-
`'@angular/core';\nimport { MyType } from './type';\n`
84+
`'@angular/core';\nimport { MyType } from './type';\n`,
8585
);
8686

8787
const logger = new TestLogger('unused-files-warnings');
@@ -126,14 +126,14 @@ describe('Browser Builder unused files warnings', () => {
126126

127127
// Write a used file
128128
host.writeMultipleFiles({
129-
'src/testing/type.ts': 'export type MyType = number;'
129+
'src/testing/type.ts': 'export type MyType = number;',
130130
});
131-
131+
132132
// touch file to trigger build
133133
host.replaceInFile(
134134
'src/app/app.component.ts',
135135
`'@angular/core';`,
136-
`'@angular/core';\n`
136+
`'@angular/core';\n`,
137137
);
138138
break;
139139

@@ -144,7 +144,7 @@ describe('Browser Builder unused files warnings', () => {
144144
host.replaceInFile(
145145
'src/app/app.component.ts',
146146
`'@angular/core';`,
147-
`'@angular/core';\nimport { MyType } from '../testing/type';`
147+
`'@angular/core';\nimport { MyType } from '../testing/type';`,
148148
);
149149
break;
150150

packages/ngtools/webpack/src/angular_compiler_plugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,7 @@ export class AngularCompilerPlugin {
619619

620620
usedFiles.add(forwardSlashPath(compilationModule.resource));
621621

622-
// We need the below for dependencies which
622+
// We need the below for dependencies which
623623
// are not emitted such as type only TS files
624624
for (const dependency of compilationModule.buildInfo.fileDependencies) {
625625
usedFiles.add(forwardSlashPath(dependency));

packages/schematics/angular/application/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,8 @@ function addAppToWorkspaceFile(options: ApplicationOptions, appDir: string): Rul
219219
extractLicenses: true,
220220
vendorChunk: false,
221221
buildOptimizer: true,
222-
budgets: [{
222+
budgets: [
223+
{
223224
type: 'initial',
224225
maximumWarning: '2mb',
225226
maximumError: '5mb',

packages/schematics/angular/utility/json-utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,11 +194,11 @@ function _buildIndent(count: number): string {
194194

195195
function _stringifyContent(value: JsonValue, indentStr: string): string {
196196
// TODO: Add snapshot tests
197-
197+
198198
// The 'space' value is 2, because we want to add 2 additional
199199
// indents from the 'key' node.
200200

201-
// If we use the indent provided we will have double indents:
201+
// If we use the indent provided we will have double indents:
202202
// "budgets": [
203203
// {
204204
// "type": "initial",

0 commit comments

Comments
 (0)