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
{{ message }}
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.
Template strings (new feature of TS 1.4) don't seem to be properly handled.
Working example:
throw new Error(`ruleSet "${ruleSet.description}" has no defined output tied to type: ${rule.type}`);
Not working example:
throw new Error(`ruleSet "${ruleSet.description}" has no defined output for type: ${rule.type}`);
Output:
(curly) service.ts[89, 93]: for statements must be braced
(no-unused-expression) service.ts[89, 103]: expected an assignment or function call
(no-unused-expression) service.ts[89, 103]: expected an assignment or function call
(no-unused-expression) service.ts[89, 105]: expected an assignment or function call
(no-unreachable) service.ts[89, 93]: unreachable code
(semicolon) service.ts[89, 113]: missing semicolon
In this example, for was interpreted as an instruction instead of a template string. It results in several errors.
The text was updated successfully, but these errors were encountered:
Template strings (new feature of TS 1.4) don't seem to be properly handled.
Working example:
Not working example:
Output:
In this example, for was interpreted as an instruction instead of a template string. It results in several errors.
The text was updated successfully, but these errors were encountered: