mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 20:29:11 +00:00
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.
This commit is contained in:
parent
e191c70989
commit
960f9ccb2e
11 changed files with 86 additions and 26 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue