• Loading and importing form specs.

    Import a package or load a local file if regexp matches filePath.

    {
    "specs": {
    "\\.html$": "aaa-aaa",
    "\\.ext$": "./bbb-bbb.json"
    },
    }

    The below ways are deprecated.

    {
    "specs": "xxx-xxx",
    }
    {
    "specs": ["xxx-xxx", "./yyy-yyy.json"],
    }

    Returns

    Parameters

    • filePath: string

      The lintee file path

    • Optional specConfig: SpecConfig

      The spec property part of the config

    Returns Promise<{
        schemas: readonly [MLMLSpec, ExtendedSpec];
    }>

Generated using TypeDoc