From 1f4109b9eb864a7e77da6c0fba763a2e10a080b6 Mon Sep 17 00:00:00 2001 From: Andreas Lind Date: Sat, 23 Jun 2018 11:37:13 +0200 Subject: [PATCH 1/4] Update eslint (dev dep) to ^5.0.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 9a3a9f6..5f38253 100644 --- a/package.json +++ b/package.json @@ -25,6 +25,6 @@ "eslint-plugin-react": "7.6.1" }, "devDependencies": { - "eslint": "^3.17.1" + "eslint": "^5.0.0" } } From d0d7a4a8167a99d8588f3f7ec2bdb443d9c416e9 Mon Sep 17 00:00:00 2001 From: Andreas Lind Date: Sat, 23 Jun 2018 11:37:27 +0200 Subject: [PATCH 2/4] Peer dep: Only allow eslint 5 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 5f38253..8f2771a 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "url": "https://github.com/sunesimonsen/eslint-config-pretty-standard.git" }, "peerDependencies": { - "eslint": "^3.17.1 || 4", + "eslint": "^5", "eslint-plugin-promise": "^3.6.0", "eslint-plugin-react": "^7.6.1" }, From 6554bb555d0943cd05354e988845ae55b8ed0be8 Mon Sep 17 00:00:00 2001 From: Andreas Lind Date: Sat, 23 Jun 2018 11:50:27 +0200 Subject: [PATCH 3/4] Fix eslint 5 deprecation warning "Cherry-picked" from https://github.com/standard/eslint-config-standard/commit/6a89a51a2a0993e3e6f37f72eb4a461f754a593b --- .eslintrc.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 95a8d95..28e2ab1 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -260,10 +260,9 @@ "react/react-in-jsx-scope": "error" }, "parserOptions": { - "ecmaVersion": 8, + "ecmaVersion": 9, "ecmaFeatures": { "globalReturn": true, - "experimentalObjectRestSpread": true, "jsx": true }, "sourceType": "module" From 63c91b49783868fc58d607aa942f94947bf3cc2f Mon Sep 17 00:00:00 2001 From: Andreas Lind Date: Mon, 25 Jun 2018 08:41:23 +0200 Subject: [PATCH 4/4] Update eslint-plugin-react to 7.10.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 8f2771a..fa39b80 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ }, "dependencies": { "eslint-plugin-promise": "3.6.0", - "eslint-plugin-react": "7.6.1" + "eslint-plugin-react": "7.10.0" }, "devDependencies": { "eslint": "^5.0.0"