Skip to content

import/no-internal-modules is not a great substitution for TSLint's no-submodule-imports #1111

Open
@ProdigyChrisLight

Description

@ProdigyChrisLight

🐛 Bug Report

  • tslint-to-eslint-config version: 2.6.0
  • ESLint version: 7.26.0
  • Node version: 10.16.1

Actual Behavior

Relates to: #175

import/no-internal-modules is not a great substitution for TSLint's no-submodule-imports. no-submodule-imports prevents submodules from other node packages from being imported, where import/no-internal-modules will reject submodule imports from the same package. The latter is configurable, but not in a way that provides parity with the former.

Expected Behavior

A rule should be substituted that provides the same behavior as no-submodule-imports. This issue is being discussed here: import-js/eslint-plugin-import#1430

Reproduction

Examples can be found at import-js/eslint-plugin-import#1430

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: incorrect converterRule converter with incomplete, incorrect, or invalid rule names and/or argumentsgood first issueGood for newcomers; welcome aboard!status: accepting prsPlease, send in a PR to resolve this! ✨

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions