From ed492ebb101bb14296586b4bb23caedb59f98de9 Mon Sep 17 00:00:00 2001 From: Mael Date: Sun, 11 Nov 2018 15:58:29 +0000 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20des=20plugins=20babel,?= =?UTF-8?q?=20suppression=20erreur=20d=C3=A9corateurs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .eslintrc.yaml | 3 +++ package.json | 5 +++-- source/.babelrc | 4 ++-- yarn.lock | 35 ++++++++++++++++++++--------------- 4 files changed, 28 insertions(+), 19 deletions(-) diff --git a/.eslintrc.yaml b/.eslintrc.yaml index b9f09191e..c758bafb9 100644 --- a/.eslintrc.yaml +++ b/.eslintrc.yaml @@ -15,6 +15,9 @@ rules: react/no-unescaped-entities: 0 react/display-name: 1 parser: babel-eslint +parserOptions: + ecmaFeatures: + legacyDecorators: true plugins: - react diff --git a/package.json b/package.json index 3c2b3d526..ab8e75f50 100644 --- a/package.json +++ b/package.json @@ -83,8 +83,10 @@ "devDependencies": { "@babel/core": "^7.1.0", "@babel/plugin-proposal-class-properties": "^7.1.0", + "@babel/plugin-proposal-do-expressions": "^7.0.0", "@babel/plugin-proposal-object-rest-spread": "^7.0.0", "@babel/plugin-proposal-optional-chaining": "^7.0.0", + "@babel/plugin-syntax-dynamic-import": "^7.0.0", "@babel/polyfill": "^7.0.0", "@babel/preset-env": "^7.1.0", "@babel/preset-flow": "^7.0.0-beta.51", @@ -95,7 +97,6 @@ "babel-loader": "^8.0.2", "babel-plugin-ramda": "^1.6.3", "babel-plugin-syntax-dynamic-import": "^6.18.0", - "babel-plugin-transform-do-expressions": "^6.22.0", "babel-plugin-webpack-alias": "^2.1.2", "chai": "^4.1.2", "co-request": "^1.0.0", @@ -149,7 +150,7 @@ "workbox-webpack-plugin": "^3.6.1", "yaml-loader": "^0.5.0" }, - "optionalDependencies":{ + "optionalDependencies": { "prerender-spa-plugin": "^3.4.0", "cypress": "^3.1.0" } diff --git a/source/.babelrc b/source/.babelrc index 9e6b6486e..d9203c109 100644 --- a/source/.babelrc +++ b/source/.babelrc @@ -14,10 +14,10 @@ ], "plugins": [ "@babel/plugin-proposal-class-properties", + "@babel/plugin-proposal-do-expressions", "@babel/plugin-proposal-optional-chaining", "@babel/plugin-proposal-object-rest-spread", - "transform-do-expressions", - "syntax-dynamic-import", + "@babel/plugin-syntax-dynamic-import", "react-hot-loader/babel", ["webpack-alias", { "config": "./source/webpack.dev.js" }] , ["ramda", { diff --git a/yarn.lock b/yarn.lock index 0b305702a..0914006c3 100644 --- a/yarn.lock +++ b/yarn.lock @@ -237,6 +237,13 @@ "@babel/helper-replace-supers" "^7.1.0" "@babel/plugin-syntax-class-properties" "^7.0.0" +"@babel/plugin-proposal-do-expressions@^7.0.0": + version "7.0.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-do-expressions/-/plugin-proposal-do-expressions-7.0.0.tgz#4fe2f29c56a4b18d292caab0dfcb8119c89cc8d8" + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + "@babel/plugin-syntax-do-expressions" "^7.0.0" + "@babel/plugin-proposal-json-strings@^7.0.0": version "7.0.0" resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-json-strings/-/plugin-proposal-json-strings-7.0.0.tgz#3b4d7b5cf51e1f2e70f52351d28d44fc2970d01e" @@ -285,6 +292,18 @@ dependencies: "@babel/helper-plugin-utils" "^7.0.0" +"@babel/plugin-syntax-do-expressions@^7.0.0": + version "7.0.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-do-expressions/-/plugin-syntax-do-expressions-7.0.0.tgz#069119d1d2fd2c13a3203b172619af5f95b6f696" + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + +"@babel/plugin-syntax-dynamic-import@^7.0.0": + version "7.0.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-dynamic-import/-/plugin-syntax-dynamic-import-7.0.0.tgz#6dfb7d8b6c3be14ce952962f658f3b7eb54c33ee" + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + "@babel/plugin-syntax-flow@^7.0.0": version "7.0.0" resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-flow/-/plugin-syntax-flow-7.0.0.tgz#70638aeaad9ee426bc532e51523cff8ff02f6f17" @@ -1439,7 +1458,6 @@ babel-code-frame@^6.26.0: babel-eslint@^10.0.1: version "10.0.1" resolved "https://registry.yarnpkg.com/babel-eslint/-/babel-eslint-10.0.1.tgz#919681dc099614cd7d31d45c8908695092a1faed" - integrity sha512-z7OT1iNV+TjOwHNLLyJk+HN+YVWX+CLE6fPD2SymJZOZQBs+QIexFjhm4keGTm8MW9xr4EC9Q0PbaLB24V5GoQ== dependencies: "@babel/code-frame" "^7.0.0" "@babel/parser" "^7.0.0" @@ -1470,10 +1488,6 @@ babel-plugin-ramda@^1.6.3: "@babel/helper-module-imports" "^7.0.0-beta.40" ramda "0.x" -babel-plugin-syntax-do-expressions@^6.8.0: - version "6.13.0" - resolved "http://registry.npmjs.org/babel-plugin-syntax-do-expressions/-/babel-plugin-syntax-do-expressions-6.13.0.tgz#5747756139aa26d390d09410b03744ba07e4796d" - babel-plugin-syntax-dynamic-import@^6.18.0: version "6.18.0" resolved "http://registry.npmjs.org/babel-plugin-syntax-dynamic-import/-/babel-plugin-syntax-dynamic-import-6.18.0.tgz#8d6a26229c83745a9982a441051572caa179b1da" @@ -1482,13 +1496,6 @@ babel-plugin-syntax-object-rest-spread@^6.8.0: version "6.13.0" resolved "https://registry.yarnpkg.com/babel-plugin-syntax-object-rest-spread/-/babel-plugin-syntax-object-rest-spread-6.13.0.tgz#fd6536f2bce13836ffa3a5458c4903a597bb3bf5" -babel-plugin-transform-do-expressions@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-do-expressions/-/babel-plugin-transform-do-expressions-6.22.0.tgz#28ccaf92812d949c2cd1281f690c8fdc468ae9bb" - dependencies: - babel-plugin-syntax-do-expressions "^6.8.0" - babel-runtime "^6.22.0" - babel-plugin-transform-object-rest-spread@^6.26.0: version "6.26.0" resolved "https://registry.yarnpkg.com/babel-plugin-transform-object-rest-spread/-/babel-plugin-transform-object-rest-spread-6.26.0.tgz#0f36692d50fef6b7e2d4b3ac1478137a963b7b06" @@ -1514,7 +1521,7 @@ babel-polyfill@^6.26.0: core-js "^2.5.0" regenerator-runtime "^0.10.5" -babel-runtime@6.x, babel-runtime@^6.11.6, babel-runtime@^6.18.0, babel-runtime@^6.22.0, babel-runtime@^6.25.0, babel-runtime@^6.26.0: +babel-runtime@6.x, babel-runtime@^6.11.6, babel-runtime@^6.18.0, babel-runtime@^6.25.0, babel-runtime@^6.26.0: version "6.26.0" resolved "https://registry.yarnpkg.com/babel-runtime/-/babel-runtime-6.26.0.tgz#965c7058668e82b55d7bfe04ff2337bc8b5647fe" dependencies: @@ -3145,7 +3152,6 @@ escodegen@^1.11.0: eslint-config-prettier@^3.3.0: version "3.3.0" resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-3.3.0.tgz#41afc8d3b852e757f06274ed6c44ca16f939a57d" - integrity sha512-Bc3bh5bAcKNvs3HOpSi6EfGA2IIp7EzWcg2tS4vP7stnXu/J1opihHDM7jI9JCIckyIDTgZLSWn7J3HY0j2JfA== dependencies: get-stdin "^6.0.0" @@ -3190,7 +3196,6 @@ eslint-visitor-keys@^1.0.0: eslint@^5.9.0: version "5.9.0" resolved "https://registry.yarnpkg.com/eslint/-/eslint-5.9.0.tgz#b234b6d15ef84b5849c6de2af43195a2d59d408e" - integrity sha512-g4KWpPdqN0nth+goDNICNXGfJF7nNnepthp46CAlJoJtC5K/cLu3NgCM3AHu1CkJ5Hzt9V0Y0PBAO6Ay/gGb+w== dependencies: "@babel/code-frame" "^7.0.0" ajv "^6.5.3"