Skip to content

Commit

Permalink
chore: upgrade kcd-scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Kent C. Dodds committed Sep 23, 2017
1 parent 47a20ae commit 3c6406d
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 14 deletions.
7 changes: 0 additions & 7 deletions lint-staged.config.js

This file was deleted.

4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
"typings": "typings/index.d.ts",
"scripts": {
"add-contributor": "kcd-scripts contributors add",
"doc": "doctoc README.md --maxlevel 2 --notitle",
"build": "kcd-scripts build --bundle --p-react",
"lint": "kcd-scripts lint",
"test": "kcd-scripts test",
Expand Down Expand Up @@ -48,11 +47,10 @@
},
"devDependencies": {
"@storybook/react": "^3.2.3",
"doctoc": "^1.3.0",
"enzyme": "^2.9.1",
"enzyme-to-json": "^2.0.0",
"jest-serializer-html": "^4.0.0",
"kcd-scripts": "^0.18.2",
"kcd-scripts": "^0.20.2",
"preact": "^8.2.1",
"preact-render-to-string": "^3.6.3",
"prop-types": "^15.5.10",
Expand Down
2 changes: 1 addition & 1 deletion src/__tests__/utils.pick-state.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ test('pickState only picks state that downshift cares about', () => {
const result = pickState(otherStateToSet)
const expected = {isOpen: true}
const resultKeys = Object.keys(result)
const expectedKeys = Object.keys(expected)
const expectedKeys = Object.keys(expected)
resultKeys.sort()
expectedKeys.sort()
expect(result).toEqual(expected)
Expand Down
3 changes: 2 additions & 1 deletion stories/examples/basic.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ function BasicAutocomplete({items, onChange}) {
>
{(inputValue
? matchSorter(items, inputValue)
: items).map((item, index) => (
: items
).map((item, index) => (
<Item
key={item}
{...getItemProps({
Expand Down
3 changes: 2 additions & 1 deletion stories/examples/controlled.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,8 @@ function ControlledAutocomplete({onInputChange, items, ...rest}) {
<div style={{border: '1px solid rgba(34,36,38,.15)'}}>
{(inputValue
? matchSorter(items, inputValue)
: items).map((item, index) => (
: items
).map((item, index) => (
<Item
key={item}
{...getItemProps({
Expand Down
3 changes: 2 additions & 1 deletion stories/examples/semantic-ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,8 @@ function SemanticUIAutocomplete() {
<Menu>
{(inputValue
? advancedFilter(items, inputValue)
: items).map((item, index) => (
: items
).map((item, index) => (
<Item
key={item.code}
{...getItemProps({
Expand Down

0 comments on commit 3c6406d

Please sign in to comment.