Migrate from tslint to eslint for linting (#1905)

This commit is contained in:
Kitson Kelly 2019-03-10 04:30:38 +11:00 committed by Ryan Dahl
parent 8c7a12d1b2
commit 034e2cc028
90 changed files with 1041 additions and 1104 deletions

View file

@ -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"] +