MelvinVermeer / eslint-plugin-no-relative-import-paths

90 stars 22 forks source link

[Feature Request] Allow allowChildFolder #20

Closed donaldpipowitch closed 1 year ago

donaldpipowitch commented 1 year ago

Thank you for the package! It would be lovely if next to allowSameFolder which allows import Something from "./something"; an allowChildFolder option would exists that allows import Something from "./some-child/something";. ❤️

rh-meowsa commented 1 year ago

This is already the behavior with allowSameFolder

see https://github.com/MelvinVermeer/eslint-plugin-no-relative-import-paths/blob/main/index.js#L14