From f6430895c7fe3b5db80d349c31e234c86666b64d Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Wed, 6 Feb 2019 09:48:55 +0100 Subject: [PATCH] Move to latest eslint standard plugin This fixes the three warnings that recently started to appear: [ESLINT_LEGACY_OBJECT_REST_SPREAD] DeprecationWarning: The 'parserOptions.ecmaFeatures.experimentalObjectRestSpread' option is deprecated. Use 'parserOptions.ecmaVersion' instead. (found in "standard-react") [ESLINT_LEGACY_OBJECT_REST_SPREAD] DeprecationWarning: The 'parserOptions.ecmaFeatures.experimentalObjectRestSpread' option is deprecated. Use 'parserOptions.ecmaVersion' instead. (found in "node_modules/eslint-config-standard-jsx/index.js") [ESLINT_LEGACY_OBJECT_REST_SPREAD] DeprecationWarning: The 'parserOptions.ecmaFeatures.experimentalObjectRestSpread' option is deprecated. Use 'parserOptions.ecmaVersion' instead. (found in "standard") Closes #99 --- .eslintrc.json | 2 +- package.json | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 3b7538e..e63e3a3 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -6,8 +6,8 @@ "extends": ["eslint:recommended", "standard", "standard-react"], "parser": "babel-eslint", "parserOptions": { + "ecmaVersion": "7", "ecmaFeatures": { - "experimentalObjectRestSpread": true, "jsx": true }, "sourceType": "module" diff --git a/package.json b/package.json index 193d4b1..9cd9b34 100644 --- a/package.json +++ b/package.json @@ -23,15 +23,15 @@ "copy-webpack-plugin": "^4.5.2", "css-loader": "^0.28.11", "eslint": "^5.4.0", - "eslint-config-standard": "^11.0.0", - "eslint-config-standard-react": "^6.0.0", + "eslint-config-standard": "^12.0.0", + "eslint-config-standard-react": "^7.0.2", "eslint-loader": "^2.1.0", "eslint-plugin-flowtype": "^2.50.0", "eslint-plugin-import": "^2.14.0", "eslint-plugin-node": "^7.0.1", "eslint-plugin-promise": "^4.0.0", - "eslint-plugin-react": "^6.9.0", - "eslint-plugin-standard": "^3.1.0", + "eslint-plugin-react": "^7.12.4", + "eslint-plugin-standard": "^4.0.0", "extract-text-webpack-plugin": "^4.0.0-beta.0", "htmlparser": "^1.7.7", "jed": "^1.1.1",