You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Idea for the logic for when to report the warning:
Found a ( or [ in parse_expression_remainder
( or [ has a leading newline
The ('s or ['s column is equal to the statement start's column
Logic 3 is hard to implement currently because quick-lint-js does not track column numbers. Perhaps we can get away with just logic 1 and 2. We would need to check the rate of false positives to decide whether we need logic 3 or not.
strager
changed the title
12$: warn on missing semicolon before (expression)
12$: warn on missing semicolon before (expression) or [array]
Oct 10, 2023
We need to make sure that a semicolon is legal before reporting the warning. In the following example, a semicolon is not legal before (y) or [z], so we should not report any diagnostic:
The text was updated successfully, but these errors were encountered: