@o3r/no-multiple-type-configuration-property

Ensures that the configuration property does not accept multiple types.

How to use

Example :
{
  "@o3r/no-multiple-type-configuration-property": [
    "error",
    {
      "supportedInterfaceNames": ["NestedConfiguration", "Configuration", "CustomConfigurationInterface"]
    }
  ]
}

Valid code example

Example :
export interface MyFirstConfig extends Configuration {
  myProp: string;
}

Invalid code example

Example :
export interface MyConfig extends Configuration {
  myProp: string | number;
}

results matching ""

    No results matching ""