Skip to content

detect up a directory then down the same directory #471

@graingert

Description

@graingert

I have a structure like:

/ham/egg/chips/index.js
/ham/egg/foo.js

then in /ham/egg/chips/index.js I sometimes have code that accidental ends up like:

import x from '../../egg/foo.js'

but I'd much rather it be:

import x from '../foo.js'

Metadata

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