Skip to content

Commit

Permalink
Merge pull request #76 from catenax-ng/updates/CPLP-3348-no-unsafe-re…
Browse files Browse the repository at this point in the history
…turn-eslint
  • Loading branch information
oyo authored Jan 11, 2024
2 parents b75db80 + 0f4a682 commit f4b68c7
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 3 deletions.
1 change: 0 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
"@typescript-eslint/no-unsafe-assignment": 0,
"@typescript-eslint/no-unsafe-call": 0,
"@typescript-eslint/no-unsafe-member-access": 0,
"@typescript-eslint/no-unsafe-return": 0,
"@typescript-eslint/prefer-optional-chain": 0,
"@typescript-eslint/restrict-template-expressions": 0,
"@typescript-eslint/strict-boolean-expressions": 0
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 2.1.17

- fix(eslint): enable no-unsafe-return rule

## 2.1.16

- Add copy icon functionality in static table row
Expand Down
2 changes: 1 addition & 1 deletion DEPENDENCIES
Original file line number Diff line number Diff line change
Expand Up @@ -817,7 +817,7 @@ npm/npmjs/-/semver/6.3.0, ISC, approved, clearlydefined
npm/npmjs/-/semver/7.0.0, ISC, approved, clearlydefined
npm/npmjs/-/semver/7.5.3, ISC, approved, clearlydefined
npm/npmjs/-/send/0.18.0, MIT, approved, clearlydefined
npm/npmjs/-/serialize-javascript/6.0.1, BSD-3-Clause, approved, clearlydefined
npm/npmjs/-/serialize-javascript/6.0.1, BSD-3-Clause, approved, #12680
npm/npmjs/-/serve-favicon/2.5.0, MIT, approved, clearlydefined
npm/npmjs/-/serve-static/1.15.0, MIT, approved, clearlydefined
npm/npmjs/-/set-blocking/2.0.0, ISC, approved, #5899
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@catena-x/portal-shared-components",
"version": "2.1.16",
"version": "2.1.17",
"description": "Catena-X Portal Shared Components",
"author": "Catena-X Contributors",
"license": "Apache-2.0",
Expand Down
2 changes: 2 additions & 0 deletions src/components/basic/SelectList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,11 @@ export const SelectList = ({
disabled={disabled}
// eslint-disable-next-line
options={items.map((item: any) => item)}
// eslint-disable-next-line
getOptionLabel={(option) => option[keyTitle] || ''}
onChange={(_, reason) => {
setSelected(reason)
// eslint-disable-next-line
onChangeItem(reason)
}}
isOptionEqualToValue={(option, value) => isEqual(option, value)}
Expand Down
3 changes: 3 additions & 0 deletions src/components/basic/Table/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ export const Table = ({
(selectedIds: GridRowSelectionModel) => {
const idsArr: string[] = []
rows.map((row) => {
// eslint-disable-next-line
return selectedIds.map(
(selectedId: GridRowId) =>
selectedId.toString().includes(row.companyUserId) &&
Expand Down Expand Up @@ -203,11 +204,13 @@ export const Table = ({
outline: 'none',
},
}}
// eslint-disable-next-line
getRowId={(row) => row.id}
components={{
Toolbar: () => toolbarView(),
NoRowsOverlay,
}}
// eslint-disable-next-line
onRowSelectionModelChange={handleOnCellClick}
{...{
rows,
Expand Down

0 comments on commit f4b68c7

Please sign in to comment.