From ec44b84cc98aa3029f0fd937e8172e1ca9da5ba1 Mon Sep 17 00:00:00 2001 From: stoletniy Date: Mon, 4 Sep 2017 09:25:12 +0300 Subject: [PATCH] Fix ES6 no-extra-semi eslint rule [MAILPOET-1030] --- .eslintrc.es6.json | 1 - assets/js/src/form/fields/date.jsx | 2 +- assets/js/src/help/knowledge_base.jsx | 2 +- assets/js/src/help/system_info.jsx | 2 +- assets/js/src/help/tabs.jsx | 2 +- assets/js/src/listing/bulk_actions.jsx | 2 +- 6 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.eslintrc.es6.json b/.eslintrc.es6.json index 8bdc4ef731..3399f27d5e 100644 --- a/.eslintrc.es6.json +++ b/.eslintrc.es6.json @@ -46,7 +46,6 @@ "array-callback-return": 0, "consistent-return": 0, "no-unreachable": 0, - "no-extra-semi": 0, "import/no-unresolved": 0, "import/extensions": 0, "import/no-extraneous-dependencies": 0, diff --git a/assets/js/src/form/fields/date.jsx b/assets/js/src/form/fields/date.jsx index 6a6cecd313..b0c8ba1efe 100644 --- a/assets/js/src/form/fields/date.jsx +++ b/assets/js/src/form/fields/date.jsx @@ -245,7 +245,7 @@ define([ ); } - }; + } return FormFieldDate; }); diff --git a/assets/js/src/help/knowledge_base.jsx b/assets/js/src/help/knowledge_base.jsx index 031077a9c0..58d9c713cd 100644 --- a/assets/js/src/help/knowledge_base.jsx +++ b/assets/js/src/help/knowledge_base.jsx @@ -24,6 +24,6 @@ function KnowledgeBase() { {MailPoet.I18n.t('knowledgeBaseButton')} ); -}; +} module.exports = KnowledgeBase; diff --git a/assets/js/src/help/system_info.jsx b/assets/js/src/help/system_info.jsx index fb21bb8bec..c5304408ff 100644 --- a/assets/js/src/help/system_info.jsx +++ b/assets/js/src/help/system_info.jsx @@ -42,6 +42,6 @@ function KnowledgeBase() { {printData(data)} ); -}; +} module.exports = KnowledgeBase; diff --git a/assets/js/src/help/tabs.jsx b/assets/js/src/help/tabs.jsx index 9c2fb2e69a..d5e475de27 100644 --- a/assets/js/src/help/tabs.jsx +++ b/assets/js/src/help/tabs.jsx @@ -38,7 +38,7 @@ function Tabs(props) { { tabLinks } ); -}; +} Tabs.propTypes = { tab: React.PropTypes.string }; Tabs.defaultProps = { tab: 'knowledgeBase' }; diff --git a/assets/js/src/listing/bulk_actions.jsx b/assets/js/src/listing/bulk_actions.jsx index 7609845803..5864687704 100644 --- a/assets/js/src/listing/bulk_actions.jsx +++ b/assets/js/src/listing/bulk_actions.jsx @@ -56,7 +56,7 @@ define([ const promise = this.props.onBulkAction(selected_ids, data); if (promise !== false) { promise.then(onSuccess); - }; + } } this.setState({