diff --git a/src/plugins/typescript.js b/src/plugins/typescript.js index 5add49c8a2..2db42ec0b7 100644 --- a/src/plugins/typescript.js +++ b/src/plugins/typescript.js @@ -1186,6 +1186,19 @@ export default (superClass: Class): Class => // OVERRIDES // ====================================================== + isExportDefaultSpecifier(): boolean { + if ( + this.match(tt.name) && + (this.state.value === "type" || + this.state.value === "interface" || + this.state.value === "enum") + ) { + return false; + } + + return super.isExportDefaultSpecifier(); + } + parseAssignableListItem( allowModifiers: ?boolean, decorators: N.Decorator[], diff --git a/test/fixtures/typescript/regression/is-default-export/actual.js b/test/fixtures/typescript/regression/is-default-export/actual.js new file mode 100644 index 0000000000..69fc1e55f0 --- /dev/null +++ b/test/fixtures/typescript/regression/is-default-export/actual.js @@ -0,0 +1,3 @@ +export type T = number; +export enum E {} +export interface I {} diff --git a/test/fixtures/typescript/regression/is-default-export/expected.json b/test/fixtures/typescript/regression/is-default-export/expected.json new file mode 100644 index 0000000000..7813f87936 --- /dev/null +++ b/test/fixtures/typescript/regression/is-default-export/expected.json @@ -0,0 +1,213 @@ +{ + "type": "File", + "start": 0, + "end": 62, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 21 + } + }, + "program": { + "type": "Program", + "start": 0, + "end": 62, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 21 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ExportNamedDeclaration", + "start": 0, + "end": 23, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 23 + } + }, + "specifiers": [], + "source": null, + "declaration": { + "type": "TSTypeAliasDeclaration", + "start": 7, + "end": 23, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 23 + } + }, + "id": { + "type": "Identifier", + "start": 12, + "end": 13, + "loc": { + "start": { + "line": 1, + "column": 12 + }, + "end": { + "line": 1, + "column": 13 + }, + "identifierName": "T" + }, + "name": "T" + }, + "typeAnnotation": { + "type": "TSNumberKeyword", + "start": 16, + "end": 22, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 22 + } + } + } + } + }, + { + "type": "ExportNamedDeclaration", + "start": 24, + "end": 40, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 16 + } + }, + "specifiers": [], + "source": null, + "declaration": { + "type": "TSEnumDeclaration", + "start": 31, + "end": 40, + "loc": { + "start": { + "line": 2, + "column": 7 + }, + "end": { + "line": 2, + "column": 16 + } + }, + "id": { + "type": "Identifier", + "start": 36, + "end": 37, + "loc": { + "start": { + "line": 2, + "column": 12 + }, + "end": { + "line": 2, + "column": 13 + }, + "identifierName": "E" + }, + "name": "E" + }, + "members": [] + } + }, + { + "type": "ExportNamedDeclaration", + "start": 41, + "end": 62, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 21 + } + }, + "specifiers": [], + "source": null, + "declaration": { + "type": "TSInterfaceDeclaration", + "start": 48, + "end": 62, + "loc": { + "start": { + "line": 3, + "column": 7 + }, + "end": { + "line": 3, + "column": 21 + } + }, + "id": { + "type": "Identifier", + "start": 58, + "end": 59, + "loc": { + "start": { + "line": 3, + "column": 17 + }, + "end": { + "line": 3, + "column": 18 + }, + "identifierName": "I" + }, + "name": "I" + }, + "body": { + "type": "TSInterfaceBody", + "start": 60, + "end": 62, + "loc": { + "start": { + "line": 3, + "column": 19 + }, + "end": { + "line": 3, + "column": 21 + } + }, + "body": [] + } + } + } + ], + "directives": [] + } +} \ No newline at end of file diff --git a/test/fixtures/typescript/regression/is-default-export/options.json b/test/fixtures/typescript/regression/is-default-export/options.json new file mode 100644 index 0000000000..789d6a6a8f --- /dev/null +++ b/test/fixtures/typescript/regression/is-default-export/options.json @@ -0,0 +1,3 @@ +{ + "plugins": ["exportExtensions", "typescript"] +} diff --git a/yarn.lock b/yarn.lock index a9df00a96a..06c6d97827 100644 --- a/yarn.lock +++ b/yarn.lock @@ -58,7 +58,7 @@ acorn@^3.0.4: version "3.3.0" resolved "https://registry.yarnpkg.com/acorn/-/acorn-3.3.0.tgz#45e37fb39e8da3f25baee3ff5369e2bb5f22017a" -acorn@^5.0.1: +acorn@^5.1.1: version "5.1.1" resolved "https://registry.yarnpkg.com/acorn/-/acorn-5.1.1.tgz#53fe161111f912ab999ee887a90a0bc52822fd75" @@ -366,14 +366,6 @@ babel-code-frame@7.0.0-alpha.12: esutils "^2.0.2" js-tokens "^3.0.0" -babel-code-frame@7.0.0-alpha.15: - version "7.0.0-alpha.15" - resolved "https://registry.yarnpkg.com/babel-code-frame/-/babel-code-frame-7.0.0-alpha.15.tgz#381d3e06e17b73201129c4a019e8b62d84e2dde3" - dependencies: - chalk "^1.1.0" - esutils "^2.0.2" - js-tokens "^3.0.0" - babel-code-frame@7.0.0-alpha.18: version "7.0.0-alpha.18" resolved "https://registry.yarnpkg.com/babel-code-frame/-/babel-code-frame-7.0.0-alpha.18.tgz#f4b0bf340fde0b60bdd06b689ba949d5ff7fc909" @@ -398,26 +390,6 @@ babel-code-frame@^6.22.0: esutils "^2.0.2" js-tokens "^3.0.0" -babel-core@7.0.0-alpha.15: - version "7.0.0-alpha.15" - resolved "https://registry.yarnpkg.com/babel-core/-/babel-core-7.0.0-alpha.15.tgz#4c5e608b3de921dbfea68f7ca196d297931acb23" - dependencies: - babel-code-frame "7.0.0-alpha.15" - babel-generator "7.0.0-alpha.15" - babel-helpers "7.0.0-alpha.15" - babel-messages "7.0.0-alpha.15" - babel-template "7.0.0-alpha.15" - babel-traverse "7.0.0-alpha.15" - babel-types "7.0.0-alpha.15" - babylon "7.0.0-beta.15" - convert-source-map "^1.1.0" - debug "^2.1.1" - json5 "^0.5.0" - lodash "^4.2.0" - micromatch "^2.3.11" - resolve "^1.3.2" - source-map "^0.5.0" - babel-core@7.0.0-alpha.18: version "7.0.0-alpha.18" resolved "https://registry.yarnpkg.com/babel-core/-/babel-core-7.0.0-alpha.18.tgz#416cb65ac7c95b59c9230a65c4c595b6d5e30b4a" @@ -471,17 +443,6 @@ babel-eslint@8.0.0-alpha.13: babel-types "7.0.0-alpha.12" babylon "7.0.0-beta.14" -babel-generator@7.0.0-alpha.15: - version "7.0.0-alpha.15" - resolved "https://registry.yarnpkg.com/babel-generator/-/babel-generator-7.0.0-alpha.15.tgz#27884018a9cc8300e20497cad17c4bc1f416a9fc" - dependencies: - babel-messages "7.0.0-alpha.15" - babel-types "7.0.0-alpha.15" - jsesc "^1.3.0" - lodash "^4.2.0" - source-map "^0.5.0" - trim-right "^1.0.1" - babel-generator@7.0.0-alpha.18: version "7.0.0-alpha.18" resolved "https://registry.yarnpkg.com/babel-generator/-/babel-generator-7.0.0-alpha.18.tgz#107566ad9824b1e5192bee3185a1c2f6c7437cee" @@ -538,14 +499,6 @@ babel-helper-call-delegate@^6.24.1: babel-traverse "^6.24.1" babel-types "^6.24.1" -babel-helper-define-map@7.0.0-alpha.15: - version "7.0.0-alpha.15" - resolved "https://registry.yarnpkg.com/babel-helper-define-map/-/babel-helper-define-map-7.0.0-alpha.15.tgz#9e0576eb629eac1763fd72c294264b43124223f6" - dependencies: - babel-helper-function-name "7.0.0-alpha.15" - babel-types "7.0.0-alpha.15" - lodash "^4.2.0" - babel-helper-define-map@7.0.0-alpha.18: version "7.0.0-alpha.18" resolved "https://registry.yarnpkg.com/babel-helper-define-map/-/babel-helper-define-map-7.0.0-alpha.18.tgz#cf3e7f4dcd8771bb2423eae5dfb0dadbc2282ac7" @@ -577,15 +530,6 @@ babel-helper-fixtures@7.0.0-alpha.18: semver "^5.3.0" try-resolve "^1.0.0" -babel-helper-function-name@7.0.0-alpha.15: - version "7.0.0-alpha.15" - resolved "https://registry.yarnpkg.com/babel-helper-function-name/-/babel-helper-function-name-7.0.0-alpha.15.tgz#087bb6bb6677acde36b3c19f6bc1afedb3d12e30" - dependencies: - babel-helper-get-function-arity "7.0.0-alpha.15" - babel-template "7.0.0-alpha.15" - babel-traverse "7.0.0-alpha.15" - babel-types "7.0.0-alpha.15" - babel-helper-function-name@7.0.0-alpha.18: version "7.0.0-alpha.18" resolved "https://registry.yarnpkg.com/babel-helper-function-name/-/babel-helper-function-name-7.0.0-alpha.18.tgz#c53a5091c3a2fbb9b72b351be390fc616021b7e0" @@ -614,12 +558,6 @@ babel-helper-function-name@^6.24.1: babel-traverse "^6.24.1" babel-types "^6.24.1" -babel-helper-get-function-arity@7.0.0-alpha.15: - version "7.0.0-alpha.15" - resolved "https://registry.yarnpkg.com/babel-helper-get-function-arity/-/babel-helper-get-function-arity-7.0.0-alpha.15.tgz#17e93206d0b625c3122f4c674478cbed53281f24" - dependencies: - babel-types "7.0.0-alpha.15" - babel-helper-get-function-arity@7.0.0-alpha.18: version "7.0.0-alpha.18" resolved "https://registry.yarnpkg.com/babel-helper-get-function-arity/-/babel-helper-get-function-arity-7.0.0-alpha.18.tgz#13af448b7893deb5ba4a4af62dae075337f6f5f7" @@ -652,12 +590,6 @@ babel-helper-hoist-variables@^6.24.1: babel-runtime "^6.22.0" babel-types "^6.24.1" -babel-helper-optimise-call-expression@7.0.0-alpha.15: - version "7.0.0-alpha.15" - resolved "https://registry.yarnpkg.com/babel-helper-optimise-call-expression/-/babel-helper-optimise-call-expression-7.0.0-alpha.15.tgz#ad3e9300904ea23f538f8a69b4d24d7a499c34e4" - dependencies: - babel-types "7.0.0-alpha.15" - babel-helper-optimise-call-expression@7.0.0-alpha.18: version "7.0.0-alpha.18" resolved "https://registry.yarnpkg.com/babel-helper-optimise-call-expression/-/babel-helper-optimise-call-expression-7.0.0-alpha.18.tgz#fbb497a9bcf875ade49d22c17442f72b5fe8f344" @@ -698,16 +630,6 @@ babel-helper-remap-async-to-generator@^6.24.1: babel-traverse "^6.24.1" babel-types "^6.24.1" -babel-helper-replace-supers@7.0.0-alpha.15: - version "7.0.0-alpha.15" - resolved "https://registry.yarnpkg.com/babel-helper-replace-supers/-/babel-helper-replace-supers-7.0.0-alpha.15.tgz#8244f181b59de22df84f947645e97296547c961a" - dependencies: - babel-helper-optimise-call-expression "7.0.0-alpha.15" - babel-messages "7.0.0-alpha.15" - babel-template "7.0.0-alpha.15" - babel-traverse "7.0.0-alpha.15" - babel-types "7.0.0-alpha.15" - babel-helper-replace-supers@7.0.0-alpha.18: version "7.0.0-alpha.18" resolved "https://registry.yarnpkg.com/babel-helper-replace-supers/-/babel-helper-replace-supers-7.0.0-alpha.18.tgz#40a1620cd9b2f8e898c5edee772eea3a8ed99ce4" @@ -727,12 +649,6 @@ babel-helper-wrap-function@7.0.0-alpha.18: babel-traverse "7.0.0-alpha.18" babel-types "7.0.0-alpha.18" -babel-helpers@7.0.0-alpha.15: - version "7.0.0-alpha.15" - resolved "https://registry.yarnpkg.com/babel-helpers/-/babel-helpers-7.0.0-alpha.15.tgz#60e08a396d7ce79104dd2da4651a61e625468ebe" - dependencies: - babel-template "7.0.0-alpha.15" - babel-helpers@7.0.0-alpha.18: version "7.0.0-alpha.18" resolved "https://registry.yarnpkg.com/babel-helpers/-/babel-helpers-7.0.0-alpha.18.tgz#22e466d3f48e8ea777d47b50fdc2c98befc801e0" @@ -750,10 +666,6 @@ babel-messages@7.0.0-alpha.12: version "7.0.0-alpha.12" resolved "https://registry.yarnpkg.com/babel-messages/-/babel-messages-7.0.0-alpha.12.tgz#5fda840cb8dfeda06a7894a1e8ab1af695f249c0" -babel-messages@7.0.0-alpha.15: - version "7.0.0-alpha.15" - resolved "https://registry.yarnpkg.com/babel-messages/-/babel-messages-7.0.0-alpha.15.tgz#97991d32d86a2130aff08fa75a16cfc5acad9e42" - babel-messages@7.0.0-alpha.18: version "7.0.0-alpha.18" resolved "https://registry.yarnpkg.com/babel-messages/-/babel-messages-7.0.0-alpha.18.tgz#fd0293f42f20eff97af5b8ae0c5b75addb465060" @@ -862,19 +774,6 @@ babel-plugin-transform-es2015-block-scoping@7.0.0-alpha.18: babel-types "7.0.0-alpha.18" lodash "^4.2.0" -babel-plugin-transform-es2015-classes@7.0.0-alpha.15: - version "7.0.0-alpha.15" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-classes/-/babel-plugin-transform-es2015-classes-7.0.0-alpha.15.tgz#0aad5be2ab6da413507cacbbbc07fb571ac57072" - dependencies: - babel-helper-define-map "7.0.0-alpha.15" - babel-helper-function-name "7.0.0-alpha.15" - babel-helper-optimise-call-expression "7.0.0-alpha.15" - babel-helper-replace-supers "7.0.0-alpha.15" - babel-messages "7.0.0-alpha.15" - babel-template "7.0.0-alpha.15" - babel-traverse "7.0.0-alpha.15" - babel-types "7.0.0-alpha.15" - babel-plugin-transform-es2015-classes@7.0.0-alpha.18: version "7.0.0-alpha.18" resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-classes/-/babel-plugin-transform-es2015-classes-7.0.0-alpha.18.tgz#9df446663f9099b62a0a2c6fece5a21eb9210f05" @@ -1172,15 +1071,6 @@ babel-runtime@^6.18.0, babel-runtime@^6.22.0: core-js "^2.4.0" regenerator-runtime "^0.10.0" -babel-template@7.0.0-alpha.15: - version "7.0.0-alpha.15" - resolved "https://registry.yarnpkg.com/babel-template/-/babel-template-7.0.0-alpha.15.tgz#08b56562987c9893bbd6646bce4819074ba1cf90" - dependencies: - babel-traverse "7.0.0-alpha.15" - babel-types "7.0.0-alpha.15" - babylon "7.0.0-beta.13" - lodash "^4.2.0" - babel-template@7.0.0-alpha.18: version "7.0.0-alpha.18" resolved "https://registry.yarnpkg.com/babel-template/-/babel-template-7.0.0-alpha.18.tgz#333cf25e642f1411484558aa5a78aed78ac58786" @@ -1223,20 +1113,6 @@ babel-traverse@7.0.0-alpha.12: invariant "^2.2.0" lodash "^4.2.0" -babel-traverse@7.0.0-alpha.15: - version "7.0.0-alpha.15" - resolved "https://registry.yarnpkg.com/babel-traverse/-/babel-traverse-7.0.0-alpha.15.tgz#d7af52cb8ee6e0867b778da17166e6f01498b11a" - dependencies: - babel-code-frame "7.0.0-alpha.15" - babel-helper-function-name "7.0.0-alpha.15" - babel-messages "7.0.0-alpha.15" - babel-types "7.0.0-alpha.15" - babylon "7.0.0-beta.15" - debug "^2.2.0" - globals "^9.0.0" - invariant "^2.2.0" - lodash "^4.2.0" - babel-traverse@7.0.0-alpha.18: version "7.0.0-alpha.18" resolved "https://registry.yarnpkg.com/babel-traverse/-/babel-traverse-7.0.0-alpha.18.tgz#54ef34dbfb527f9394c25e9ab3b1d73ba50ade77" @@ -1286,14 +1162,6 @@ babel-types@7.0.0-alpha.12: lodash "^4.2.0" to-fast-properties "^1.0.1" -babel-types@7.0.0-alpha.15: - version "7.0.0-alpha.15" - resolved "https://registry.yarnpkg.com/babel-types/-/babel-types-7.0.0-alpha.15.tgz#e4021e6a432e906678dfc6cc89805ba3234f9f48" - dependencies: - esutils "^2.0.2" - lodash "^4.2.0" - to-fast-properties "^1.0.1" - babel-types@7.0.0-alpha.18: version "7.0.0-alpha.18" resolved "https://registry.yarnpkg.com/babel-types/-/babel-types-7.0.0-alpha.18.tgz#c60bf2b7d21a65272a24774176e7bbee1cef0f60" @@ -1323,18 +1191,10 @@ babylon@7.0.0-beta.12: version "7.0.0-beta.12" resolved "https://registry.yarnpkg.com/babylon/-/babylon-7.0.0-beta.12.tgz#f7b9c8a89ff7d6afb57b906d947a4237f9bf53f9" -babylon@7.0.0-beta.13: - version "7.0.0-beta.13" - resolved "https://registry.yarnpkg.com/babylon/-/babylon-7.0.0-beta.13.tgz#12425c1bfd9498be419021ed36b43fe4f0289c0a" - babylon@7.0.0-beta.14: version "7.0.0-beta.14" resolved "https://registry.yarnpkg.com/babylon/-/babylon-7.0.0-beta.14.tgz#72aa3c493c984c2edc54d4bc077b74066ed4511d" -babylon@7.0.0-beta.15: - version "7.0.0-beta.15" - resolved "https://registry.yarnpkg.com/babylon/-/babylon-7.0.0-beta.15.tgz#410348bcd21af470a55abea9698c9c651d87f1c6" - babylon@7.0.0-beta.18: version "7.0.0-beta.18" resolved "https://registry.yarnpkg.com/babylon/-/babylon-7.0.0-beta.18.tgz#5c23ee3fdb66358aabf3789779319c5b78a233c7" @@ -1411,11 +1271,11 @@ browser-resolve@^1.11.0: resolve "1.1.7" browserslist@^2.1.2: - version "2.2.2" - resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-2.2.2.tgz#e9b4618b8a01c193f9786beea09f6fd10dbe31c3" + version "2.3.0" + resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-2.3.0.tgz#b2aa76415c71643fe2368f6243b43bbbb4211752" dependencies: - caniuse-lite "^1.0.30000704" - electron-to-chromium "^1.3.16" + caniuse-lite "^1.0.30000710" + electron-to-chromium "^1.3.17" buf-compare@^1.0.0: version "1.0.1" @@ -1479,9 +1339,9 @@ camelcase@^4.0.0, camelcase@^4.1.0: version "4.1.0" resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-4.1.0.tgz#d545635be1e33c542649c69173e5de6acfae34dd" -caniuse-lite@^1.0.30000704: - version "1.0.30000710" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30000710.tgz#1c249bf7c6a61161c9b10906e3ad9fa5b6761af1" +caniuse-lite@^1.0.30000710: + version "1.0.30000712" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30000712.tgz#b4732def2459224f3f78c6a9ba103abfcc705670" capture-stack-trace@^1.0.0: version "1.0.0" @@ -1517,8 +1377,8 @@ chalk@^1.0.0, chalk@^1.1.0, chalk@^1.1.1, chalk@^1.1.3: supports-color "^2.0.0" chalk@^2.0.0, chalk@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.0.1.tgz#dbec49436d2ae15f536114e76d14656cdbc0f44d" + version "2.1.0" + resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.1.0.tgz#ac5becf14fa21b99c6c92ca7a7d7cfd5b17e743e" dependencies: ansi-styles "^3.1.0" escape-string-regexp "^1.0.5" @@ -1720,8 +1580,8 @@ core-assert@^0.2.0: is-error "^2.2.0" core-js@^2.0.0, core-js@^2.4.0: - version "2.4.1" - resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.4.1.tgz#4de911e667b0eae9124e34254b53aea6fc618d3e" + version "2.5.0" + resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.5.0.tgz#569c050918be6486b3837552028ae0466b717086" core-util-is@1.0.2, core-util-is@~1.0.0: version "1.0.2" @@ -1747,8 +1607,8 @@ create-error-class@^3.0.0: capture-stack-trace "^1.0.0" cross-env@^5.0.0: - version "5.0.3" - resolved "https://registry.yarnpkg.com/cross-env/-/cross-env-5.0.3.tgz#8f55acef7469fed364f4039a9f7ece90191e3981" + version "5.0.5" + resolved "https://registry.yarnpkg.com/cross-env/-/cross-env-5.0.5.tgz#4383d364d9660873dd185b398af3bfef5efffef3" dependencies: cross-spawn "^5.1.0" is-windows "^1.0.0" @@ -1896,7 +1756,7 @@ ecc-jsbn@~0.1.1: dependencies: jsbn "~0.1.0" -electron-to-chromium@^1.3.16: +electron-to-chromium@^1.3.17: version "1.3.17" resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.17.tgz#41c13457cc7166c5c15e767ae61d86a8cacdee5d" @@ -1948,8 +1808,8 @@ escape-string-regexp@^1.0.2, escape-string-regexp@^1.0.4, escape-string-regexp@^ resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" eslint-config-babel@^7.0.1: - version "7.0.1" - resolved "https://registry.yarnpkg.com/eslint-config-babel/-/eslint-config-babel-7.0.1.tgz#aac7b79f2f06f52358a5a764fdc01fde23718572" + version "7.0.2" + resolved "https://registry.yarnpkg.com/eslint-config-babel/-/eslint-config-babel-7.0.2.tgz#cbde74f61cee087d8cd6e607fcfa087869a02d99" eslint-plugin-flowtype@^2.34.0: version "2.35.0" @@ -1972,8 +1832,8 @@ eslint-scope@^3.7.1: estraverse "^4.1.1" eslint@^4.0.0: - version "4.3.0" - resolved "https://registry.yarnpkg.com/eslint/-/eslint-4.3.0.tgz#fcd7c96376bbf34c85ee67ed0012a299642b108f" + version "4.4.1" + resolved "https://registry.yarnpkg.com/eslint/-/eslint-4.4.1.tgz#99cd7eafcffca2ff99a5c8f5f2a474d6364b4bd3" dependencies: ajv "^5.2.0" babel-code-frame "^6.22.0" @@ -1983,7 +1843,7 @@ eslint@^4.0.0: debug "^2.6.8" doctrine "^2.0.0" eslint-scope "^3.7.1" - espree "^3.4.3" + espree "^3.5.0" esquery "^1.0.0" estraverse "^4.2.0" esutils "^2.0.2" @@ -1995,7 +1855,7 @@ eslint@^4.0.0: imurmurhash "^0.1.4" inquirer "^3.0.6" is-resolvable "^1.0.0" - js-yaml "^3.8.4" + js-yaml "^3.9.1" json-stable-stringify "^1.0.1" levn "^0.3.0" lodash "^4.17.4" @@ -2021,11 +1881,11 @@ espower-location-detector@^1.0.0: source-map "^0.5.0" xtend "^4.0.0" -espree@^3.4.3: - version "3.4.3" - resolved "https://registry.yarnpkg.com/espree/-/espree-3.4.3.tgz#2910b5ccd49ce893c2ffffaab4fd8b3a31b82374" +espree@^3.5.0: + version "3.5.0" + resolved "https://registry.yarnpkg.com/espree/-/espree-3.5.0.tgz#98358625bdd055861ea27e2867ea729faf463d8d" dependencies: - acorn "^5.0.1" + acorn "^5.1.1" acorn-jsx "^3.0.0" esprima@^4.0.0: @@ -2079,6 +1939,18 @@ execa@^0.7.0: signal-exit "^3.0.0" strip-eof "^1.0.0" +execa@^0.8.0: + version "0.8.0" + resolved "https://registry.yarnpkg.com/execa/-/execa-0.8.0.tgz#d8d76bbc1b55217ed190fd6dd49d3c774ecfc8da" + dependencies: + cross-spawn "^5.0.1" + get-stream "^3.0.0" + is-stream "^1.1.0" + npm-run-path "^2.0.0" + p-finally "^1.0.0" + signal-exit "^3.0.0" + strip-eof "^1.0.0" + exit-hook@^1.0.0: version "1.1.1" resolved "https://registry.yarnpkg.com/exit-hook/-/exit-hook-1.1.1.tgz#f05ca233b48c05d54fff07765df8507e95c02ff8" @@ -2860,7 +2732,7 @@ js-tokens@^3.0.0: version "3.0.2" resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-3.0.2.tgz#9866df395102130e38f7f996bceb65443209c25b" -js-yaml@^3.4.3, js-yaml@^3.8.2, js-yaml@^3.8.4: +js-yaml@^3.4.3, js-yaml@^3.8.2, js-yaml@^3.9.1: version "3.9.1" resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.9.1.tgz#08775cebdfdd359209f0d2acd383c8f86a6904a0" dependencies: @@ -2872,8 +2744,8 @@ jsbn@~0.1.0: resolved "https://registry.yarnpkg.com/jsbn/-/jsbn-0.1.1.tgz#a5e654c2e5a2deb5f201d96cefbca80c0ef2f513" jschardet@^1.4.2: - version "1.5.0" - resolved "https://registry.yarnpkg.com/jschardet/-/jschardet-1.5.0.tgz#a61f310306a5a71188e1b1acd08add3cfbb08b1e" + version "1.5.1" + resolved "https://registry.yarnpkg.com/jschardet/-/jschardet-1.5.1.tgz#c519f629f86b3a5bedba58a88d311309eec097f9" jsesc@^1.3.0: version "1.3.0" @@ -2964,12 +2836,12 @@ levn@^0.3.0, levn@~0.3.0: type-check "~0.3.2" lint-staged@^4.0.0: - version "4.0.2" - resolved "https://registry.yarnpkg.com/lint-staged/-/lint-staged-4.0.2.tgz#8e83e11e9e1656c09b6117f6db0d55fd4960a1c0" + version "4.0.3" + resolved "https://registry.yarnpkg.com/lint-staged/-/lint-staged-4.0.3.tgz#1ce55591bc2c83a781a90b69a0a0c8aa0fc6370b" dependencies: app-root-path "^2.0.0" cosmiconfig "^1.1.0" - execa "^0.7.0" + execa "^0.8.0" listr "^0.12.0" lodash.chunk "^4.2.0" minimatch "^3.0.0" @@ -4004,12 +3876,10 @@ rimraf@2, rimraf@^2.2.8, rimraf@^2.3.3, rimraf@^2.5.1, rimraf@^2.5.4, rimraf@^2. dependencies: glob "^7.0.5" -rollup-plugin-babel@3.0.0-alpha.15: - version "3.0.0-alpha.15" - resolved "https://registry.yarnpkg.com/rollup-plugin-babel/-/rollup-plugin-babel-3.0.0-alpha.15.tgz#5640e354ed7a799e2f67a48b3f0a676afa5ffb72" +rollup-plugin-babel@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/rollup-plugin-babel/-/rollup-plugin-babel-3.0.1.tgz#e1b75bc3a6ea876bb8ec747562b344b15e27c94e" dependencies: - babel-core "7.0.0-alpha.15" - babel-plugin-transform-es2015-classes "7.0.0-alpha.15" rollup-pluginutils "^1.5.0" rollup-plugin-node-resolve@^3.0.0: