johvin / eslint-import-resolver-alias

a simple Node behavior import resolution plugin for eslint-plugin-import, supporting module alias
MIT License
180 stars 10 forks source link

Adds an option to specify additional matching group(s) in the alias string #24

Open vorlovsky opened 2 years ago

vorlovsky commented 2 years ago

Handling the case of presence of some additional matching group(s) in the alias string, e.g. you should be able to write a pattern [["~(\\w+)", "./src/"]] instead of specifying each alias explicitly [["~redux", "./src/redux"], ["~config", "./src/config"]]