From be787d09d537d6c1a6846168613dd0defe069448 Mon Sep 17 00:00:00 2001 From: Kitson Kelly Date: Wed, 26 Feb 2020 07:33:19 +1100 Subject: upgrade: TypeScript 3.8 (#4100) --- tools/lint.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tools') diff --git a/tools/lint.py b/tools/lint.py index 3ce4d7b02..6adbf0b69 100755 --- a/tools/lint.py +++ b/tools/lint.py @@ -29,8 +29,12 @@ def eslint(): # Within the source dirs, eslint does its own globbing, taking into account # the exclusion rules listed in '.eslintignore'. source_globs = ["%s/*.{js,ts}" % d for d in source_dirs] + # Set NODE_PATH so we don't have to maintain a symlink in root_path. + env = os.environ.copy() + env["NODE_PATH"] = os.path.join(root_path, "third_party", "node_modules") run(["node", script, "--max-warnings=0", "--"] + source_globs, shell=False, + env=env, quiet=True) -- cgit v1.2.3