Skip to content

no-extraneous-deps globs don't also check against process.cwd() + glob #602

Closed

Description

I want to set my glob to tests/**, so that only the top-level "tests" dir can contain things that require dev deps.

However, this rule compares against the full absolute path of the file, which includes the path to the project root - which isn't really useful, and forces people to start 100% of their globs with "**/".

I'd like the rule to check both against the full filename, and also against path.join(process.cwd(), glob), to remove the need for this boilerplate in airbnb's shared config.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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