From 960f9ccb2e700332dc576163b62c518120c73f15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Fri, 22 May 2020 19:23:35 +0200 Subject: fix: SWC lexer settings and silent errors (#5752) This commit changes how error occurring in SWC are handled. Changed lexer settings to properly handle TS decorators. Changed output of SWC error to annotate with position in file. --- tools/lint.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/lint.py b/tools/lint.py index 86c45b539..0e71fa946 100755 --- a/tools/lint.py +++ b/tools/lint.py @@ -61,7 +61,8 @@ def eslint(): "eslint") # Find all *directories* in the main repo that contain .ts/.js files. source_files = get_sources(root_path, [ - "*.js", "*.ts", ":!:std/**/testdata/*", ":!:std/**/node_modules/*", + "*.js", "*.ts", ":!:cli/tests/swc_syntax_error.ts", + ":!:std/**/testdata/*", ":!:std/**/node_modules/*", ":!:cli/compilers/wasm_wrap.js", ":!:cli/tests/error_syntax.js" ]) if source_files: -- cgit v1.2.3