Skip to content

Commit

Permalink
debugger: disable only the lint rules required by current file state
Browse files Browse the repository at this point in the history
PR-URL: #38529
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
Trott authored and targos committed May 17, 2021
1 parent e79f540 commit 11dd9a6
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions lib/internal/inspector/inspect_repl.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
*/

// TODO(trott): enable ESLint
/* eslint-disable */
/* eslint-disable getter-return, no-restricted-syntax,
node-core/prefer-primordials */

'use strict';
const FS = require('fs');
Expand Down Expand Up @@ -375,10 +376,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') {
Expand Down

0 comments on commit 11dd9a6

Please sign in to comment.