import { ESLintUtils } from '@typescript-eslint/experimental-utils' ; import { docsUrl } from '../utils' ; import { StorybookRuleMeta } from '../types' ; export function createStorybookRule < TOptions extends readonly unknown [ ] , TMessageIds extends string > ( { create , meta , ... remainingConfig } ) { return ESLintUtils . RuleCreator ( docsUrl ) ( { ... remainingConfig , create , meta : { ... meta , docs : { ... meta . docs , } , } , } ) ; }