Skip to content

Commit 11dd9a6

Browse files
Trotttargos
authored andcommitted
debugger: disable only the lint rules required by current file state
PR-URL: #38529 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent e79f540 commit 11dd9a6

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

lib/internal/inspector/inspect_repl.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
*/
2222

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

2627
'use strict';
2728
const FS = require('fs');
@@ -375,10 +376,8 @@ function createRepl(inspector) {
375376

376377
[util.inspect.custom](depth, { stylize }) {
377378
const { startTime, endTime } = this.data;
378-
return stylize(
379-
`[Profile ${endTime - startTime}${String.fromCharCode(956)}s]`,
380-
'special'
381-
);
379+
const MU = String.fromChar(956);
380+
return stylize(`[Profile ${endTime - startTime}${MU}s]`, 'special');
382381
}
383382

384383
save(filename = 'node.cpuprofile') {

0 commit comments

Comments
 (0)