Fix ES6 padded-blocks eslint rule [MAILPOET-1137]

This commit is contained in:
stoletniy
2017-10-26 15:00:16 +03:00
committed by Vlad
parent 37aec3ee4f
commit 10eca98dc3
17 changed files with 0 additions and 19 deletions

View File

@ -52,7 +52,6 @@
"no-script-url": 0,
"space-infix-ops": 0,
"no-irregular-whitespace": 0,
"padded-blocks": 0,
"no-underscore-dangle": 0
}
}

View File

@ -43,7 +43,6 @@ const FormFieldSelect = React.createClass({
const options = keys.map(
(value, index) => {
if (filter !== false && filter(this.props.item, value) === false) {
return;
}

View File

@ -15,7 +15,6 @@ define(
FormField,
jQuery
) => {
const Form = React.createClass({
contextTypes: {
router: React.PropTypes.object.isRequired,

View File

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

View File

@ -4,7 +4,6 @@ import MailPoet from 'mailpoet';
import Tabs from './tabs.jsx';
function KnowledgeBase() {
return (
<div>

View File

@ -17,7 +17,6 @@ const tabs = [
];
function Tabs(props) {
const tabLinks = tabs.map((tab, index) => {
const tabClasses = classNames(
'nav-tab',

View File

@ -1,5 +1,4 @@
define(['react', 'classnames'], (React, classNames) => {
const ListingGroups = React.createClass({
handleSelect: function (group) {
return this.props.onSelectGroup(group);

View File

@ -7,7 +7,6 @@ define([
classNames,
MailPoet
) => {
const ListingPages = React.createClass({
getInitialState: function () {
return {

View File

@ -5,7 +5,6 @@ define([
MailPoet,
React
) => {
const ListingSearch = React.createClass({
handleSearch: function (e) {
e.preventDefault();

View File

@ -25,7 +25,6 @@ define(
HelpTooltip,
jQuery
) => {
const NewsletterSend = React.createClass({
contextTypes: {
router: React.PropTypes.object.isRequired,

View File

@ -11,7 +11,6 @@ define(
Scheduling,
_
) => {
let fields = [
{
name: 'subject',

View File

@ -13,7 +13,6 @@ define(
MailPoet,
Hooks
) => {
const jQuery = jq;
const currentTime = window.mailpoet_current_time || '00:00';

View File

@ -9,8 +9,6 @@ define(
Hooks,
Scheduling
) => {
let fields = [
{
name: 'subject',

View File

@ -17,7 +17,6 @@ define(
Breadcrumb,
HelpTooltip
) => {
const ImportTemplate = React.createClass({
saveTemplate: function (saveTemplate) {
const template = saveTemplate;

View File

@ -15,7 +15,6 @@ define(
Scheduling,
Breadcrumb
) => {
const field = {
name: 'options',
type: 'reactComponent',

View File

@ -11,7 +11,6 @@ define(
MailPoet,
Breadcrumb
) => {
const NewsletterStandard = React.createClass({
contextTypes: {
router: React.PropTypes.object.isRequired,

View File

@ -11,7 +11,6 @@ define(
MailPoet,
Form
) => {
const fields = [
{
name: 'name',