Skip to content

Commit 8c69ce6

Browse files
clydindond2clouds
authored andcommitted
test: update development tslint version (angular#5936)
Also fixes any encountered errors. This only changes the version used for the CLI's development. The project template version of tslint cannot be updated until codelyzer supports the latest version. ([codelyzer tracking issue](mgechev/codelyzer#281))
1 parent 59dffc4 commit 8c69ce6

File tree

11 files changed

+15
-11
lines changed

11 files changed

+15
-11
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@
148148
"through": "^2.3.6",
149149
"tree-kill": "^1.0.0",
150150
"ts-node": "^2.0.0",
151-
"tslint": "^4.0.2"
151+
"tslint": "^5.1.0"
152152
},
153153
"optionalDependencies": {
154154
"node-sass": "^4.3.0"

packages/@angular/cli/lib/ast-tools/route-utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ export function insertImport(fileToEdit: string, symbolName: string,
143143
fallbackPos,
144144
ts.SyntaxKind.StringLiteral
145145
);
146-
};
146+
}
147147

148148
/**
149149
* Inserts a path to the new route into src/routes.ts if it doesn't exist

packages/@angular/cli/models/webpack-configs/typescript.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export const getAotConfig = function(wco: WebpackConfigOptions) {
9595
// Fallback to exclude spec files from AoT compilation on projects using a shared tsconfig.
9696
if (testTsConfigPath === tsConfigPath) {
9797
let exclude = [ '**/*.spec.ts' ];
98-
if (appConfig.test) { exclude.push(path.join(projectRoot, appConfig.root, appConfig.test)); };
98+
if (appConfig.test) { exclude.push(path.join(projectRoot, appConfig.root, appConfig.test)); }
9999
pluginOptions.exclude = exclude;
100100
}
101101

packages/@angular/cli/utilities/app-utils.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ export function getAppFromConfig(nameOrIndex?: String) {
2525
} else {
2626
return apps[0];
2727
}
28-
throw new SilentError(chalk.red(oneLine`Unable to find app with name or index.
29-
Make you have proper apps configuration in \`.angular-cli.json\``));
28+
throw new SilentError(chalk.red(oneLine`
29+
Unable to find app with name or index.
30+
Verify the configuration in \`.angular-cli.json\`
31+
`));
3032
}

packages/@angular/cli/utilities/dynamic-path-parser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,4 @@ export function dynamicPathParser(project: any, entityName: string, appConfig: a
6161
parsedPath.dir = parsedPath.dir === path.sep ? '' : parsedPath.dir;
6262

6363
return { ...parsedPath, appRoot, sourceDir };
64-
};
64+
}

packages/@angular/cli/utilities/find-parent-module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ export default function findParentModule(
3434
}
3535

3636
throw new SilentError('No module files found');
37-
};
37+
}

packages/@angular/cli/utilities/get-dependent-files.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ export function getDependentFiles(fileName: string, rootPath: string): Promise<M
142142
});
143143
if (tempModuleSpecifiers.length > 0) {
144144
relevantFiles[filePath] = tempModuleSpecifiers;
145-
};
145+
}
146146
});
147147
return relevantFiles;
148148
}));

packages/@angular/cli/utilities/module-resolver.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export class ModuleResolver {
7373
let changeText = path.relative(fileDir, path.join(this.newFilePath, componentName));
7474
if (changeText.length > 0 && changeText.charAt(0) !== '.') {
7575
changeText = `.${path.sep}${changeText}`;
76-
};
76+
}
7777
let position = specifier.end - specifier.specifierText.length;
7878
return new ReplaceChange(file, position - 1, specifier.specifierText, changeText);
7979
});

packages/@angular/cli/utilities/prerender-webpack-plugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,4 @@ export class PrerenderWebpackPlugin {
5353
delete require.cache[key];
5454
});
5555
}
56-
};
56+
}

packages/@ngtools/json-schema/src/schema-tree.spec.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ describe('@ngtools/json-schema', () => {
1515

1616
it('works', () => {
1717
const proto: any = Object.create(null);
18+
// tslint:disable-next-line
1819
new RootSchemaTreeNode(proto, {
1920
value: valueJson,
2021
schema: schemaJson
@@ -47,6 +48,7 @@ describe('@ngtools/json-schema', () => {
4748

4849
it('works', () => {
4950
const proto: any = Object.create(null);
51+
// tslint:disable-next-line
5052
new RootSchemaTreeNode(proto, {
5153
value: valueJson,
5254
schema: schemaJson

packages/@ngtools/json-schema/src/schema-tree.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export abstract class SchemaTreeNode<T> implements SchemaNode {
102102
throw new MissingImplementationError();
103103
}
104104
throw new SettingReadOnlyPropertyError();
105-
};
105+
}
106106
isCompatible(_v: any) { return false; }
107107

108108
abstract serialize(serializer: Serializer): void;

0 commit comments

Comments
 (0)