export type CodeCheckerPluginOptions = { /** * The rules used to detect illegal code. * * use new RegExp() to create a RegExp object * * @default [] * * @example * ```ts * blackList: ['console.log', 'debugger'] * ``` */ blackList?: string[]; /** * List of allowed domain resources. * * use new RegExp() to create a RegExp object * * @default [] * * @example * ```ts * whiteList: ['http://test.example.com'] * ``` */ whiteList?: string[]; /** * Regular expression for domain matching. * use new RegExp() to create a RegExp object * * @default [new RegExp(`https?://[a-zA-Z0-9\\.-]+`, 'g')] * * @example * ```ts * whitelistExtractionRule: [new RegExp(`https?://[a-zA-Z0-9\\.-]+`, 'g')] * ``` */ whitelistExtractionRule?: string[]; };