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: [
{
type: 'info',
message: `It looks like user ${username} is not ${
certText[certType]
} certified`
message: `
It looks like user ${username} is not ${certText[certType]} certified
`
}
]
});

View File

@ -37,9 +37,9 @@ exports.sourceNodes = function sourceChallengesSourceNodes(
? onSourceChange(filePath)
.then(challenge => {
reporter.info(
`File changed at ${filePath}, replacing challengeNode id ${
challenge.id
}`
`
File changed at ${filePath}, replacing challengeNode id ${challenge.id}
`
);
return createChallengeNode(challenge, reporter);
})

View File

@ -23,11 +23,12 @@ const propTypes = {
username: PropTypes.string,
name: PropTypes.string,
certName: PropTypes.string,
certTitle: PropTypes.string,
completionTime: PropTypes.string,
date: PropTypes.string
}),
certDashedName: PropTypes.string,
certName: PropTypes.string,
certTitle: PropTypes.string,
createFlashMessage: PropTypes.func.isRequired,
fetchState: PropTypes.shape({
pending: PropTypes.bool,

View File

@ -28,7 +28,7 @@ const propTypes = {
reportUser: PropTypes.func.isRequired,
userFetchState: PropTypes.shape({
pending: PropTypes.bool,
comnplete: PropTypes.bool,
complete: PropTypes.bool,
errored: PropTypes.bool
}),
username: PropTypes.string

View File

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

View File

@ -25,7 +25,25 @@ const propTypes = {
showPortfolio: 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,
user: PropTypes.shape({
acceptedPrivacyTerms: PropTypes.bool,
username: PropTypes.string,
completedChallengeCount: PropTypes.number,
completedProjectCount: PropTypes.number,
completedCertCount: PropTypes.number,
completedChallengeCount: PropTypes.number,
completedLegacyCertCount: PropTypes.number,
isDonating: PropTypes.bool
completedProjectCount: PropTypes.number,
isDonating: PropTypes.bool,
name: PropTypes.string,
username: PropTypes.string
})
};