fix eslint warnings

This commit is contained in:
Гурьянов Алексей Александрович
2018-06-24 16:14:07 +04:00
parent b5b7bc50af
commit f473c2a659
8 changed files with 9 additions and 2 deletions
@@ -5,7 +5,7 @@ import { NODE_ID } from 'common/constants';
import Comment from 'components/comment';
export default class ListComments extends Component {
render({ comments = [] }, state) {
render({ comments = [] }) {
return (
<div id={NODE_ID}>
<div className="list-comments">
+1 -1
View File
@@ -1,7 +1,7 @@
import { h, Component } from 'preact';
export default class Preloader extends Component {
render(props, state) {
render(props) {
return (
<div className={b('preloader', props)}>
<div className="preloader__bounce"/>
+1
View File
@@ -1,3 +1,4 @@
/* eslint-disable no-console */
import { COUNTER_NODE_CLASSNAME } from './common/constants';
import api from 'common/api';
+1
View File
@@ -1,3 +1,4 @@
/* eslint-disable no-console */
import { BASE_URL, NODE_ID, COMMENT_NODE_CLASSNAME_PREFIX } from 'common/constants';
if (document.readyState === 'loading') {
+1
View File
@@ -1,3 +1,4 @@
/* eslint-disable no-console */
import { h, render } from 'preact';
import { BASE_URL, DEFAULT_LAST_COMMENTS_MAX, LAST_COMMENTS_NODE_CLASSNAME } from './common/constants';
+2
View File
@@ -1,8 +1,10 @@
/* eslint-disable no-console */
import 'babel-polyfill';
import 'common/promises';
import { h, render } from 'preact';
import Root from './components/root';
// eslint-disable-next-line no-unused-vars
import ListComments from './components/list-comments'; // TODO: temp solution for extracting styles
import { NODE_ID } from './common/constants';
+1
View File
@@ -42,6 +42,7 @@
"preact": "^8.2.7",
"promise-polyfill": "^7.0.0"
},
"eslintIgnore": ["public"],
"jest": {
"transform": {
"^.+\\.jsx?$": "<rootDir>/fileTransformer.js"
+1
View File
@@ -1,3 +1,4 @@
/* eslint-disable no-console */
const path = require('path');
const webpack = require('webpack');