disallow RegExp lookbehind assertions (es/no-regexp-lookbehind-assertions)

This rule reports ES2018 RegExp lookbehind assertions as errors.

Examples

⛔ Examples of incorrect code for this rule:

/*eslint es/no-regexp-lookbehind-assertions: error */ const r1 = /(?<=a)b/ const r2 = /(?<!a)b/
Now loading...

📚 References

Last Updated: 8/27/2019, 11:29:02 AM