uhyo / eslint-plugin-import-access

https://www.npmjs.com/package/eslint-plugin-import-access
MIT License
355 stars 9 forks source link

An update is recommended. #14

Open eliot-liner opened 1 year ago

eliot-liner commented 1 year ago

This package is a very good project that implemented what I thought. However, there are some things that I would like to see updated further. It would be more perfect if we could restrict imports to each other even within the same folder path.

/**
 * @package
 * "./page/home.tsx"
 */

List the available paths as follows. Can you please update this feature??

A grammar that restricts all imports, a grammar that allows only some paths to be used

It would be nice to add these two.


If you don't have enough resources to work on this project, I'll blow a PR and add it! Just say something.

uhyo commented 1 year ago

Thanks for the suggestion!

However I'm not willing to mention file paths inside comments because they can't receive enough editor support. 🥲

As an alternative you can visit https://github.com/A-Shleifman/eslint-plugin-export-scope which is a fork of this project with richer configs.

eliot-liner commented 1 year ago

thank you recommanded for me