Juri Strumpflohner c9cac2d57a
fix(react): pass linter option properly to storybook cypress setup (#2903)
* fix(react): pass linter option to cypress storybook setup

* fix(react): add storybook linter defaults
2020-04-28 20:28:54 -04:00

920 B

configuration

Add storybook configuration to a ui library

Usage

nx generate configuration ...

By default, Nx will search for configuration in the default collection provisioned in angular.json.

You can specify the collection explicitly as follows:

nx g @nrwl/storybook:configuration ...

Show what will be generated without writing to disk:

nx g configuration ... --dry-run

Options

configureCypress

Type: boolean

Run the cypress-configure schematic

js

Default: false

Type: boolean

Generate JavaScript files rather than TypeScript files

linter

Default: tslint

Type: string

Possible values: eslint, tslint

The tool to use for running lint checks.

name

Type: string

Library name

uiFramework

Type: string

Possible values: @storybook/angular, @storybook/react, @storybook/web

Storybook UI Framework to use