Skip to content

Commit c52e3e7

Browse files
committed
Add Visual Studio Code project config file for JS
In combination with JSDoc annotations, this enables IntelliSense, project navigation, inline documentation, refactoring and other goodies using Visual Studio Code and other IDEs that integrate with TypeScript's Language Service for JavaScript (aka. 'Salsa'). See https://code.visualstudio.com/docs/languages/javascript The project file can be named either `jsconfig.json` without 'allowJs' or `tsconfig.json` with the 'allowJs' config option enabled. I've opted for `tsconfig.json` because that turns up better documentation on the web and is recognized by more tools. The project config file lives in h/static/scripts so that Visual Studio only tries to parse and process .js files under that directory. The config file does support specifying the set of files to include, but each file currently has to be listed individually. Glob support is planned for the future. See microsoft/TypeScript#1927
1 parent 263082c commit c52e3e7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

h/static/scripts/tsconfig.json

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"compilerOptions": {
3+
"target": "ES5",
4+
"module": "commonjs",
5+
"allowJs": true
6+
}
7+
}

0 commit comments

Comments
 (0)