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
The former is ES6, and the latter is ES2016. This rule works ok in ES5 environments., but if you are using ES6 you will get a warning for [].includes every time you use ''.includes.
We could rewrite the rule to only fire when the object is a literal string or array but that won't catch many uses in the wild where the object is likely to be a variable.
The text was updated successfully, but these errors were encountered:
The former is ES6, and the latter is ES2016. This rule works ok in ES5 environments., but if you are using ES6 you will get a warning for [].includes every time you use ''.includes.
We could rewrite the rule to only fire when the object is a literal string or array but that won't catch many uses in the wild where the object is likely to be a variable.
The text was updated successfully, but these errors were encountered: