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');