Open woksin opened 4 years ago
We should have rules that:
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.ConceptAs<,>
types should not be used on either sign of an equality comparison ===
==
!=
!==
(and possibly others).ConceptAs<,>
types are not used as parameters in Map<,>
and Set<>
(and possibly others).
See https://eslint.org/docs/developer-guide/working-with-rules