diff options
author | Kitson Kelly <me@kitsonkelly.com> | 2019-03-10 04:30:38 +1100 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-03-09 12:30:38 -0500 |
commit | 034e2cc02829c9244b32232074c7a48af827a2fb (patch) | |
tree | bade01606a1ee076c1f753ce99c97ddb1e4edf30 /tools/lint.py | |
parent | 8c7a12d1b258f0ef5ab27f49c424331d43e8d97f (diff) |
Migrate from tslint to eslint for linting (#1905)
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"] + |