Skip to content

Rule proposition: prop-specificity #19

Closed
@chrisvfritz

Description

@chrisvfritz

A rule to require a certain level of prop specificity could be useful. Two levels of specificity that come to mind:

  1. At least type(s) (e.g. myProp: String or myProp: [String, Number]) - object value for props
  2. At least definition object (e.g. myProp: { type: String }), making it easier to add other restrictions (e.g. required, validate) - requires object value for props and also for any properties on that object

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