diff --git a/addons/storyshots/src/index.js b/addons/storyshots/src/index.js index 7c8acac5213c..4eac310fffc8 100644 --- a/addons/storyshots/src/index.js +++ b/addons/storyshots/src/index.js @@ -20,7 +20,8 @@ const pkg = readPkgUp.sync().pkg; const hasDependency = name => (pkg.devDependencies && pkg.devDependencies[name]) || - (pkg.dependencies && pkg.dependencies[name]) || fs.existsSync(path.join('node_modules', name, 'package.json')); + (pkg.dependencies && pkg.dependencies[name]) || + fs.existsSync(path.join('node_modules', name, 'package.json')); export default function testStorySnapshots(options = {}) { addons.setChannel(createChannel()); diff --git a/app/react-native/src/server/addons.js b/app/react-native/src/server/addons.js index 7a3afc8b7ae1..131036e4c680 100644 --- a/app/react-native/src/server/addons.js +++ b/app/react-native/src/server/addons.js @@ -2,7 +2,5 @@ import deprecate from 'util-deprecate'; import '@storybook/addon-actions/register'; import '@storybook/addon-links/register'; -deprecate( - () => {}, - '@storybook/react-native/addons is deprecated. See https://storybook.js.org/addons/using-addons/' -)(); +deprecate(() => {}, +'@storybook/react-native/addons is deprecated. See https://storybook.js.org/addons/using-addons/')(); diff --git a/app/react/addons.js b/app/react/addons.js index 71b3fb1f83e5..93f01c1367db 100644 --- a/app/react/addons.js +++ b/app/react/addons.js @@ -2,7 +2,5 @@ import deprecate from 'util-deprecate'; import '@storybook/addon-actions/register'; import '@storybook/addon-links/register'; -deprecate( - () => {}, - '@storybook/react/addons is deprecated. See https://storybook.js.org/addons/using-addons/' -)(); +deprecate(() => {}, +'@storybook/react/addons is deprecated. See https://storybook.js.org/addons/using-addons/')(); diff --git a/app/react/src/server/utils.js b/app/react/src/server/utils.js index 8c740d6f4a30..71396437a03d 100644 --- a/app/react/src/server/utils.js +++ b/app/react/src/server/utils.js @@ -2,10 +2,8 @@ import path from 'path'; import fs from 'fs'; import deprecate from 'util-deprecate'; -const fallbackHeadUsage = deprecate( - () => {}, - 'Usage of head.html has been deprecated. Please rename head.html to preview-head.html' -); +const fallbackHeadUsage = deprecate(() => {}, +'Usage of head.html has been deprecated. Please rename head.html to preview-head.html'); export function parseList(str) { return str.split(','); diff --git a/app/vue/src/server/utils.js b/app/vue/src/server/utils.js index 8c740d6f4a30..71396437a03d 100644 --- a/app/vue/src/server/utils.js +++ b/app/vue/src/server/utils.js @@ -2,10 +2,8 @@ import path from 'path'; import fs from 'fs'; import deprecate from 'util-deprecate'; -const fallbackHeadUsage = deprecate( - () => {}, - 'Usage of head.html has been deprecated. Please rename head.html to preview-head.html' -); +const fallbackHeadUsage = deprecate(() => {}, +'Usage of head.html has been deprecated. Please rename head.html to preview-head.html'); export function parseList(str) { return str.split(','); diff --git a/examples/cra-kitchen-sink/src/stories/index.js b/examples/cra-kitchen-sink/src/stories/index.js index 04373be6ead7..6668fb687166 100644 --- a/examples/cra-kitchen-sink/src/stories/index.js +++ b/examples/cra-kitchen-sink/src/stories/index.js @@ -157,12 +157,11 @@ storiesOf('AddonInfo.DocgenButton', module).addWithInfo('DocgenButton', 'Some De )); -storiesOf( - 'AddonInfo.FlowTypeButton', - module -).addWithInfo('FlowTypeButton', 'Some Description', () => ( - -)); +storiesOf('AddonInfo.FlowTypeButton', module).addWithInfo( + 'FlowTypeButton', + 'Some Description', + () => +); storiesOf('App', module).add('full app', () => ); diff --git a/lib/ui/example/client/provider.js b/lib/ui/example/client/provider.js index e19f17b97266..39792120dbe1 100644 --- a/lib/ui/example/client/provider.js +++ b/lib/ui/example/client/provider.js @@ -32,11 +32,9 @@ export default class ReactProvider extends Provider { inp = i; }} value={ - this.api.getQueryParam('text') === undefined ? ( - 'ONE' - ) : ( - this.api.getQueryParam('text') - ) + this.api.getQueryParam('text') === undefined + ? 'ONE' + : this.api.getQueryParam('text') } onChange={() => { this.api.setQueryParams({ text: inp.value }); diff --git a/lib/ui/src/modules/ui/components/left_panel/text_filter.js b/lib/ui/src/modules/ui/components/left_panel/text_filter.js index 9161adfd3d35..0e88d0ffdc37 100755 --- a/lib/ui/src/modules/ui/components/left_panel/text_filter.js +++ b/lib/ui/src/modules/ui/components/left_panel/text_filter.js @@ -97,11 +97,11 @@ export default class TextFilter extends React.Component { /> {this.state.query && - this.state.query.length && ( - - )} + this.state.query.length && ( + + )} ); }