Skip to content
New issue

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

Feature request: Add config for typescript #73

Open
iliubinskii opened this issue Jul 8, 2021 · 0 comments
Open

Feature request: Add config for typescript #73

iliubinskii opened this issue Jul 8, 2021 · 0 comments

Comments

@iliubinskii
Copy link

Hello,

Thank you for the plugin.

I am using typescript with target=ES2017 option.

If I have:

const y = { ...x };
const re = /(?<!a)b/u;

It is transpiled:

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant