Skip to content

Commit a30bf55

Browse files
TrottMylesBorins
authored andcommitted
lib: use focused ESLint disabling in util.js
Instead of disabling all ESLint rules for two lines that require a violation of no-control-regex, disable only the no-control-regex rule. PR-URL: #21041 Reviewed-By: Gus Caplan <[email protected]> Reviewed-By: Vse Mozhet Byt <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Weijia Wang <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 261ef1d commit a30bf55

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎lib/util.js‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,11 @@ const errorToString = Error.prototype.toString;
8787
letCIRCULAR_ERROR_MESSAGE;
8888
letinternalDeepEqual;
8989

90-
/* eslint-disable */
90+
/* eslint-disable no-control-regex */
9191
conststrEscapeSequencesRegExp=/[\x00-\x1f\x27\x5c]/;
9292
conststrEscapeSequencesReplacer=/[\x00-\x1f\x27\x5c]/g;
93-
/* eslint-enable */
93+
/* eslint-enable no-control-regex */
94+
9495
constkeyStrRegExp=/^[a-zA-Z_][a-zA-Z_0-9]*$/;
9596
constnumberRegExp=/^(0|[1-9][0-9]*)$/;
9697

0 commit comments

Comments
(0)