# disallow RegExp y flag (es/no-regexp-y-flag)

This rule reports ES2015 RegExp y flag as errors.

# Examples

⛔ Examples of incorrect code for this rule:

/*eslint es/no-regexp-y-flag: error */ const r1 = /foo/y
Now loading...

# 📚 References