Skip to content
This repository was archived by the owner on Nov 15, 2019. It is now read-only.
This repository was archived by the owner on Nov 15, 2019. It is now read-only.

Using absolute paths in require calls #67

@janodvarko

Description

@janodvarko

It would be great to have unified approach to module paths we are passing to require calls.
We are currently mixing absolute and relative paths, which doesn't seem ideal.

Examples:

require("devtools/client/shared/vendor/react-prop-types");`
require("../utils/request-utils");

Preferring absolute paths might have positive impact:

  • easy to lint
  • easier refactoring (easier to find consumers of give module)
  • easier to handle ES Modules and import
  • easier search in general

WDYT?

Honza

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