chore(client): resolve linting errors in client

This commit is contained in:
Mrugesh Mohapatra
2019-07-19 19:28:04 +05:30
committed by mrugesh
parent 8980528009
commit 298e263f74
7 changed files with 34 additions and 13 deletions

View File

@ -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` `
} }
] ]
}); });

View File

@ -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);
}) })

View File

@ -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,

View File

@ -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

View File

@ -39,6 +39,7 @@ export function DynamicForm({
fields, fields,
handleSubmit, handleSubmit,
fields: { fields: {
// eslint-disable-next-line react/prop-types
_meta: { allPristine } _meta: { allPristine }
}, },

View File

@ -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
}) })
}; };

View File

@ -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
}) })
}; };