diff --git a/api-server/server/boot/certificate.js b/api-server/server/boot/certificate.js index ae56abaf9b..ae044c234f 100644 --- a/api-server/server/boot/certificate.js +++ b/api-server/server/boot/certificate.js @@ -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 + ` } ] }); diff --git a/client/plugins/fcc-source-challenges/gatsby-node.js b/client/plugins/fcc-source-challenges/gatsby-node.js index f08941e5cd..50f4f64fc3 100644 --- a/client/plugins/fcc-source-challenges/gatsby-node.js +++ b/client/plugins/fcc-source-challenges/gatsby-node.js @@ -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); }) diff --git a/client/src/client-only-routes/ShowCertification.js b/client/src/client-only-routes/ShowCertification.js index bcd18056f6..784e533f56 100644 --- a/client/src/client-only-routes/ShowCertification.js +++ b/client/src/client-only-routes/ShowCertification.js @@ -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, diff --git a/client/src/client-only-routes/ShowUser.js b/client/src/client-only-routes/ShowUser.js index c2e2525aee..5d5a5df4f9 100644 --- a/client/src/client-only-routes/ShowUser.js +++ b/client/src/client-only-routes/ShowUser.js @@ -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 diff --git a/client/src/components/formHelpers/Form.js b/client/src/components/formHelpers/Form.js index 53fafbdff9..a793640017 100644 --- a/client/src/components/formHelpers/Form.js +++ b/client/src/components/formHelpers/Form.js @@ -39,6 +39,7 @@ export function DynamicForm({ fields, handleSubmit, fields: { + // eslint-disable-next-line react/prop-types _meta: { allPristine } }, diff --git a/client/src/components/profile/Profile.js b/client/src/components/profile/Profile.js index 2d2b7dc747..4f7c01129c 100644 --- a/client/src/components/profile/Profile.js +++ b/client/src/components/profile/Profile.js @@ -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 }) }; diff --git a/client/src/pages/welcome.js b/client/src/pages/welcome.js index d5c7502f9a..cf0ea71198 100644 --- a/client/src/pages/welcome.js +++ b/client/src/pages/welcome.js @@ -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 }) };