diff options
Diffstat (limited to 'tools/lint.py')
-rwxr-xr-x | tools/lint.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/tools/lint.py b/tools/lint.py index e3e765387..4ce7900d1 100755 --- a/tools/lint.py +++ b/tools/lint.py @@ -10,8 +10,8 @@ enable_ansi_colors() third_party_path = os.path.join(root_path, "third_party") cpplint = os.path.join(third_party_path, "cpplint", "cpplint.py") -tslint = os.path.join(third_party_path, "node_modules", "tslint", "bin", - "tslint") +eslint = os.path.join(third_party_path, "node_modules", "eslint", "bin", + "eslint") os.chdir(root_path) run([ @@ -19,10 +19,9 @@ run([ "--repository=libdeno", "--extensions=cc,h", "--recursive", "libdeno" ]) -run(["node", tslint, "-p", ".", "--exclude", "**/gen/**/*.ts"]) run([ - "node", tslint, "./js/**/*_test.ts", "./tests/**/*.ts", "./core/*.js", - "--exclude", "**/gen/**/*.ts", "--project", "tsconfig.json" + "node", eslint, "./js/**/*.{ts,js}", "./core/**/*.{ts,js}", + "./tests/**/*.{ts,js}" ]) run([sys.executable, "third_party/depot_tools/pylint.py"] + |