GeezerVison is showing github.com — tools: simplify regex in ESLint config · nodejs/node@172cbfe
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: .eslintrc.js +1-2Lines changed: 1 addition & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -126,8 +126,7 @@ module.exports = { |
126 | 126 | line: { |
127 | 127 | // Ignore all lines that have less characters than 20 and all lines that |
128 | 128 | // 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', |
131 | 130 | ignoreInlineComments: true, |
132 | 131 | ignoreConsecutiveComments: true, |
133 | 132 | }, |
|
Collapse file
Copy file name to clipboardExpand all lines: test/parallel/test-fs-readv-promises.js -2Lines changed: 0 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -29,7 +29,6 @@ const allocateEmptyBuffers = (combinedLength) => { |
29 | 29 | const filename = getFileName(); |
30 | 30 | await fs.writeFile(filename, exptectedBuff); |
31 | 31 | const handle = await fs.open(filename, 'r'); |
32 | | - // const buffer = Buffer.from(expected); |
33 | 32 | const bufferArr = allocateEmptyBuffers(exptectedBuff.length); |
34 | 33 | const expectedLength = exptectedBuff.length; |
35 | 34 |
|
@@ -49,7 +48,6 @@ const allocateEmptyBuffers = (combinedLength) => { |
49 | 48 | const filename = getFileName(); |
50 | 49 | await fs.writeFile(filename, exptectedBuff); |
51 | 50 | const handle = await fs.open(filename, 'r'); |
52 | | - // const buffer = Buffer.from(expected); |
53 | 51 | const bufferArr = allocateEmptyBuffers(exptectedBuff.length); |
54 | 52 | const expectedLength = exptectedBuff.length; |
55 | 53 |
|
|