Add eslint-plugin-eslint-comments

This commit is contained in:
Yuya Ochiai
2019-03-12 23:31:45 +09:00
parent 4725bd9bf9
commit 6d6d586b3b
12 changed files with 47 additions and 4 deletions

View File

@@ -2,6 +2,7 @@
// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
// This files uses setState().
/* eslint-disable react/no-set-state */
import url from 'url';
@@ -459,3 +460,5 @@ MainPage.propTypes = {
requestingPermission: TabBar.propTypes.requestingPermission,
onClickPermissionDialog: PropTypes.func,
};
/* eslint-enable react/no-set-state */

View File

@@ -2,8 +2,8 @@
// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
// This file uses setState().
/* eslint-disable react/no-set-state */
// setState() is necessary for this component
import url from 'url';
@@ -303,3 +303,5 @@ MattermostView.propTypes = {
useSpellChecker: PropTypes.bool,
onSelectSpellCheckerLocale: PropTypes.func,
};
/* eslint-enable react/no-set-state */

View File

@@ -2,6 +2,7 @@
// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
// This file uses setState().
/* eslint-disable react/no-set-state */
import React from 'react';
@@ -628,3 +629,5 @@ SettingsPage.propTypes = {
configFile: PropTypes.string,
enableServerManagement: PropTypes.bool,
};
/* eslint-enable react/no-set-state */

View File

@@ -284,7 +284,7 @@ function handleScreenResize(screen, browserWindow) {
app.on('browser-window-created', (e, newWindow) => {
// Screen cannot be required before app is ready
const {screen} = electron; // eslint-disable-line global-require
const {screen} = electron;
handleScreenResize(screen, newWindow);
});