ota-meshi / eslint-plugin-regexp

ESLint plugin for finding regex mistakes and style guide violations.

Home Page:https://ota-meshi.github.io/eslint-plugin-regexp/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sort string alternatives

RunDevelopment opened this issue · comments

The order of string alternatives (e.g. \q{foo|bar}) does not matter, so it would be nice if they could automatically be sorted. The semantics and functionality should be the same as sort-alternatives.

I'm not sure whether sorting string alternatives should be a new rule or whether it should be part of sort-alterantives.

Good idea!
In my opinion, it's a feature included in sort-alternatives rule.