diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-05-22 19:23:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-22 19:23:35 +0200 |
commit | 960f9ccb2e700332dc576163b62c518120c73f15 (patch) | |
tree | 3bca9c5c449c01344f7dea9a945032fe17bffe63 /tools/lint.py | |
parent | e191c70989a1dbf29b095bf6c2f7b62b90de012a (diff) |
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.
Diffstat (limited to 'tools/lint.py')
-rwxr-xr-x | tools/lint.py | 3 |
1 files changed, 2 insertions, 1 deletions
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: |