From b5724a1984aeb84a3a5bcaa5838de63ab02c9b92 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Mon, 3 May 2021 20:46:14 -0700 Subject: [PATCH] debugger: disable only the lint rules required by current file state PR-URL: https://github.com/nodejs/node/pull/38529 Backport-PR-URL: https://github.com/nodejs/node/pull/39446 Reviewed-By: Antoine du Hamel Reviewed-By: Colin Ihrig Reviewed-By: James M Snell --- lib/internal/inspector/inspect_repl.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/lib/internal/inspector/inspect_repl.js b/lib/internal/inspector/inspect_repl.js index 335234080a8b94..1b829c99061f45 100644 --- a/lib/internal/inspector/inspect_repl.js +++ b/lib/internal/inspector/inspect_repl.js @@ -1,5 +1,6 @@ // TODO(trott): enable ESLint -/* eslint-disable */ +/* eslint-disable getter-return, no-restricted-syntax, + node-core/prefer-primordials */ 'use strict'; const FS = require('fs'); @@ -353,10 +354,8 @@ function createRepl(inspector) { [util.inspect.custom](depth, { stylize }) { const { startTime, endTime } = this.data; - return stylize( - `[Profile ${endTime - startTime}${String.fromCharCode(956)}s]`, - 'special' - ); + const MU = String.fromChar(956); + return stylize(`[Profile ${endTime - startTime}${MU}s]`, 'special'); } save(filename = 'node.cpuprofile') {