Fix ES6 padded-blocks eslint rule [MAILPOET-1137]
This commit is contained in:
@ -52,7 +52,6 @@
|
||||
"no-script-url": 0,
|
||||
"space-infix-ops": 0,
|
||||
"no-irregular-whitespace": 0,
|
||||
"padded-blocks": 0,
|
||||
"no-underscore-dangle": 0
|
||||
}
|
||||
}
|
||||
|
@ -43,7 +43,6 @@ const FormFieldSelect = React.createClass({
|
||||
|
||||
const options = keys.map(
|
||||
(value, index) => {
|
||||
|
||||
if (filter !== false && filter(this.props.item, value) === false) {
|
||||
return;
|
||||
}
|
||||
|
@ -15,7 +15,6 @@ define(
|
||||
FormField,
|
||||
jQuery
|
||||
) => {
|
||||
|
||||
const Form = React.createClass({
|
||||
contextTypes: {
|
||||
router: React.PropTypes.object.isRequired,
|
||||
|
@ -17,7 +17,6 @@ const App = React.createClass({
|
||||
const container = document.getElementById('help_container');
|
||||
|
||||
if (container) {
|
||||
|
||||
ReactDOM.render((
|
||||
<Router history={history}>
|
||||
<Route path="/" component={App}>
|
||||
@ -28,5 +27,4 @@ if (container) {
|
||||
</Route>
|
||||
</Router>
|
||||
), container);
|
||||
|
||||
}
|
||||
|
@ -4,7 +4,6 @@ import MailPoet from 'mailpoet';
|
||||
import Tabs from './tabs.jsx';
|
||||
|
||||
function KnowledgeBase() {
|
||||
|
||||
return (
|
||||
<div>
|
||||
|
||||
|
@ -17,7 +17,6 @@ const tabs = [
|
||||
];
|
||||
|
||||
function Tabs(props) {
|
||||
|
||||
const tabLinks = tabs.map((tab, index) => {
|
||||
const tabClasses = classNames(
|
||||
'nav-tab',
|
||||
|
@ -1,5 +1,4 @@
|
||||
define(['react', 'classnames'], (React, classNames) => {
|
||||
|
||||
const ListingGroups = React.createClass({
|
||||
handleSelect: function (group) {
|
||||
return this.props.onSelectGroup(group);
|
||||
|
@ -7,7 +7,6 @@ define([
|
||||
classNames,
|
||||
MailPoet
|
||||
) => {
|
||||
|
||||
const ListingPages = React.createClass({
|
||||
getInitialState: function () {
|
||||
return {
|
||||
|
@ -5,7 +5,6 @@ define([
|
||||
MailPoet,
|
||||
React
|
||||
) => {
|
||||
|
||||
const ListingSearch = React.createClass({
|
||||
handleSearch: function (e) {
|
||||
e.preventDefault();
|
||||
|
@ -25,7 +25,6 @@ define(
|
||||
HelpTooltip,
|
||||
jQuery
|
||||
) => {
|
||||
|
||||
const NewsletterSend = React.createClass({
|
||||
contextTypes: {
|
||||
router: React.PropTypes.object.isRequired,
|
||||
|
@ -11,7 +11,6 @@ define(
|
||||
Scheduling,
|
||||
_
|
||||
) => {
|
||||
|
||||
let fields = [
|
||||
{
|
||||
name: 'subject',
|
||||
|
@ -13,7 +13,6 @@ define(
|
||||
MailPoet,
|
||||
Hooks
|
||||
) => {
|
||||
|
||||
const jQuery = jq;
|
||||
|
||||
const currentTime = window.mailpoet_current_time || '00:00';
|
||||
|
@ -9,8 +9,6 @@ define(
|
||||
Hooks,
|
||||
Scheduling
|
||||
) => {
|
||||
|
||||
|
||||
let fields = [
|
||||
{
|
||||
name: 'subject',
|
||||
|
@ -17,7 +17,6 @@ define(
|
||||
Breadcrumb,
|
||||
HelpTooltip
|
||||
) => {
|
||||
|
||||
const ImportTemplate = React.createClass({
|
||||
saveTemplate: function (saveTemplate) {
|
||||
const template = saveTemplate;
|
||||
|
@ -15,7 +15,6 @@ define(
|
||||
Scheduling,
|
||||
Breadcrumb
|
||||
) => {
|
||||
|
||||
const field = {
|
||||
name: 'options',
|
||||
type: 'reactComponent',
|
||||
|
@ -11,7 +11,6 @@ define(
|
||||
MailPoet,
|
||||
Breadcrumb
|
||||
) => {
|
||||
|
||||
const NewsletterStandard = React.createClass({
|
||||
contextTypes: {
|
||||
router: React.PropTypes.object.isRequired,
|
||||
|
@ -11,7 +11,6 @@ define(
|
||||
MailPoet,
|
||||
Form
|
||||
) => {
|
||||
|
||||
const fields = [
|
||||
{
|
||||
name: 'name',
|
||||
|
Reference in New Issue
Block a user