# regexp/strict

disallow not strictly valid regular expressions

  • โš™๏ธ This rule is included in "plugin:regexp/recommended".
  • ๐Ÿ”ง The --fix option on the command line (opens new window) can automatically fix some of the problems reported by this rule.

# ๐Ÿ“– Rule Details

This rule disallows not strictly valid regular expressions.

An invalid pattern in a regular expression literal is a SyntaxError when the code is parsed. However, it is not always strictly checked.

Depending on the syntax defined in Annex B (opens new window) of the ECMAScript specification, some ambiguous pattern syntax may also succeed in parsing as a valid pattern. This rule reports these ambiguous patterns.

Now loading...

# ๐Ÿ”ง Options


# ๐Ÿ“š Further reading

# ๐Ÿš€ Version

This rule was introduced in eslint-plugin-regexp v0.12.0

# ๐Ÿ” Implementation

Last Updated: 6/25/2022, 12:32:38 PM