Bug 1593921 - Use eslint-disable-next-line to disable complexity checks in DevTools r=pbro
Using next-line is less error prone for refactorings than wrapping methods with enable/disable blocks. Differential Revision: https://phabricator.services.mozilla.com/D51782
This commit is contained in:
@@ -298,7 +298,7 @@ define(function(require, exports, module) {
|
||||
|
||||
// Event Handlers
|
||||
|
||||
/* eslint-disable complexity */
|
||||
// eslint-disable-next-line complexity
|
||||
onKeyDown(event) {
|
||||
if (!SUPPORTED_KEYS.includes(event.key)) {
|
||||
return;
|
||||
@@ -384,7 +384,6 @@ define(function(require, exports, module) {
|
||||
this.treeRef.current.focus();
|
||||
event.preventDefault();
|
||||
}
|
||||
/* eslint-enable complexity */
|
||||
|
||||
onClickRow(nodePath, event) {
|
||||
const onClickRow = this.props.onClickRow;
|
||||
|
||||
Reference in New Issue
Block a user