Closed
Description
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';