Skip to content

Add lint rules for recommended imports and prop usage #101

@joshblack

Description

@joshblack
Member

It'd be great to have two specific rules that we can add to over time:

  • use-preferred-imports
  • use-preferred-props

These rules would encapsulate our preferred way to import components and prop usage for a component. This could help with migrating components across entrypoints or prop renames.

Activity

lesliecdubs

lesliecdubs commented on Oct 18, 2023

@lesliecdubs
Member

@joshblack thanks for filing. Would it be helpful for us to triage this issue in our PRC Planning sync, or is this a placeholder for a task you are planning to take on?

joshblack

joshblack commented on Oct 19, 2023

@joshblack
MemberAuthor

@lesliecdubs definitely would be useful to triage, I'll add it to the board 👍

Also opened up: #102 to see if we can get them auto-added, as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @joshblack@lesliecdubs

        Issue actions

          Add lint rules for recommended imports and prop usage · Issue #101 · primer/eslint-plugin-primer-react