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
When relying on ASI in JavaScript, there are some pitfalls you need to be aware of.
To avoid these, there is an ESLint rule called no-unexpected-multiline. In the linked documentation article there's also more information about the pitfalls.
There are a few gotchas with ASI. However, if you are using ESLint (which you should) and you enable the no-unexpected-multiline rule, then you're safe. Just make sure that your build pipeline will fail if that rule is broken because most assuredly your app will!
So I'd like to see something similar in dprint, to be able to safely rely on ASI.
The text was updated successfully, but these errors were encountered:
When relying on ASI in JavaScript, there are some pitfalls you need to be aware of.
To avoid these, there is an ESLint rule called no-unexpected-multiline. In the linked documentation article there's also more information about the pitfalls.
A quote from https://kentcdodds.com/blog/semicolons-in-javascript-a-preference
So I'd like to see something similar in dprint, to be able to safely rely on ASI.
The text was updated successfully, but these errors were encountered: