Merge pull request #10374 from FreeCodeCamp/greenkeeper-eslint-plugin-react-6.2.0
Update eslint-plugin-react to version 6.2.0 🚀
pull/10441/head
commit
b112753154
|
@ -62,6 +62,7 @@ export class Challenges extends PureComponent {
|
|||
|
||||
static propTypes = {
|
||||
title: PropTypes.string,
|
||||
viewType: PropTypes.string,
|
||||
isStep: PropTypes.bool,
|
||||
fetchChallenges: PropTypes.func.isRequired,
|
||||
replaceChallenge: PropTypes.func.isRequired,
|
||||
|
|
|
@ -51,6 +51,7 @@ export class Challenge extends PureComponent {
|
|||
showPreview: PropTypes.bool,
|
||||
content: PropTypes.string,
|
||||
mode: PropTypes.string,
|
||||
file: PropTypes.object,
|
||||
updateFile: PropTypes.func,
|
||||
executeChallenge: PropTypes.func,
|
||||
loadCode: PropTypes.func
|
||||
|
|
|
@ -66,12 +66,14 @@ export class SidePanel extends PureComponent {
|
|||
tests: PropTypes.arrayOf(PropTypes.object),
|
||||
title: PropTypes.string,
|
||||
output: PropTypes.string,
|
||||
hints: PropTypes.string,
|
||||
hint: PropTypes.string,
|
||||
updateHint: PropTypes.func,
|
||||
makeToast: PropTypes.func,
|
||||
toggleHelpChat: PropTypes.func,
|
||||
openBugModal: PropTypes.func,
|
||||
unlockUntrustedCode: PropTypes.func
|
||||
unlockUntrustedCode: PropTypes.func,
|
||||
isCodeLocked: PropTypes.bool,
|
||||
executeChallenge: PropTypes.func
|
||||
};
|
||||
|
||||
renderDescription(description = [ 'Happy Coding!' ], descriptionRegex) {
|
||||
|
|
|
@ -5,7 +5,7 @@ import { Col, Row } from 'react-bootstrap';
|
|||
|
||||
export default class extends PureComponent {
|
||||
static displayName = 'TestSuite';
|
||||
static proptTypes = {
|
||||
static propTypes = {
|
||||
tests: PropTypes.arrayOf(PropTypes.object)
|
||||
};
|
||||
|
||||
|
|
|
@ -18,13 +18,14 @@ export default class ToolPanel extends PureComponent {
|
|||
static displayName = 'ToolPanel';
|
||||
|
||||
static propTypes = {
|
||||
executeChallenge: PropTypes.func,
|
||||
updateHint: PropTypes.func,
|
||||
executeChallenge: PropTypes.func.isRequired,
|
||||
updateHint: PropTypes.func.isRequired,
|
||||
hint: PropTypes.string,
|
||||
isCodeLocked: PropTypes.bool,
|
||||
toggleHelpChat: PropTypes.func,
|
||||
openBugModal: PropTypes.func,
|
||||
unlockUntrustedCode: PropTypes.func.isRequired
|
||||
unlockUntrustedCode: PropTypes.func.isRequired,
|
||||
toggleHelpChat: PropTypes.func.isRequired,
|
||||
openBugModal: PropTypes.func.isRequired,
|
||||
makeToast: PropTypes.func.isRequired
|
||||
};
|
||||
|
||||
makeHint() {
|
||||
|
|
|
@ -55,7 +55,9 @@ export class Challenge extends PureComponent {
|
|||
block: PropTypes.string,
|
||||
isLocked: PropTypes.bool,
|
||||
isRequired: PropTypes.bool,
|
||||
isComingSoon: PropTypes.bool,
|
||||
isCompleted: PropTypes.bool,
|
||||
isDev: PropTypes.bool,
|
||||
isHidden: PropTypes.bool,
|
||||
challenge: PropTypes.object,
|
||||
updateCurrentChallenge: PropTypes.func.isRequired,
|
||||
|
|
|
@ -33,6 +33,7 @@ export class ShowMap extends PureComponent {
|
|||
superBlocks: PropTypes.array,
|
||||
height: PropTypes.number,
|
||||
updateTitle: PropTypes.func.isRequired,
|
||||
params: PropTypes.object,
|
||||
fetchChallenges: PropTypes.func.isRequired
|
||||
};
|
||||
|
||||
|
|
|
@ -49,7 +49,7 @@ export class SuperBlock extends PureComponent {
|
|||
isOpen: PropTypes.bool,
|
||||
isHidden: PropTypes.bool,
|
||||
message: PropTypes.string,
|
||||
toggleThisPanl: PropTypes.func
|
||||
toggleThisPanel: PropTypes.func
|
||||
};
|
||||
|
||||
handleSelect(eventKey, e) {
|
||||
|
|
|
@ -44,8 +44,9 @@ export class ToolPanel extends PureComponent {
|
|||
isSimple: PropTypes.bool,
|
||||
isFrontEnd: PropTypes.bool,
|
||||
isSubmitting: PropTypes.bool,
|
||||
toggleHelpChat: PropTypes.func,
|
||||
openBugModal: PropTypes.func
|
||||
toggleHelpChat: PropTypes.func.isRequired,
|
||||
openBugModal: PropTypes.func.isRequired,
|
||||
submitChallenge: PropTypes.func.isRequired
|
||||
};
|
||||
|
||||
renderSubmitButton(isSignedIn, submitChallenge) {
|
||||
|
|
|
@ -69,11 +69,11 @@ export class StepChallenge extends PureComponent {
|
|||
numOfSteps: PropTypes.number,
|
||||
stepForward: PropTypes.func,
|
||||
stepBackward: PropTypes.func,
|
||||
completeAction: PropTypes.func,
|
||||
submitChallenge: PropTypes.func,
|
||||
completeAction: PropTypes.func.isRequired,
|
||||
submitChallenge: PropTypes.func.isRequired,
|
||||
isLightBoxOpen: PropTypes.bool,
|
||||
openlightBoxImage: PropTypes.func,
|
||||
closeLightBoxImage: PropTypes.func
|
||||
openLightBoxImage: PropTypes.func.isRequired,
|
||||
closeLightBoxImage: PropTypes.func.isRequired
|
||||
};
|
||||
|
||||
handleLightBoxOpen(e) {
|
||||
|
|
|
@ -129,7 +129,7 @@
|
|||
"del": "^2.2.0",
|
||||
"eslint": "^3.1.0",
|
||||
"eslint-plugin-import": "^1.9.2",
|
||||
"eslint-plugin-react": "^5.1.1",
|
||||
"eslint-plugin-react": "^6.2.0",
|
||||
"gulp": "^3.9.0",
|
||||
"gulp-babel": "^6.1.1",
|
||||
"gulp-concat": "^2.6.0",
|
||||
|
|
Loading…
Reference in New Issue