fileoverview author Yann Braga
  import { CategoryId } from '../utils/constants' ; import { createStorybookRule } from '../utils/create-storybook-rule' ; export = createStorybookRule ( { name : 'no-stories-of' , defaultOptions : [ ] , meta : { type : 'problem' , docs : { description : 'storiesOf is deprecated and should not be used' , categories : [ CategoryId . CSF_STRICT ] , recommended : 'error' , } , messages : { doNotUseStoriesOf : 'storiesOf is deprecated and should not be used' , } , schema : [ ] , } , create ( context ) { return { ImportSpecifier ( node ) { if ( node . imported . name === 'storiesOf' ) { context . report ( { node , messageId : 'doNotUseStoriesOf' , } ) ; } } , } ; } , } ) ;