An MSBuild wrapper around Palantir's wonderful tslint. Get it at nuget.org.
Add this package using the Visual Studio's NuGet Package Manager. It should be automatically added to your project.
At runtime, the list of .ts files from your build (TypeScriptCompile
) is output to a temporary .txt file.
A .js runner file then takes in the path to that file list, scans for tslint.json
files, and runs TSLint on each .ts file.
The following properties may be overidden via your targets:
- TSLintDeleteFileListFile - Whether to delete the file list file when done. Defaults to
true
. - TSLintFileListDir - The directory to put the file list in. Defaults to
$(IntermediateOutDir)
. - TSLintFileListName - The name of the file list file. Defaults to
TSLintFileList.txt-$(MSBuildProjectName)
. - TSLintNodeExe: A node executable to execute the runner script. Defaults to the
tools\node-5.9.0.exe
in the package. - TSLintRunnerScript - The .js file to take in
TSLintFileListFile
. Defaults to thetools\runner.js
in the package. - TSLintFilesRootDir - A root directory to work within. Defaults to
$(MSBuildProjectDirectory)
.
TSLint.MSBuild respects tslint.json
settings in directories.
Placing a tslint.json
in a directory will affect that directory's children and all subdirectory children, unless superseded by another tslint.json
.
Run the following commands to initialize your environment:
npm install
typings install
Run grunt
to build.