You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RegExp() and new RegExp() are no different, but would be nice to enforce a consistent style. This rule should enforce new RegExp() as that's how it's commonly used and matches other constructors like new Error() and user-land constructors. Should be fixable.
RegExp()
andnew RegExp()
are no different, but would be nice to enforce a consistent style. This rule should enforcenew RegExp()
as that's how it's commonly used and matches other constructors likenew Error()
and user-land constructors. Should be fixable.For reference, similar rule: https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/rules/throw-new-error.js
I think we could use AST selectors for this: http://eslint.org/docs/developer-guide/selectors
The text was updated successfully, but these errors were encountered: