fix eslint warnings
This commit is contained in:
@@ -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,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,3 +1,4 @@
|
||||
/* eslint-disable no-console */
|
||||
import { COUNTER_NODE_CLASSNAME } from './common/constants';
|
||||
|
||||
import api from 'common/api';
|
||||
|
||||
@@ -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,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';
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -42,6 +42,7 @@
|
||||
"preact": "^8.2.7",
|
||||
"promise-polyfill": "^7.0.0"
|
||||
},
|
||||
"eslintIgnore": ["public"],
|
||||
"jest": {
|
||||
"transform": {
|
||||
"^.+\\.jsx?$": "<rootDir>/fileTransformer.js"
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
/* eslint-disable no-console */
|
||||
const path = require('path');
|
||||
|
||||
const webpack = require('webpack');
|
||||
|
||||
Reference in New Issue
Block a user