Skip to content

node:test is not detected as <BUILTIN_MODULES> #142

@IsaiahByDayah

Description

@IsaiahByDayah

Your Environment

  • Prettier version: 3.0.3
  • node version: 20.11.0
  • package manager: pnpm@8
  • IDE: VScode

Describe the bug

Imports from node:test are not properly grouped with other builtin modules

To Reproduce

Try to import from node:test and notice that it is not included with other node:* imports

Expected behavior

imports from node:test would be grouped with the other builtin modules

Screenshots, code sample, etc

Screen.Recording.2024-01-29.at.11.35.45.PM.mov

Configuration File (cat .prettierrc, prettier.config.js, .prettier.js)

importOrder: [
    "",
    "<BUILTIN_MODULES>", // Node.js built-in modules
    "",
    "<THIRD_PARTY_MODULES>", // Imports not matched by other special words or groups.
    "",
    "^[.]", // relative imports
  ],

Error log

N/A

Contribute to @ianvs/prettier-plugin-sort-imports

  • I'm willing to fix this bug 🥇

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions