From faa6a604edbec1df898cf1064580468035a48abf Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Sat, 17 Oct 2020 07:52:53 +0000 Subject: [PATCH 1/7] Bump eslint-config-scratch from 5.0.0 to 6.0.0 Bumps [eslint-config-scratch](https://github.com/LLK/eslint-config-scratch) from 5.0.0 to 6.0.0. - [Release notes](https://github.com/LLK/eslint-config-scratch/releases) - [Commits](https://github.com/LLK/eslint-config-scratch/compare/v5.0.0...v6.0.0) Signed-off-by: dependabot-preview[bot] --- package-lock.json | 8 ++++---- package.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index d04b4386f..d6c191a70 100644 --- a/package-lock.json +++ b/package-lock.json @@ -7544,12 +7544,12 @@ } }, "eslint-config-scratch": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/eslint-config-scratch/-/eslint-config-scratch-5.0.0.tgz", - "integrity": "sha1-s3OvhEFNO+0nkq3kGOmgxvrnmf0=", + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/eslint-config-scratch/-/eslint-config-scratch-6.0.0.tgz", + "integrity": "sha512-2aW7EVWhjTrwaM54hjAZeRETh/habWeQ5xzTbPO2dG//RtixBztUAmdxqAHKH8MEtmAMsUhf3mRjO1BstO4dGg==", "dev": true, "requires": { - "eslint-plugin-react": "^7.0" + "eslint-plugin-react": ">=7.14.2" } }, "eslint-plugin-cypress": { diff --git a/package.json b/package.json index 0c73add44..8079ec91f 100644 --- a/package.json +++ b/package.json @@ -80,7 +80,7 @@ "enzyme": "3.10.0", "enzyme-adapter-react-16": "1.14.0", "eslint": "5.16.0", - "eslint-config-scratch": "5.0.0", + "eslint-config-scratch": "6.0.0", "eslint-plugin-cypress": "^2.0.1", "eslint-plugin-json": "2.0.1", "eslint-plugin-react": "7.14.2", From ca392e6d5bda68d4ce4e1b81f7f6a2c8ca5e022b Mon Sep 17 00:00:00 2001 From: Karishma Chadha Date: Thu, 11 Feb 2021 20:02:08 -0500 Subject: [PATCH 2/7] Fix lint errors related to eslint-config-scratch update --- src/components/registration/steps.jsx | 2 +- src/components/stepnavigation/stepnavigation.jsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/registration/steps.jsx b/src/components/registration/steps.jsx index b7b470792..35f6b6800 100644 --- a/src/components/registration/steps.jsx +++ b/src/components/registration/steps.jsx @@ -448,7 +448,7 @@ class DemographicsStep extends React.Component { })); } getYearOptions () { - return Array.apply(null, Array(100)).map((v, id) => { + return Array(...Array(100)).map((v, id) => { const year = (new Date().getFullYear() - (id + this.props.birthOffset)).toString(); return {value: year, label: year}; }); diff --git a/src/components/stepnavigation/stepnavigation.jsx b/src/components/stepnavigation/stepnavigation.jsx index 4988ffa1b..30faffdf4 100644 --- a/src/components/stepnavigation/stepnavigation.jsx +++ b/src/components/stepnavigation/stepnavigation.jsx @@ -6,7 +6,7 @@ require('./stepnavigation.scss'); const StepNavigation = props => (