From 46765ec5bc4182e8a88d6e829ff7b070363be034 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 15 Aug 2022 10:16:49 +0100 Subject: [PATCH 1/2] Bump eslint-plugin-sonarjs from 0.14.0 to 0.15.0 (#2989) Bumps [eslint-plugin-sonarjs](https://github.com/SonarSource/eslint-plugin-sonarjs) from 0.14.0 to 0.15.0. - [Release notes](https://github.com/SonarSource/eslint-plugin-sonarjs/releases) - [Commits](https://github.com/SonarSource/eslint-plugin-sonarjs/compare/0.14.0...0.15.0) --- updated-dependencies: - dependency-name: eslint-plugin-sonarjs dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 5716667878..e96e11ce77 100644 --- a/package.json +++ b/package.json @@ -80,7 +80,7 @@ "eslint-plugin-node": "^11.1.0", "eslint-plugin-react": "^7.29.4", "eslint-plugin-react-hooks": "^4.5.0", - "eslint-plugin-sonarjs": "^0.14.0", + "eslint-plugin-sonarjs": "^0.15.0", "html-webpack-plugin": "^5.5.0", "jest": "^28.0.3", "jest-environment-jsdom": "^28.0.2", From 3e871fa2acae42cfe51d7f5d4db8fc2e2fd7753f Mon Sep 17 00:00:00 2001 From: Aman Mahajan Date: Fri, 19 Aug 2022 12:06:36 -0500 Subject: [PATCH 2/2] Remove deprecated faker methods (#2993) Remove deprecated methods --- website/demos/AllFeatures.tsx | 4 ++-- website/demos/CommonFeatures.tsx | 4 ++-- website/demos/Grouping.tsx | 2 +- website/demos/HeaderFilters.tsx | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/website/demos/AllFeatures.tsx b/website/demos/AllFeatures.tsx index 214d883002..adf030d083 100644 --- a/website/demos/AllFeatures.tsx +++ b/website/demos/AllFeatures.tsx @@ -155,12 +155,12 @@ function createRows(): Row[] { title: faker.name.prefix(), firstName: faker.name.firstName(), lastName: faker.name.lastName(), - street: faker.address.streetName(), + street: faker.address.street(), zipCode: faker.address.zipCode(), date: faker.date.past().toLocaleDateString(), bs: faker.company.bs(), catchPhrase: faker.company.catchPhrase(), - companyName: faker.company.companyName(), + companyName: faker.company.name(), words: faker.lorem.words(), sentence: faker.lorem.sentence() }); diff --git a/website/demos/CommonFeatures.tsx b/website/demos/CommonFeatures.tsx index 0f71f68fbb..492e734192 100644 --- a/website/demos/CommonFeatures.tsx +++ b/website/demos/CommonFeatures.tsx @@ -256,11 +256,11 @@ function createRows(): readonly Row[] { rows.push({ id: i, title: `Task #${i + 1}`, - client: faker.company.companyName(), + client: faker.company.name(), area: faker.name.jobArea(), country: faker.address.country(), contact: faker.internet.exampleEmail(), - assignee: faker.name.findName(), + assignee: faker.name.fullName(), progress: Math.random() * 100, startTimestamp: now - Math.round(Math.random() * 1e10), endTimestamp: now + Math.round(Math.random() * 1e10), diff --git a/website/demos/Grouping.tsx b/website/demos/Grouping.tsx index b1e741b234..7634b2d0c3 100644 --- a/website/demos/Grouping.tsx +++ b/website/demos/Grouping.tsx @@ -129,7 +129,7 @@ function createRows(): readonly Row[] { year: 2015 + faker.datatype.number(3), country: faker.address.country(), sport: sports[faker.datatype.number(sports.length - 1)], - athlete: faker.name.findName(), + athlete: faker.name.fullName(), gold: faker.datatype.number(5), silver: faker.datatype.number(5), bronze: faker.datatype.number(5) diff --git a/website/demos/HeaderFilters.tsx b/website/demos/HeaderFilters.tsx index 93e7a6a883..39380e9899 100644 --- a/website/demos/HeaderFilters.tsx +++ b/website/demos/HeaderFilters.tsx @@ -330,7 +330,7 @@ function createRows() { complete: Math.min(100, Math.round(Math.random() * 110)), priority: ['Critical', 'High', 'Medium', 'Low'][Math.floor(Math.random() * 4)], issueType: ['Bug', 'Improvement', 'Epic', 'Story'][Math.floor(Math.random() * 4)], - developer: faker.name.findName() + developer: faker.name.fullName() }); } return rows;