Limegrass / eslint-plugin-import-alias

MIT License
15 stars 4 forks source link

Overrides should include granularity by declaration type #10

Open Limegrass opened 9 months ago

Limegrass commented 9 months ago

Users have brought up the use case of overriding and allowing certain files to use relative imports instead of forcing absolute imports. One particular use case is that of barrel files.

While features have been added to enable certain files to avoid the lint, those features are enabled for all types of declarations. In the case of barrel files, users may conceivably only want their re-exports to be permitted to use relative paths and keep actual imports as absolute paths.

Limegrass commented 9 months ago

Haven't and may not look into implementing this. Definitely make some noise if this affects your use case though.