We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example: source:
class A { handleInputFocus(): void { (<HTMLInputElement>this._input.nativeElement).select() } }
expected output: the same as source.
actual output:
class A { handleInputFocus(): void { ;(<HTMLInputElement>this._input.nativeElement).select() } }
a semicolon is inserted before the left parentheses, which should not be.
The text was updated successfully, but these errors were encountered:
This is actually intended. As described in the options:
Semicolons - Print semicolons at the ends of statements. Valid options: true - add a semicolon at the end of every statement false - only add semicolons at the beginning of lines that may introduce ASI failures
Semicolons - Print semicolons at the ends of statements.
Valid options:
See #1935 and the issues it links to.
Sorry, something went wrong.
I use tslint check the code for typescript files.
However, I notice that, after i use prettier to format ts files, all that warning tslint is complaining about are some code like:
{ ;(<SomeType>varibale).somemethod() //... }
Since the semi-inserted statement is the first statement within a code block, there is no way it would raise ASI failures. Am i right?
#736 (comment)
No branches or pull requests
Example:
source:
expected output:
the same as source.
actual output:
a semicolon is inserted before the left parentheses, which should not be.
The text was updated successfully, but these errors were encountered: