chore(client): resolve linting errors in client
This commit is contained in:
committed by
mrugesh
parent
8980528009
commit
298e263f74
@ -463,9 +463,9 @@ function createShowCert(app) {
|
|||||||
messages: [
|
messages: [
|
||||||
{
|
{
|
||||||
type: 'info',
|
type: 'info',
|
||||||
message: `It looks like user ${username} is not ${
|
message: `
|
||||||
certText[certType]
|
It looks like user ${username} is not ${certText[certType]} certified
|
||||||
} certified`
|
`
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
|
@ -37,9 +37,9 @@ exports.sourceNodes = function sourceChallengesSourceNodes(
|
|||||||
? onSourceChange(filePath)
|
? onSourceChange(filePath)
|
||||||
.then(challenge => {
|
.then(challenge => {
|
||||||
reporter.info(
|
reporter.info(
|
||||||
`File changed at ${filePath}, replacing challengeNode id ${
|
`
|
||||||
challenge.id
|
File changed at ${filePath}, replacing challengeNode id ${challenge.id}
|
||||||
}`
|
`
|
||||||
);
|
);
|
||||||
return createChallengeNode(challenge, reporter);
|
return createChallengeNode(challenge, reporter);
|
||||||
})
|
})
|
||||||
|
@ -23,11 +23,12 @@ const propTypes = {
|
|||||||
username: PropTypes.string,
|
username: PropTypes.string,
|
||||||
name: PropTypes.string,
|
name: PropTypes.string,
|
||||||
certName: PropTypes.string,
|
certName: PropTypes.string,
|
||||||
|
certTitle: PropTypes.string,
|
||||||
|
completionTime: PropTypes.string,
|
||||||
date: PropTypes.string
|
date: PropTypes.string
|
||||||
}),
|
}),
|
||||||
certDashedName: PropTypes.string,
|
certDashedName: PropTypes.string,
|
||||||
certName: PropTypes.string,
|
certName: PropTypes.string,
|
||||||
certTitle: PropTypes.string,
|
|
||||||
createFlashMessage: PropTypes.func.isRequired,
|
createFlashMessage: PropTypes.func.isRequired,
|
||||||
fetchState: PropTypes.shape({
|
fetchState: PropTypes.shape({
|
||||||
pending: PropTypes.bool,
|
pending: PropTypes.bool,
|
||||||
|
@ -28,7 +28,7 @@ const propTypes = {
|
|||||||
reportUser: PropTypes.func.isRequired,
|
reportUser: PropTypes.func.isRequired,
|
||||||
userFetchState: PropTypes.shape({
|
userFetchState: PropTypes.shape({
|
||||||
pending: PropTypes.bool,
|
pending: PropTypes.bool,
|
||||||
comnplete: PropTypes.bool,
|
complete: PropTypes.bool,
|
||||||
errored: PropTypes.bool
|
errored: PropTypes.bool
|
||||||
}),
|
}),
|
||||||
username: PropTypes.string
|
username: PropTypes.string
|
||||||
|
@ -39,6 +39,7 @@ export function DynamicForm({
|
|||||||
fields,
|
fields,
|
||||||
handleSubmit,
|
handleSubmit,
|
||||||
fields: {
|
fields: {
|
||||||
|
// eslint-disable-next-line react/prop-types
|
||||||
_meta: { allPristine }
|
_meta: { allPristine }
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -25,7 +25,25 @@ const propTypes = {
|
|||||||
showPortfolio: PropTypes.bool,
|
showPortfolio: PropTypes.bool,
|
||||||
showTimeLine: PropTypes.bool
|
showTimeLine: PropTypes.bool
|
||||||
}),
|
}),
|
||||||
username: PropTypes.string
|
calendar: PropTypes.object,
|
||||||
|
streak: PropTypes.shape,
|
||||||
|
completedChallenges: PropTypes.array,
|
||||||
|
portfolio: PropTypes.array,
|
||||||
|
about: PropTypes.string,
|
||||||
|
githubProfile: PropTypes.string,
|
||||||
|
isGithub: PropTypes.bool,
|
||||||
|
isLinkedIn: PropTypes.bool,
|
||||||
|
isTwitter: PropTypes.bool,
|
||||||
|
isWebsite: PropTypes.bool,
|
||||||
|
linkedin: PropTypes.string,
|
||||||
|
location: PropTypes.string,
|
||||||
|
name: PropTypes.string,
|
||||||
|
picture: PropTypes.string,
|
||||||
|
points: PropTypes.number,
|
||||||
|
twitter: PropTypes.string,
|
||||||
|
username: PropTypes.string,
|
||||||
|
website: PropTypes.string,
|
||||||
|
yearsTopContributor: PropTypes.array
|
||||||
})
|
})
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -31,12 +31,13 @@ const propTypes = {
|
|||||||
isSignedIn: PropTypes.bool,
|
isSignedIn: PropTypes.bool,
|
||||||
user: PropTypes.shape({
|
user: PropTypes.shape({
|
||||||
acceptedPrivacyTerms: PropTypes.bool,
|
acceptedPrivacyTerms: PropTypes.bool,
|
||||||
username: PropTypes.string,
|
|
||||||
completedChallengeCount: PropTypes.number,
|
|
||||||
completedProjectCount: PropTypes.number,
|
|
||||||
completedCertCount: PropTypes.number,
|
completedCertCount: PropTypes.number,
|
||||||
|
completedChallengeCount: PropTypes.number,
|
||||||
completedLegacyCertCount: PropTypes.number,
|
completedLegacyCertCount: PropTypes.number,
|
||||||
isDonating: PropTypes.bool
|
completedProjectCount: PropTypes.number,
|
||||||
|
isDonating: PropTypes.bool,
|
||||||
|
name: PropTypes.string,
|
||||||
|
username: PropTypes.string
|
||||||
})
|
})
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user