@o3r/matching-configuration-name

Ensures that the configuration interface name matches the first parameter of computeItemIdentifier used beside the configuration interface to expose its ID (as generated by the configuration module).

How to use

Example :
{
  "@o3r/matching-configuration-name": "error"
}

Valid code example

Example :
import { computeItemIdentifier } from '@o3r/core';
import { Configuration } from '@o3r/core';

export interface MyFirstConfig extends Configuration {}

export const MY_CONFIG_ID = computeItemIdentifier('MyFirstConfig', '@example/config');

Invalid code example

Example :
import { computeItemIdentifier } from '@o3r/core';
import { Configuration } from '@o3r/core';

export interface MyConfig extends Configuration {}

export const MY_CONFIG_ID = computeItemIdentifier('InvalidName', '@example/config');

results matching ""

    No results matching ""