Skip to content

detect does not consider NODE_PATH environment variable #2653

Closed
@shanemcquillan

Description

@shanemcquillan

detect assumes you're executing eslint from your project's root directory. It should also check if react is installed in a provided NODE_PATH

This appears to be the problematic line:

https://github.com/yannickcr/eslint-plugin-react/blob/2598b1ee64df6f1814a5084075da9cd45deb8b8f/lib/util/version.js#L19

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions