mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 12:19:12 +00:00
Migrate from tslint to eslint for linting (#1905)
This commit is contained in:
parent
8c7a12d1b2
commit
034e2cc028
90 changed files with 1041 additions and 1104 deletions
|
@ -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"] +
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue