diff --git a/lint-staged.config.js b/lint-staged.config.js deleted file mode 100644 index 4e01dcecd..000000000 --- a/lint-staged.config.js +++ /dev/null @@ -1,7 +0,0 @@ -const baseConfig = require('kcd-scripts/config').lintStaged - -module.exports = Object.assign(baseConfig, { - linters: Object.assign(baseConfig.linters, { - '*.md': 'doc', - }), -}) diff --git a/package.json b/package.json index b303a0e93..299b4020b 100644 --- a/package.json +++ b/package.json @@ -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", @@ -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", diff --git a/src/__tests__/utils.pick-state.js b/src/__tests__/utils.pick-state.js index c1eb3e8c5..8312644db 100644 --- a/src/__tests__/utils.pick-state.js +++ b/src/__tests__/utils.pick-state.js @@ -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) diff --git a/stories/examples/basic.js b/stories/examples/basic.js index 44d335577..193f57033 100644 --- a/stories/examples/basic.js +++ b/stories/examples/basic.js @@ -129,7 +129,8 @@ function BasicAutocomplete({items, onChange}) { > {(inputValue ? matchSorter(items, inputValue) - : items).map((item, index) => ( + : items + ).map((item, index) => ( {(inputValue ? matchSorter(items, inputValue) - : items).map((item, index) => ( + : items + ).map((item, index) => ( {(inputValue ? advancedFilter(items, inputValue) - : items).map((item, index) => ( + : items + ).map((item, index) => (