From 02cb34d8ad320360c800b9af7b941990c48b9742 Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Mon, 16 Sep 2019 23:25:32 +0200 Subject: Fix and enable linting of deno_typescript/*, tools/*, website/* (#2962) --- tools/lint.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'tools/lint.py') diff --git a/tools/lint.py b/tools/lint.py index 61c6c59ce..e71d5d0ef 100755 --- a/tools/lint.py +++ b/tools/lint.py @@ -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'. -- cgit v1.2.3