-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build system: do not allow cross-module imports #8293
Conversation
e8df799
to
59e73d3
Compare
These adapters now fail the lint check because they import {createEidsArray} from 'userId/eids.js':
so there's more work involved in fixing that - keeping this in draft for now. |
so can createEidsArray return empty from core and userid can overwrite it? |
@patmmccann adapters are supposed to take ids from the request, e.g. The effect of this is that every one of those adapters will have that logic duplicated in their module file. |
this was the original intention of the |
Prebid.js/modules/userId/index.js Line 497 in 2ee4d3f
|
linking #8539 for possible enforcement |
* eslint validate-imports plugin: do not allow cross-module imports * Update onetag * fix conflicts * update imports * refactor audiencerun & jixie --------- Co-authored-by: Chris Huie <[email protected]> Co-authored-by: caseywhitmire <[email protected]>
Type of change
Description of change
This updates the
validate-imports
eslint plugin to fix an edge case where cross-module imports would sometimes be allowed if the imported module is a directory.