Skip to content

Commit

Permalink
chore(lint): fix linting issues.....
Browse files Browse the repository at this point in the history
  • Loading branch information
Kent C. Dodds committed Sep 8, 2017
1 parent f49e90e commit 76c54eb
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 21 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"enzyme": "^2.9.1",
"enzyme-to-json": "^1.5.1",
"jest-serializer-html": "^4.0.0",
"kcd-scripts": "^0.3.1",
"kcd-scripts": "^0.6.1",
"preact": "^8.2.1",
"preact-render-to-string": "^3.6.3",
"prop-types": "^15.5.10",
Expand Down
10 changes: 5 additions & 5 deletions stories/.eslintrc
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
{
"extends": [
"../node_modules/eslint-config-kentcdodds/possible-errors.js",
"../node_modules/eslint-config-kentcdodds/es6/possible-errors.js",
"../node_modules/eslint-config-kentcdodds/react.js",
"../node_modules/eslint-config-kentcdodds/prettier.js",
"../node_modules/kcd-scripts/eslint.js",
],
"root": true,
Expand All @@ -13,6 +9,10 @@
"no-alert": "off",
"react/prop-types": "off",
"react/jsx-closing-bracket-location": "off",
"react/jsx-indent": "off"
"react/jsx-indent": "off",
"jsx-a11y/no-noninteractive-element-interactions": "off",
"prefer-const": "off",
"eqeqeq": "off",
"complexity": "off"
}
}
3 changes: 1 addition & 2 deletions stories/config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
/* eslint-disable import/no-extraneous-dependencies, import/no-unresolved, import/extensions */

import {configure} from '@storybook/react'
import {configure, storiesOf} from '@storybook/react'
import React from 'react'
import {storiesOf} from '@storybook/react'

import Basic from './examples/basic'
import Form from './examples/form'
Expand Down
1 change: 0 additions & 1 deletion stories/examples/controlled.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,6 @@ function ControlledAutocomplete({onInputChange, items, ...rest}) {
{({
getInputProps,
getItemProps,
getRootProps,
highlightedIndex,
inputValue,
isOpen,
Expand Down
4 changes: 2 additions & 2 deletions stories/examples/multiple.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ class MultipleAutocomplete extends React.Component {
overflowY: 'scroll',
}}
>
{items.map((item, index) => {
{items.map(item => {
const selected = this.props.values.indexOf(item) !== -1

const props = selected
Expand Down Expand Up @@ -220,7 +220,7 @@ class MultipleAutocomplete extends React.Component {
*
* Given that ['Black', 'Blue', 'Green'], and 'Blue' is selected
* Output: { 'Black': 0, 'Green': 1 }
*
*
* @param {String[]} items items
* @param {String[]} values selected items
* @return {Object} Mapping of selected items to their indices
Expand Down
8 changes: 1 addition & 7 deletions stories/examples/react-autosuggest.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,7 @@ function BasicAutocomplete({
onChange={onChange}
onUserAction={onUserAction}
>
{({
getInputProps,
getItemProps,
highlightedIndex,
isOpen,
selectedItem,
}) => (
{({getInputProps, getItemProps, highlightedIndex, isOpen}) => (
<div>
<input {...getInputProps({placeholder: 'Enter color here'})} />
{isOpen && (
Expand Down
1 change: 0 additions & 1 deletion stories/examples/semantic-ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@ function SemanticUIAutocomplete() {
{({
highlightedIndex,
isOpen,
toggleMenu,
clearSelection,
getRootProps,
inputValue,
Expand Down
1 change: 0 additions & 1 deletion stories/examples/windowing-with-react-tiny-virtual-list.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import React from 'react'
import ReactDOM from 'react-dom'
import VirtualList from 'react-tiny-virtual-list'
import matchSorter from 'match-sorter'
import Downshift from '../../src'
Expand Down
1 change: 0 additions & 1 deletion stories/examples/windowing-with-react-virtualized.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import React from 'react'
import ReactDOM from 'react-dom'
import {List} from 'react-virtualized'
import matchSorter from 'match-sorter'
import Downshift from '../../src'
Expand Down

0 comments on commit 76c54eb

Please sign in to comment.