ota-meshi / eslint-plugin-regexp

ESLint plugin for finding regex mistakes and style guide violations.
https://ota-meshi.github.io/eslint-plugin-regexp/
MIT License
696 stars 10 forks source link

Prefer long unicode class names over the short ones #720

Closed fisker closed 6 months ago

fisker commented 7 months ago

Motivation

The long hand names are more readable.

Description

Same as above.

Examples

/* ✓ GOOD */
/\p{Letter}/v

/* ✗ BAD */
/\p{L}/v
/* ✓ GOOD */
 /\p{Script=Greek}/v

/* ✗ BAD */
/\p{sc=Greek}/v
ota-meshi commented 7 months ago

Thank you for the rule suggestion! That rule sounds good to me!