Skip to content

Create custom rules for Eslint around ConceptAs #32

Open

Description

@woksin
No description provided.

Activity

  1. jakhog commented on Jul 15, 2020

    @jakhog

    We should have rules that:

    1. Checks that the second parameter to a ConceptAs<,> definition is a string, with the same value as the name of the type. So, type ReasonId = ConceptAs<Guid, 'ReasonId'> is valid, but type ReasonId = ConceptAs<Guid, 'FilterId'> or type ReasonId = ConceptAs<Guid, 2> is not.
    2. Checks that ConceptAs<,> types should not be used on either sign of an equality comparison === == != !== (and possibly others).
    3. Checks that ConceptAs<,> types are not used as parameters in Map<,> and Set<> (and possibly others).
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions