mirror of https://github.com/nodejs/node.git
tools: simplify regex in ESLint config
PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
parent
917987cc58
commit
16a25afebb
|
@ -126,8 +126,7 @@ module.exports = {
|
|||
line: {
|
||||
// Ignore all lines that have less characters than 20 and all lines that
|
||||
// start with something that looks like a variable name or code.
|
||||
// eslint-disable-next-line max-len
|
||||
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].* ',
|
||||
ignorePattern: '.{0,20}$|[a-z]+ ?[0-9A-Z_.(/=:[#-]|std|http|ssh|ftp',
|
||||
ignoreInlineComments: true,
|
||||
ignoreConsecutiveComments: true,
|
||||
},
|
||||
|
|
|
@ -29,7 +29,6 @@ const allocateEmptyBuffers = (combinedLength) => {
|
|||
const filename = getFileName();
|
||||
await fs.writeFile(filename, exptectedBuff);
|
||||
const handle = await fs.open(filename, 'r');
|
||||
// const buffer = Buffer.from(expected);
|
||||
const bufferArr = allocateEmptyBuffers(exptectedBuff.length);
|
||||
const expectedLength = exptectedBuff.length;
|
||||
|
||||
|
@ -49,7 +48,6 @@ const allocateEmptyBuffers = (combinedLength) => {
|
|||
const filename = getFileName();
|
||||
await fs.writeFile(filename, exptectedBuff);
|
||||
const handle = await fs.open(filename, 'r');
|
||||
// const buffer = Buffer.from(expected);
|
||||
const bufferArr = allocateEmptyBuffers(exptectedBuff.length);
|
||||
const expectedLength = exptectedBuff.length;
|
||||
|
||||
|
|
Loading…
Reference in New Issue