Skip to content

Commit 16c5475

Browse files
authoredFeb 14, 2022
[Hooks] Check direct re-exports in typescript files. (#391)
1 parent 3a2c2b5 commit 16c5475

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎hooks/pre-commit

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class _FileParser:
7373
class _TypescriptParser(_FileParser):
7474

7575
import_regex = re.compile(
76-
r"^import( type)?( \w+,?)?(\s*{([^}]|\n)*})?(\s*from\s*)?'(.*)'$", re.MULTILINE)
76+
r"^(import|export)( type)?( \w+,?)?(\s*{([^}]|\n)*})?(\s*from\s*)?'(.*)'$", re.MULTILINE)
7777

7878
@staticmethod
7979
@functools.cache

0 commit comments

Comments
 (0)
Please sign in to comment.