Skip to content
This repository has been archived by the owner on Sep 10, 2022. It is now read-only.

Commit

Permalink
Fixed eslint errors (caused by prettier/prettier plugin) (#400)
Browse files Browse the repository at this point in the history
  • Loading branch information
Andarist authored and istarkov committed Jun 7, 2017
1 parent d1f1b0c commit c328de2
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 14 deletions.
6 changes: 4 additions & 2 deletions scripts/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,10 @@ try {
)

while (
!(!nextVersion ||
(semver.valid(nextVersion) && semver.gt(nextVersion, version)))
!(
!nextVersion ||
(semver.valid(nextVersion) && semver.gt(nextVersion, version))
)
) {
nextVersion = readline.question(
`Must provide a valid version that is greater than ${version}, ` +
Expand Down
4 changes: 2 additions & 2 deletions src/packages/recompose/__tests__/branch-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ test('branch tests props and applies one of two HoCs, for true and false', () =>
withProps({ name: 'Heisenberg' }),
withProps({ name: 'Walter' })
)
)(({ isBad, name, updateIsBad }) => (
)(({ isBad, name, updateIsBad }) =>
<div>
<div className="isBad">{isBad ? 'true' : 'false'}</div>
<div className="name">{name}</div>
<button onClick={() => updateIsBad(b => !b)}>Toggle</button>
</div>
))
)

expect(SayMyName.displayName).toBe('withState(branch(Component))')

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import React, { Component } from 'react'
import createReactClass from 'create-react-class'
import PropTypes from 'prop-types'
import isReferentiallyTransparentFunctionComponent
from '../isReferentiallyTransparentFunctionComponent'
import isReferentiallyTransparentFunctionComponent from '../isReferentiallyTransparentFunctionComponent'

test('isReferentiallyTransparentFunctionComponent returns false for strings', () => {
expect(isReferentiallyTransparentFunctionComponent('div')).toBe(false)
Expand Down
3 changes: 1 addition & 2 deletions src/packages/recompose/__tests__/toClass-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,8 @@ test('toClass passes context and props correctly', () => {
withContext({ store: PropTypes.object }, props => ({ store: props.store }))
)(Provider)

const StatelessComponent = (props, context) => (
const StatelessComponent = (props, context) =>
<div data-props={props} data-context={context} />
)

StatelessComponent.contextTypes = { store: PropTypes.object }

Expand Down
4 changes: 2 additions & 2 deletions src/packages/recompose/__tests__/withHandlers-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ test('withHandlers passes handlers to base component', () => {
})
)

const Form = enhanceForm(({ value, onChange, onSubmit }) => (
const Form = enhanceForm(({ value, onChange, onSubmit }) =>
<form onSubmit={onSubmit}>
<label>
Value
<input type="text" value={value} onChange={onChange} />
</label>
<p>{value}</p>
</form>
))
)

const wrapper = mount(<Form />)
const input = wrapper.find('input')
Expand Down
3 changes: 1 addition & 2 deletions src/packages/recompose/createEagerElement.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import createEagerElementUtil from './utils/createEagerElementUtil'
import isReferentiallyTransparentFunctionComponent
from './isReferentiallyTransparentFunctionComponent'
import isReferentiallyTransparentFunctionComponent from './isReferentiallyTransparentFunctionComponent'

const createEagerElement = (type, props, children) => {
const isReferentiallyTransparent = isReferentiallyTransparentFunctionComponent(
Expand Down
3 changes: 1 addition & 2 deletions src/packages/recompose/createEagerFactory.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import createEagerElementUtil from './utils/createEagerElementUtil'
import isReferentiallyTransparentFunctionComponent
from './isReferentiallyTransparentFunctionComponent'
import isReferentiallyTransparentFunctionComponent from './isReferentiallyTransparentFunctionComponent'

const createFactory = type => {
const isReferentiallyTransparent = isReferentiallyTransparentFunctionComponent(
Expand Down

0 comments on commit c328de2

Please sign in to comment.