Skip to content

Commit 5ce7fd9

Browse files
committed
lint server
1 parent d28acec commit 5ce7fd9

File tree

5 files changed

+583
-564
lines changed

5 files changed

+583
-564
lines changed

Jakefile.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,15 +96,17 @@ var servicesSources = [
9696
return path.join(servicesDirectory, f);
9797
}));
9898

99-
var serverSources = [
99+
var serverOnlySources = [
100100
"node.d.ts",
101101
"editorServices.ts",
102102
"protocol.d.ts",
103103
"session.ts",
104104
"server.ts"
105105
].map(function (f) {
106106
return path.join(serverDirectory, f);
107-
}).concat(servicesSources);
107+
});
108+
109+
var serverSources = serverOnlySources.concat(servicesSources);
108110

109111
var languageServiceLibrarySources = [
110112
"editorServices.ts",
@@ -898,7 +900,9 @@ function lintFileAsync(options, path, cb) {
898900
});
899901
}
900902

901-
var lintTargets = compilerSources.concat(harnessCoreSources);
903+
var lintTargets = compilerSources
904+
.concat(harnessCoreSources)
905+
.concat(serverOnlySources.filter(function(p) { return path.basename(p) !== "node.d.ts"; }));
902906

903907
desc("Runs tslint on the compiler sources");
904908
task("lint", ["build-rules"], function() {

0 commit comments

Comments
 (0)