Skip to content

Adopt eslint-import-context for correct rule context with cwd #12

@JounQin

Description

@JounQin

https://github.com/un-ts/eslint-import-context

Usage:

const context = useRuleContext()
const cwd = context?.cwd || process.cwd() // fallback to previous behavior when `context.cwd` unavailable for `eslint-plugin-import` and old `eslint-plugin-import-x` versions

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions