From 034e2cc02829c9244b32232074c7a48af827a2fb Mon Sep 17 00:00:00 2001 From: Kitson Kelly Date: Sun, 10 Mar 2019 04:30:38 +1100 Subject: Migrate from tslint to eslint for linting (#1905) --- tools/lint.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'tools/lint.py') 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"] + -- cgit v1.2.3