Skip to content

Rule proposal: no-restricted-paths #155

Closed
@lo1tuma

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

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions