vitonsky / eslint-plugin-paths

A plugin for ESLint, to force use paths aliases from tsconfig
https://www.npmjs.com/package/eslint-plugin-paths
Apache License 2.0
57 stars 1 forks source link

Support full featured glob patterns in paths #35

Open vitonsky opened 6 months ago

vitonsky commented 6 months ago

Support full featured glob patterns instead of trivial cases like @utils/* and src/utils/*.

Currently paths like src/foo/*/bar will not work, because code actually expects that paths will ends on /*. It's fine, because this is most used case for paths configuration, but we may have edge cases.

Also add tests with config where aliases will be something like @foo and paths will be something like src/foo/*/bar, src/bar/**/baz