Skip to content

import/no-namespace ignore parameter does not support glob pattern #21011

Description

@JSteunou

Been migrating from ESLint to OXLint and spotted a difference on import/no-namespace.

Original rule allow glob pattern in ignore parameter, OXLint version does not work.

For example in a backend project with Drizzle ORM, the usual is to have schema and export / import all of those at once like

import * as schema from 'src/db/schema'

// or also in another module

import * as schema from '../db/schema'

For this case you want to set 'import/no-namespace': ['error', { ignore: ['*schema'] }] but it does not work. You have to be specific on the module import path and list all of them.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Fields

    Priority

    None yet

    Effort

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions