Fix and enable linting of deno_typescript/*, tools/*, website/* (#2962)

This commit is contained in:
Bert Belder 2019-09-16 23:25:32 +02:00
parent c6afe87feb
commit 02cb34d8ad
No known key found for this signature in database
GPG key ID: 7A77887B2E2ED461
11 changed files with 185 additions and 133 deletions

View file

@ -38,12 +38,8 @@ def eslint():
print "eslint"
script = os.path.join(third_party_path, "node_modules", "eslint", "bin",
"eslint")
# TODO: Files in 'deno_typescript', 'tools' and 'website' directories are
# currently not linted, but they should.
source_files = git_ls_files(
root_path,
["*.js", "*.ts", ":!:deno_typescript/", ":!:tools/", ":!:website/"])
# Find all *directories* in the main repo that contain .ts/.js files.
source_files = git_ls_files(root_path, ["*.js", "*.ts"])
source_dirs = set([os.path.dirname(f) for f in source_files])
# Within the source dirs, eslint does its own globbing, taking into account
# the exclusion rules listed in '.eslintignore'.