Fix consistent-return eslint rule in ES6 files
[MAILPOET-1139]
This commit is contained in:
@ -40,7 +40,6 @@
|
|||||||
"jsx-a11y/alt-text": 0,
|
"jsx-a11y/alt-text": 0,
|
||||||
"func-names": 0,
|
"func-names": 0,
|
||||||
"object-shorthand": 0,
|
"object-shorthand": 0,
|
||||||
"consistent-return": 0,
|
|
||||||
"import/extensions": 0,
|
"import/extensions": 0,
|
||||||
"import/no-extraneous-dependencies": 0,
|
"import/no-extraneous-dependencies": 0,
|
||||||
"camelcase": 0,
|
"camelcase": 0,
|
||||||
|
@ -42,7 +42,7 @@ function renderCronSection(data) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function renderMSSSection(data) {
|
function renderMSSSection(data) {
|
||||||
if (!data.mss.enabled) return;
|
if (!data.mss.enabled) return undefined;
|
||||||
|
|
||||||
const status = data.mss.enabled.isReachable;
|
const status = data.mss.enabled.isReachable;
|
||||||
|
|
||||||
|
@ -217,7 +217,7 @@ define(
|
|||||||
},
|
},
|
||||||
propagateChange: function () {
|
propagateChange: function () {
|
||||||
if (this.props.onChange) {
|
if (this.props.onChange) {
|
||||||
return this.props.onChange({
|
this.props.onChange({
|
||||||
target: {
|
target: {
|
||||||
name: this.props.name || '',
|
name: this.props.name || '',
|
||||||
value: this.getDateTime(),
|
value: this.getDateTime(),
|
||||||
|
@ -57,6 +57,7 @@ const ImportTemplate = React.createClass({
|
|||||||
};
|
};
|
||||||
|
|
||||||
reader.readAsText(file);
|
reader.readAsText(file);
|
||||||
|
return true;
|
||||||
},
|
},
|
||||||
render: function () {
|
render: function () {
|
||||||
return (
|
return (
|
||||||
|
@ -170,6 +170,7 @@ define(
|
|||||||
</p>
|
</p>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
return undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
const afterFormContent = function () {
|
const afterFormContent = function () {
|
||||||
|
Reference in New Issue
Block a user