diff --git a/app/react/package.json b/app/react/package.json index a8f5e418cdab..6fae058418d2 100644 --- a/app/react/package.json +++ b/app/react/package.json @@ -58,7 +58,6 @@ "json-stringify-safe": "^5.0.1", "json5": "^0.5.1", "lodash.flattendeep": "^4.4.0", - "lodash.pick": "^4.4.0", "postcss-flexbugs-fixes": "^3.2.0", "postcss-loader": "^2.0.9", "prop-types": "^15.6.0", diff --git a/app/vue/package.json b/app/vue/package.json index e01330bed9fd..7bf55d96b7c4 100644 --- a/app/vue/package.json +++ b/app/vue/package.json @@ -55,7 +55,6 @@ "json-loader": "^0.5.7", "json-stringify-safe": "^5.0.1", "json5": "^0.5.1", - "lodash.pick": "^4.4.0", "postcss-flexbugs-fixes": "^3.2.0", "postcss-loader": "^2.0.9", "prop-types": "^15.6.0", diff --git a/examples/cra-kitchen-sink/package.json b/examples/cra-kitchen-sink/package.json index 402b2e0b5830..87a71d86c1d7 100644 --- a/examples/cra-kitchen-sink/package.json +++ b/examples/cra-kitchen-sink/package.json @@ -11,7 +11,7 @@ "generate-addon-jest-testresults": "jest src/stories/addon-jest.test.js --env=jsdom --json --outputFile=src/stories/addon-jest.testresults.json" }, "dependencies": { - "eventemitter3": "^2.0.3", + "eventemitter3": "^3.0.0", "format-json": "^1.0.3", "glamor": "^2.20.40", "glamorous": "^4.11.0", diff --git a/examples/cra-kitchen-sink/src/stories/Logger.js b/examples/cra-kitchen-sink/src/stories/Logger.js index 5078018c7966..45f9a10f6e38 100644 --- a/examples/cra-kitchen-sink/src/stories/Logger.js +++ b/examples/cra-kitchen-sink/src/stories/Logger.js @@ -1,7 +1,7 @@ import React, { Component } from 'react'; import json from 'format-json'; import PropTypes from 'prop-types'; -import EventEmiter from 'eventemitter3'; +import EventEmitter from 'eventemitter3'; import uuid from 'uuid/v4'; @@ -29,7 +29,7 @@ const styles = { export default class Logger extends Component { static propTypes = { - emiter: PropTypes.instanceOf(EventEmiter).isRequired, + emitter: PropTypes.instanceOf(EventEmitter).isRequired, }; state = { @@ -37,12 +37,12 @@ export default class Logger extends Component { }; componentWillMount() { - const { emiter } = this.props; + const { emitter } = this.props; - emiter.on(EVENTS.TEST_EVENT_1, this.onEventHandler(EVENTS.TEST_EVENT_1)); - emiter.on(EVENTS.TEST_EVENT_2, this.onEventHandler(EVENTS.TEST_EVENT_2)); - emiter.on(EVENTS.TEST_EVENT_3, this.onEventHandler(EVENTS.TEST_EVENT_3)); - emiter.on(EVENTS.TEST_EVENT_4, this.onEventHandler(EVENTS.TEST_EVENT_4)); + emitter.on(EVENTS.TEST_EVENT_1, this.onEventHandler(EVENTS.TEST_EVENT_1)); + emitter.on(EVENTS.TEST_EVENT_2, this.onEventHandler(EVENTS.TEST_EVENT_2)); + emitter.on(EVENTS.TEST_EVENT_3, this.onEventHandler(EVENTS.TEST_EVENT_3)); + emitter.on(EVENTS.TEST_EVENT_4, this.onEventHandler(EVENTS.TEST_EVENT_4)); } onEventHandler = name => payload => { diff --git a/examples/cra-kitchen-sink/src/stories/index.stories.js b/examples/cra-kitchen-sink/src/stories/index.stories.js index 9819fca76307..0206683976e5 100644 --- a/examples/cra-kitchen-sink/src/stories/index.stories.js +++ b/examples/cra-kitchen-sink/src/stories/index.stories.js @@ -1,5 +1,5 @@ import React from 'react'; -import EventEmiter from 'eventemitter3'; +import EventEmitter from 'eventemitter3'; import { storiesOf } from '@storybook/react'; import { setOptions } from '@storybook/addon-options'; @@ -21,8 +21,8 @@ const EVENTS = { TEST_EVENT_4: 'test-event-4', }; -const emiter = new EventEmiter(); -const emit = emiter.emit.bind(emiter); +const emitter = new EventEmitter(); +const emit = emitter.emit.bind(emitter); const InfoButton = () => ( )) - .add('Logger', () => ); + .add('Logger', () => ); diff --git a/package.json b/package.json index b8166b769503..c0ba6657de55 100644 --- a/package.json +++ b/package.json @@ -74,7 +74,7 @@ "jest-enzyme": "^4.0.1", "jest-image-snapshot": "^2.2.0", "lerna": "^2.5.1", - "lint-staged": "^5.0.0", + "lint-staged": "^6.0.0", "lodash": "^4.17.4", "nodemon": "^1.12.1", "npmlog": "^4.1.2", @@ -112,8 +112,7 @@ "yarn lint:js --fix", "git add" ] - }, - "verbose": true + } }, "pr-log": { "skipLabels": [ diff --git a/yarn.lock b/yarn.lock index ec00d997ac6a..48f3ee21418f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4298,9 +4298,9 @@ eventemitter3@1.x.x: version "1.2.0" resolved "https://registry.yarnpkg.com/eventemitter3/-/eventemitter3-1.2.0.tgz#1c86991d816ad1e504750e73874224ecf3bec508" -eventemitter3@^2.0.3: - version "2.0.3" - resolved "https://registry.yarnpkg.com/eventemitter3/-/eventemitter3-2.0.3.tgz#b5e1079b59fb5e1ba2771c0a993be060a58c99ba" +eventemitter3@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/eventemitter3/-/eventemitter3-3.0.0.tgz#fc29ecf233bd19fbd527bb4089bbf665dc90c1e3" events@^1.0.0, events@^1.1.1: version "1.1.1" @@ -7051,14 +7051,15 @@ levn@^0.3.0, levn@~0.3.0: prelude-ls "~1.1.2" type-check "~0.3.2" -lint-staged@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/lint-staged/-/lint-staged-5.0.0.tgz#f1c670e03e2fdf3f3d0eb81f72d3bcf658770e54" +lint-staged@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/lint-staged/-/lint-staged-6.0.0.tgz#7ab7d345f2fe302ff196f1de6a005594ace03210" dependencies: app-root-path "^2.0.0" chalk "^2.1.0" commander "^2.11.0" cosmiconfig "^3.1.0" + debug "^3.1.0" dedent "^0.7.0" execa "^0.8.0" find-parent-dir "^0.3.0"