The JSLint extension for VS2010 has the ability to automatically display JSLint warnings in the error list. In addition, you can run JSLint during assembly and cancel the assembly if a rule is violated.
Or, if you want to continue running JSLint through a batch script package, you can force MSBuild to raise an error depending on the script's return code:
<Target Name="AfterBuild"> <Exec Command="jslint.bat" ContinueOnError="true"> <Output TaskParameter="ExitCode" PropertyName="ErrorCode" /> </Exec> <Error Text="Error running JSLint" Condition="'$(ErrorCode)'>'0'" /> </Target>
source share