From f473c2a65927f48c16a066a40cdc492a85620481 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=93=D1=83=D1=80=D1=8C=D1=8F=D0=BD=D0=BE=D0=B2=20=D0=90?= =?UTF-8?q?=D0=BB=D0=B5=D0=BA=D1=81=D0=B5=D0=B9=20=D0=90=D0=BB=D0=B5=D0=BA?= =?UTF-8?q?=D1=81=D0=B0=D0=BD=D0=B4=D1=80=D0=BE=D0=B2=D0=B8=D1=87?= Date: Sun, 24 Jun 2018 07:02:54 +0400 Subject: [PATCH] fix eslint warnings --- web/app/components/list-comments/list-comments.jsx | 2 +- web/app/components/preloader/preloader.jsx | 2 +- web/app/counter.js | 1 + web/app/embed.js | 1 + web/app/last-comments.js | 1 + web/app/remark.js | 2 ++ web/package.json | 1 + web/webpack.config.js | 1 + 8 files changed, 9 insertions(+), 2 deletions(-) diff --git a/web/app/components/list-comments/list-comments.jsx b/web/app/components/list-comments/list-comments.jsx index c977e03f..1eb95b02 100644 --- a/web/app/components/list-comments/list-comments.jsx +++ b/web/app/components/list-comments/list-comments.jsx @@ -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 (
diff --git a/web/app/components/preloader/preloader.jsx b/web/app/components/preloader/preloader.jsx index e2ab0ed5..921d161e 100644 --- a/web/app/components/preloader/preloader.jsx +++ b/web/app/components/preloader/preloader.jsx @@ -1,7 +1,7 @@ import { h, Component } from 'preact'; export default class Preloader extends Component { - render(props, state) { + render(props) { return (
diff --git a/web/app/counter.js b/web/app/counter.js index 3d0dd7df..c3bd53c5 100644 --- a/web/app/counter.js +++ b/web/app/counter.js @@ -1,3 +1,4 @@ +/* eslint-disable no-console */ import { COUNTER_NODE_CLASSNAME } from './common/constants'; import api from 'common/api'; diff --git a/web/app/embed.js b/web/app/embed.js index 6e82f4a7..3db9101d 100644 --- a/web/app/embed.js +++ b/web/app/embed.js @@ -1,3 +1,4 @@ +/* eslint-disable no-console */ import { BASE_URL, NODE_ID, COMMENT_NODE_CLASSNAME_PREFIX } from 'common/constants'; if (document.readyState === 'loading') { diff --git a/web/app/last-comments.js b/web/app/last-comments.js index ddf31a89..5ec8bb51 100644 --- a/web/app/last-comments.js +++ b/web/app/last-comments.js @@ -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'; diff --git a/web/app/remark.js b/web/app/remark.js index 530d9c98..0a8de9b0 100644 --- a/web/app/remark.js +++ b/web/app/remark.js @@ -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'; diff --git a/web/package.json b/web/package.json index c807f8a3..d761d2eb 100644 --- a/web/package.json +++ b/web/package.json @@ -42,6 +42,7 @@ "preact": "^8.2.7", "promise-polyfill": "^7.0.0" }, + "eslintIgnore": ["public"], "jest": { "transform": { "^.+\\.jsx?$": "/fileTransformer.js" diff --git a/web/webpack.config.js b/web/webpack.config.js index 631c419d..5b349e88 100644 --- a/web/webpack.config.js +++ b/web/webpack.config.js @@ -1,3 +1,4 @@ +/* eslint-disable no-console */ const path = require('path'); const webpack = require('webpack');