Skip to content

Commit 58c027d

Browse files
TCA-499 fix param reassignment
1 parent 57fa621 commit 58c027d

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src-ts/.eslintrc.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,12 @@ module.exports = {
8989
],
9090
'no-extra-boolean-cast': 'off',
9191
'no-null/no-null': 'error',
92+
'no-param-reassign': [
93+
'error',
94+
{
95+
props: false
96+
}
97+
],
9298
'no-plusplus': [
9399
'error',
94100
{

src-ts/tools/learn/my-learning/MyLearning.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ const MyLearning: FC<{}> = () => {
4242

4343
const certificatesById: CertificatesByIdType = useMemo(() => (
4444
certifications.reduce((certifs, certificate) => {
45-
// eslint-disable-next-line no-param-reassign
4645
certifs[certificate.id] = certificate
4746
return certifs
4847
}, {} as unknown as CertificatesByIdType)

0 commit comments

Comments
 (0)