Skip to content

Style guide contradicts ESLint rule for inline type imports #17222

@mabdullahabaid

Description

@mabdullahabaid

Documentation vs ESLint Rule Mismatch

Storybook stories currently use inline type imports, for example:

import { type Meta, type StoryObj } from '@storybook/react-vite';

This aligns with the ESLint rule:

  • @typescript-eslint/consistent-type-imports
    • prefer: 'type-imports'
    • fixStyle: 'inline-type-imports'

However, the style guide currently labels inline type imports as “bad” and recommends non-type imports instead. This contradicts both the lint rule and the patterns used across the current codebase.

Action needed: Update the style guide to reflect the enforced ESLint rule and existing usage

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    🔖 Planned

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions