Skip to content
Permalink
Browse files
Docs: fix 'When Not To Use' in prefer-named-capture-group (refs #14959)…
… (#14969)
  • Loading branch information
mdjermanovic committed Aug 24, 2021
1 parent 2d18db6 commit b301069981dc1dcca51df2813dcebdca8c150502
Showing 1 changed file with 1 addition and 1 deletion.
@@ -36,7 +36,7 @@ foo.exec('bar').groups.id; // Retrieve the group result.

## When Not To Use It

If you are targeting ECMAScript 2017 and/or older environments, you can disable this rule, because this ECMAScript feature is only supported in ECMAScript 2018 and/or newer environments.
If you are targeting ECMAScript 2017 and/or older environments, you should not use this rule, because this ECMAScript feature is only supported in ECMAScript 2018 and/or newer environments.

## Related Rules

0 comments on commit b301069

Please sign in to comment.