Add Eslint rules to throw error when importing other modules from within modules directory.#3970
Add Eslint rules to throw error when importing other modules from within modules directory.#3970
Conversation
jsnellbaker
left a comment
There was a problem hiding this comment.
This does look good overall, though I'm not sure about the exceptions made for the prebidServer and userId sub-folders. Can we restructure the logic to still allow the rules there? I get it was done to allow the config file to be imported, but I'm curious if there's another way to go about this.
|
Just noticed this pull-request. I made a similar stab at it in #3976 If we can get public eslint plugins to work through configuration I think that's preferable; not sure if it's possible though so I ended up making a custom plugin. Some of things I wanted were:
If you can get those constraints working with this pull-request then I'm all for it, I'm not sure |
|
Closing this PR in favour of #3976 |
Type of change
Description of change
Related to #3964.