debugger: disable only the lint rules required by current file state

PR-URL: https://github.com/nodejs/node/pull/38529
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
Rich Trott
2021-05-03 20:46:14 -07:00
committed by James M Snell
parent c42849fde4
commit 7eb28e3176

View File

@@ -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');
@@ -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') {