summaryrefslogtreecommitdiff
path: root/tools/lint.py
diff options
context:
space:
mode:
authorKevin (Kun) "Kassimo" Qian <kevinkassimo@gmail.com>2019-11-14 05:31:39 -0800
committerRy Dahl <ry@tinyclouds.org>2019-11-14 08:31:39 -0500
commit4189cc1ab5493ab0aef48c06416c4d16f6806245 (patch)
treedad82896518ed93548a8d11b7bf68ad6a0eaa4f0 /tools/lint.py
parentfdf0ede2acd110ba04857d5674db19c908b3ff32 (diff)
Loader: support .wasm imports (#3328)
* loader: support .wasm imports * http_server: true * Support named exports * Clippy
Diffstat (limited to 'tools/lint.py')
-rwxr-xr-xtools/lint.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/lint.py b/tools/lint.py
index beb1a180c..f387bc96e 100755
--- a/tools/lint.py
+++ b/tools/lint.py
@@ -39,9 +39,10 @@ def eslint():
script = os.path.join(third_party_path, "node_modules", "eslint", "bin",
"eslint")
# Find all *directories* in the main repo that contain .ts/.js files.
- source_files = git_ls_files(
- root_path,
- ["*.js", "*.ts", ":!:std/prettier/vendor/*", ":!:std/**/testdata/*"])
+ source_files = git_ls_files(root_path, [
+ "*.js", "*.ts", ":!:std/prettier/vendor/*", ":!:std/**/testdata/*",
+ ":!:cli/compilers/*"
+ ])
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'.