Skip to content

Commit 59b322d

Browse files
committed
Fix lint errors
1 parent 6ca8886 commit 59b322d

File tree

6 files changed

+18
-8
lines changed

6 files changed

+18
-8
lines changed

src-ts/config/environments/environment.default.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ export const EnvironmentConfigDefault: EnvironmentConfigModel = {
2525
SERVICE: 'platform-ui',
2626
},
2727
MEMBER_VERIFY_LOOKER: 3322,
28-
REACT_APP_ENABLE_TCA_CERT_MONETIZATION: process.env.REACT_APP_ENABLE_TCA_CERT_MONETIZATION as unknown as boolean || false,
2928
REACT_APP_ENABLE_EMSI_SKILLS: process.env.REACT_APP_ENABLE_EMSI_SKILLS as unknown as boolean || false,
29+
REACT_APP_ENABLE_TCA_CERT_MONETIZATION: process.env.REACT_APP_ENABLE_TCA_CERT_MONETIZATION as unknown as boolean || false,
3030
REAUTH_OFFSET: 55,
3131
SPRIG: {
3232
ENVIRONMENT_ID: 'bUcousVQ0-yF',

src-ts/tools/learn/certification-details/certification-details-sidebar/CertificationDetailsSidebar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ const CertificationDetailsSidebar: FC<CertificationDetailsSidebarProps> = (props
144144
emsiSkills={props.certification.emsiSkills}
145145
skills={props.certification.skills}
146146
courseKey={props.certification.dashedName}
147-
theme={'gray'}
147+
theme='gray'
148148
expandCount={9}
149149
/>
150150

src-ts/tools/learn/learn-lib/data-providers/tca-certifications-provider/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ export * from './tca-certification-progress'
1717
export * from './tca-certification-enrollment-base.model'
1818
export * from './tca-certification-validation'
1919
export * from './tca-certification-enrollment'
20-
export * from './tca-emsi-skill-type';
20+
export * from './tca-emsi-skill-type'

src-ts/tools/learn/learn-lib/hiring-manager-view/HiringManagerView.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ export interface HiringManagerViewProps {
6565
validationUrl?: string
6666
}
6767

68+
// eslint-disable-next-line complexity
6869
const HiringManagerView: FC<HiringManagerViewProps> = (props: HiringManagerViewProps) => {
6970
const certificateElRef: MutableRefObject<HTMLDivElement | any> = useRef()
7071
const wrapElRef: MutableRefObject<HTMLElement | any> = useRef()
@@ -141,7 +142,7 @@ const HiringManagerView: FC<HiringManagerViewProps> = (props: HiringManagerViewP
141142
function renderTCACertificatePreview(ref?: MutableRefObject<HTMLDivElement | any>): ReactNode {
142143
return (
143144
<TCACertificatePreview
144-
certification={props.certification}
145+
certification={props.certification as TCACertification}
145146
userName={props.userName}
146147
completedDate={props.completedAt}
147148
completionUuid={props.completionUuid}

src-ts/tools/learn/learn-lib/skill-tags/SkillTags.tsx

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import classNames from 'classnames'
33

44
import { Tooltip } from '../../../../lib'
55
import { SkillLabel, TCAEMSISkillType } from '..'
6+
import { EnvironmentConfig } from '../../../../config'
67

78
import styles from './SkillTags.module.scss'
8-
import { EnvironmentConfig } from '../../../../config'
99

1010
interface SkillTagsProps {
1111
courseKey?: string
@@ -22,18 +22,26 @@ const SkillTags: FC<SkillTagsProps> = (props: SkillTagsProps) => {
2222
const label: string = props.label ?? 'skills taught'
2323
const tcaEMSIEnabled: boolean = EnvironmentConfig.REACT_APP_ENABLE_EMSI_SKILLS || false
2424

25-
const skills = tcaEMSIEnabled ? (props.emsiSkills || []) : (props.skills || []);
25+
const skills: string[] | TCAEMSISkillType[] = tcaEMSIEnabled ? (props.emsiSkills || []) : (props.skills || [])
2626

2727
return (
2828
<div className={styles.skills}>
2929
{label && (
3030
<span className={classNames('body-small', styles.infoText)}>{label}</span>
3131
)}
3232
{skills?.slice(0, expandCount)
33-
.map((skill: string | TCAEMSISkillType) => <SkillLabel skill={skill} theme={theme} key={`${props.courseKey}:${typeof skill === 'string' ? skill : skill.name}`} />)}
33+
.map((skill: string | TCAEMSISkillType) => (
34+
<SkillLabel
35+
skill={skill}
36+
theme={theme}
37+
key={`${props.courseKey}:${typeof skill === 'string' ? skill : skill.name}`}
38+
/>
39+
))}
3440
{skills.length > expandCount && (
3541
<Tooltip
36-
content={skills.slice(expandCount).map(skill => typeof skill === 'string' ? skill : skill.name).join(', ')}
42+
content={skills.slice(expandCount)
43+
.map(skill => (typeof skill === 'string' ? skill : skill.name))
44+
.join(', ')}
3745
trigger={<SkillLabel skill={`+ ${skills.slice(expandCount).length}`} theme={theme} />}
3846
/>
3947
)}

src-ts/tools/learn/learn-lib/skill/SkillLabel.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { FC } from 'react'
2+
23
import { TCAEMSISkillType } from '../data-providers'
34

45
import styles from './SkillLabel.module.scss'

0 commit comments

Comments
 (0)