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
const y = Object.assign({}, x);
const re = /(?<!a)b/u;
So, with typescript I can use spread operator, but not regexp lookback.
Your restrict-to-es2017 does not catch this.
My suggestion is to add configs for typescript that should disallow those features that are missing in respective ES version and not transpiled by typescript.
I think that typescript configs should include only regexp-related rules, but not sure.
The text was updated successfully, but these errors were encountered:
Hello,
Thank you for the plugin.
I am using typescript with target=ES2017 option.
If I have:
It is transpiled:
So, with typescript I can use spread operator, but not regexp lookback.
Your restrict-to-es2017 does not catch this.
My suggestion is to add configs for typescript that should disallow those features that are missing in respective ES version and not transpiled by typescript.
I think that typescript configs should include only regexp-related rules, but not sure.
The text was updated successfully, but these errors were encountered: