summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rwxr-xr-xtools/lint.py9
-rw-r--r--tools/ts_library_builder/build_library.ts1
-rw-r--r--tools/ts_library_builder/main.ts1
-rw-r--r--tools/ts_library_builder/testdata/globals.ts1
4 files changed, 4 insertions, 8 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"] +
diff --git a/tools/ts_library_builder/build_library.ts b/tools/ts_library_builder/build_library.ts
index 00f6fccf0..4b331ef02 100644
--- a/tools/ts_library_builder/build_library.ts
+++ b/tools/ts_library_builder/build_library.ts
@@ -70,7 +70,6 @@ const { ModuleKind, ModuleResolutionKind, ScriptTarget } = ts;
/**
* A preamble which is appended to the start of the library.
*/
-// tslint:disable-next-line:max-line-length
const libPreamble = `// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
/// <reference no-default-lib="true" />
diff --git a/tools/ts_library_builder/main.ts b/tools/ts_library_builder/main.ts
index 1d1cf14cb..ed692d03a 100644
--- a/tools/ts_library_builder/main.ts
+++ b/tools/ts_library_builder/main.ts
@@ -12,7 +12,6 @@ let debug = false;
let silent = false;
process.argv.forEach((arg, i, argv) => {
- // tslint:disable-next-line:switch-default
switch (arg) {
case "--basePath":
basePath = path.resolve(argv[i + 1]);
diff --git a/tools/ts_library_builder/testdata/globals.ts b/tools/ts_library_builder/testdata/globals.ts
index 9d117c794..c6c6f9476 100644
--- a/tools/ts_library_builder/testdata/globals.ts
+++ b/tools/ts_library_builder/testdata/globals.ts
@@ -2,7 +2,6 @@ import * as moduleC from "./moduleC";
import * as moduleD from "./moduleD";
import * as moduleE from "./moduleE";
-// tslint:disable-next-line:no-any
const foobarbaz: any = {};
foobarbaz.bar = new moduleC.Bar();
foobarbaz.qat = moduleC.qat;