Skip to content

New-rule: force re-export style #3158

Open
@ClementEXWiki

Description

@ClementEXWiki

Here is a proposal for a new rule: forbidding imports followed by equivalent exports, and prefer re-export syntax instead.

Example:

// Forbidden
import { obj } from 'module'
export { obj }

// Allowed
export { obj } from 'module'

I didn't find any similar rule in the docs, and I think it would be nice to have one to enforce consistent styling of re-exports.

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