mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
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:
committed by
James M Snell
parent
c42849fde4
commit
7eb28e3176
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user