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

Parsing errors when using named groups in regexes #1174

Closed
Janpot opened this issue Aug 5, 2018 · 1 comment

Comments

@Janpot
Copy link

commented Aug 5, 2018

What version of standard?

11.0.1

What operating system, Node.js, and npm version?

macOS: 10.13.6
node: v10.7.0
npm: 6.10.0

What did you expect to happen?

It would be able to lint code that contains regexes with named groups (stage 4 proposal)

What actually happened?

It fails with a parsing error when you use a regex like that.

Parsing error: Invalid regular expression: /(?<name>[a-z]+)/: Invalid group
@LinusU

This comment has been minimized.

Copy link
Member

commented Aug 6, 2018

To use experimental syntax you have to use babel-eslint, please see this part of the documentation:

https://github.com/standard/standard#how-do-i-use-experimental-javascript-es-next-features

@LinusU LinusU closed this Aug 6, 2018

@lock lock bot locked as resolved and limited conversation to collaborators Nov 4, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
2 participants
You can’t perform that action at this time.