💼 This rule is enabled in the ✅
🔧 This rule is automatically fixable by the
--fix CLI option.
require regex flags to be sorted
📖 Rule Details
.flags property of
RegExp objects are always sorted. Not sorting flags in regex literals misleads readers into thinking that the order may have some purpose which it doesn't.
This rule was introduced in eslint-plugin-regexp v0.9.0