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", 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;