Given the following folder structure of a project:
my-project
├── client
│ └── foo.js
└── server
└── bar.js
I want to disallow that any file in the client folder can import any module from the server folder.
The following should be invalid in client/foo.js:
import bar from '../server/bar.js';
Given the following folder structure of a project:
I want to disallow that any file in the
clientfolder can import any module from theserverfolder.The following should be invalid in
client/foo.js: