Fix consistent-return eslint rule in ES6 files

[MAILPOET-1139]
This commit is contained in:
Pavel Dohnal
2017-12-06 16:05:21 +00:00
parent d431efb288
commit 62e3ca8a80
5 changed files with 4 additions and 3 deletions

View File

@ -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,

View File

@ -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;

View File

@ -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(),

View File

@ -57,6 +57,7 @@ const ImportTemplate = React.createClass({
}; };
reader.readAsText(file); reader.readAsText(file);
return true;
}, },
render: function () { render: function () {
return ( return (

View File

@ -170,6 +170,7 @@ define(
</p> </p>
); );
} }
return undefined;
}; };
const afterFormContent = function () { const afterFormContent = function () {