Skip to content

Commit 172cbfe

Browse files
Trottdanielleadams
authored andcommitted
tools: simplify regex in ESLint config
PR-URL: #45399 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 456f048 commit 172cbfe

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

.eslintrc.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,7 @@ module.exports = {
126126
line: {
127127
// Ignore all lines that have less characters than 20 and all lines that
128128
// start with something that looks like a variable name or code.
129-
// eslint-disable-next-line max-len
130-
ignorePattern: '.{0,20}$|[a-z]+ ?[0-9A-Z_.(/=:[#-]|std|http|ssh|ftp|(let|var|const) [a-z_A-Z0-9]+ =|[b-z] |[a-z]*[0-9].* ',
129+
ignorePattern: '.{0,20}$|[a-z]+ ?[0-9A-Z_.(/=:[#-]|std|http|ssh|ftp',
131130
ignoreInlineComments: true,
132131
ignoreConsecutiveComments: true,
133132
},

test/parallel/test-fs-readv-promises.js

-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ const allocateEmptyBuffers = (combinedLength) => {
2929
const filename = getFileName();
3030
await fs.writeFile(filename, exptectedBuff);
3131
const handle = await fs.open(filename, 'r');
32-
// const buffer = Buffer.from(expected);
3332
const bufferArr = allocateEmptyBuffers(exptectedBuff.length);
3433
const expectedLength = exptectedBuff.length;
3534

@@ -49,7 +48,6 @@ const allocateEmptyBuffers = (combinedLength) => {
4948
const filename = getFileName();
5049
await fs.writeFile(filename, exptectedBuff);
5150
const handle = await fs.open(filename, 'r');
52-
// const buffer = Buffer.from(expected);
5351
const bufferArr = allocateEmptyBuffers(exptectedBuff.length);
5452
const expectedLength = exptectedBuff.length;
5553

0 commit comments

Comments
 (0)