Lesshint for MSBuild
Add this package using the Visual Studio's NuGet Package Manager. It should be automatically added to your project.
LessCompile property in your .csproj/.targets consisting of the names of .less files to lint.
At runtime, the list of .less files from
LessCompile is output to a temporary .txt file.
A .js runner file then takes in the path to that file list and runs Lesshint on them.
The following properties may be overidden via your targets:
LesshintAfterTargets - MSBuild
LesshintBreakBuildOnError - Whether linting failures should break the build. Defaults to
- LesshintConfig - Path to the configuration file to use (will be merged with defaults).
LesshintDeleteFileListFile - Whether to delete the file list file when done. Defaults to
- LesshintExclude - An optional minimatch glob pattern or a file to exclude from being linted.
LesshintFilesRootDir - A root directory to work within. Defaults to
LesshintFileListDir - The directory to put the file list in. Defaults to
LesshintFileListName - The name of the file list file. Defaults to
- LesshintLinters - Require paths of custom linters to add to the built-in list.
LesshintNodeExe - A node executable to execute the runner script. Defaults to the
tools\node-5.9.0.exein the package.
LesshintRunnerScript - The .js file to take in
LesshintFileListFile. Defaults to the
tools\runner.jsin the package.
Run the following commands to initialize your environment:
npm install typings install
grunt to build.