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

90 stars 22 forks source link

Feature: Add `allowedDepth` option for a limited amount of relative imports #34

Closed peterlenahan-apollo closed 3 months ago

peterlenahan-apollo commented 4 months ago

Implements #31

This will allow consumers to configure an allowed amount of relative imports.

For my use case I would like most imports to be absolute, but would like to allow 2 levels of relative paths such as ../../ or ../ to not be considered a warning.

Let me know what you think, thanks!

bayasdev commented 4 months ago

+1

chkp-sapirba commented 2 months ago

That's great, thanks!