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