code: function lint(applyFixes) {
      logInfo("Lint TypeScript source files");
  
      const tsDir = path.resolve(TS_TARGETDIR);
      const cwdLength = tsDir.length - TS_TARGETDIR.length;
      const tsSuffix = ".ts";
      const dtsSuffix = ".d.ts";
      const lintConfigFile = path.resolve("./build/tslint.json");
      const lintOptions = {
          formatter: "verbose",
          fix: applyFixes
      };
  
      lintFolders(tsDir);
  
      function lintFolders(parent) {
          fse.readdirSync(parent).forEach((file, index) => {
              let curPath = path.join(parent, file);
              if (!fse.lstatSync(curPath).isDirectory()) {
                  if ((file.substr(-tsSuffix.length) === tsSuffix) &&
                      !(file.substr(-dtsSuffix.length) === dtsSuffix)) {
                      lintFile(curPath.substr(cwdLength));
                  }
              } else {
                  lintFolders(curPath);
              }
          });
      }
  
      function lintFile(file) {
          const contents = fse.readFileSync(file, "utf-8");
          const linter = new tslint.Linter(lintOptions);
          const configuration = tslint.Configuration.findConfiguration(lintConfigFile).results;
          linter.lint(file, contents, configuration);
          const result = linter.getResult();
  
          // For debugging, use console.log(result);
          result.errorCount > 0 && console.log(result.output);
      }
  }
docs: Lint all TypeScript source files (except typings).