From 6a649012bcd780f4b3adfa55647772fce0012fde Mon Sep 17 00:00:00 2001 From: Chris Bystrek Date: Fri, 5 Oct 2018 07:29:55 -0400 Subject: Changed tools/lint.py to lint the entire js and tests directories. (#900) * Changed tools/lint.py to lint the entire js and tests directorys and sub directories, currently it was pointing at tsconfig and would only lint files that were part of js/main.ts or node_modules/typescript/lib/lib.esnext.d.ts and their dependencies * Broke the typescript linting out into separate steps for the main typescript programing and tests. * Fixed linting issues in ts tests. --- tools/lint.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tools/lint.py') diff --git a/tools/lint.py b/tools/lint.py index e5a4f1690..2f38da2e8 100755 --- a/tools/lint.py +++ b/tools/lint.py @@ -17,4 +17,6 @@ run([ "python", cpplint, "--filter=-build/include_subdir", "--repository=src", "--extensions=cc,h", "--recursive", "src/." ]) + run(["node", tslint, "-p", ".", "--exclude", "**/gen/**/*.ts"]) +run(["node", tslint, "./js/**/*_test.ts", "./tests/**/*.ts", "--exclude", "**/gen/**/*.ts"]) -- cgit v1.2.3