Skip to content

Commit 870044f

Browse files
authored
tools: increase maximum line length to 120 characters
PR-URL: #41586 Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Mestery <[email protected]> Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Beth Griggs <[email protected]> Reviewed-By: Tierney Cyren <[email protected]>
1 parent 74867f7 commit 870044f

6 files changed

+3
-11
lines changed

.eslintrc.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ module.exports = {
163163
'keyword-spacing': 'error',
164164
'linebreak-style': ['error', 'unix'],
165165
'max-len': ['error', {
166-
code: 80,
166+
code: 120,
167167
ignorePattern: '^// Flags:',
168168
ignoreRegExpLiterals: true,
169169
ignoreTemplateLiterals: true,
@@ -186,7 +186,6 @@ module.exports = {
186186
'no-proto': 'error',
187187
'no-redeclare': ['error', { 'builtinGlobals': false }],
188188
'no-restricted-modules': ['error', 'sys'],
189-
/* eslint-disable max-len */
190189
'no-restricted-properties': [
191190
'error',
192191
{
@@ -239,7 +238,6 @@ module.exports = {
239238
message: 'Use Number.isNaN() instead of the global isNaN() function.',
240239
},
241240
],
242-
/* eslint-enable max-len */
243241
'no-return-await': 'error',
244242
'no-self-compare': 'error',
245243
'no-tabs': 'error',

test/es-module/test-esm-import-assertion-2.mjs

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
import '../common/index.mjs';
33
import { strictEqual } from 'assert';
44

5-
// eslint-disable-next-line max-len
65
import secret from '../fixtures/experimental.json' assert { type: 'json', unsupportedAssertion: 'should ignore' };
76

87
strictEqual(secret.ofLife, 42);

test/parallel/test-http2-binding.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ const expectedHeaderNames = {
107107
HTTP2_HEADER_ACCEPT_LANGUAGE: 'accept-language',
108108
HTTP2_HEADER_ACCEPT_RANGES: 'accept-ranges',
109109
HTTP2_HEADER_ACCEPT: 'accept',
110-
HTTP2_HEADER_ACCESS_CONTROL_ALLOW_CREDENTIALS: 'access-control-allow-credentials', // eslint-disable-line max-len
110+
HTTP2_HEADER_ACCESS_CONTROL_ALLOW_CREDENTIALS: 'access-control-allow-credentials',
111111
HTTP2_HEADER_ACCESS_CONTROL_ALLOW_HEADERS: 'access-control-allow-headers',
112112
HTTP2_HEADER_ACCESS_CONTROL_ALLOW_METHODS: 'access-control-allow-methods',
113113
HTTP2_HEADER_ACCESS_CONTROL_ALLOW_ORIGIN: 'access-control-allow-origin',

test/parallel/test-readline-keys.js

-3
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,6 @@ addTest('a\x1baA\x1bA', [
136136
]);
137137

138138
// xterm/gnome ESC [ letter (with modifiers)
139-
/* eslint-disable max-len */
140139
addTest('\x1b[2P\x1b[3P\x1b[4P\x1b[5P\x1b[6P\x1b[7P\x1b[8P\x1b[3Q\x1b[8Q\x1b[3R\x1b[8R\x1b[3S\x1b[8S', [
141140
{ name: 'f1', sequence: '\x1b[2P', code: '[P', shift: true, meta: false, ctrl: false },
142141
{ name: 'f1', sequence: '\x1b[3P', code: '[P', shift: false, meta: true, ctrl: false },
@@ -152,7 +151,6 @@ addTest('\x1b[2P\x1b[3P\x1b[4P\x1b[5P\x1b[6P\x1b[7P\x1b[8P\x1b[3Q\x1b[8Q\x1b[3R\
152151
{ name: 'f4', sequence: '\x1b[3S', code: '[S', meta: true },
153152
{ name: 'f4', sequence: '\x1b[8S', code: '[S', shift: true, meta: true, ctrl: true },
154153
]);
155-
/* eslint-enable max-len */
156154

157155
// xterm/gnome ESC O letter
158156
addTest('\x1bOP\x1bOQ\x1bOR\x1bOS', [
@@ -250,7 +248,6 @@ addTest('\x1b[A\x1b[B\x1b[2A\x1b[2B', [
250248
]);
251249

252250
// `rxvt` keys with modifiers.
253-
// eslint-disable-next-line max-len
254251
addTest('\x1b[20~\x1b[2$\x1b[2^\x1b[3$\x1b[3^\x1b[5$\x1b[5^\x1b[6$\x1b[6^\x1b[7$\x1b[7^\x1b[8$\x1b[8^', [
255252
{ name: 'f9', sequence: '\x1b[20~', code: '[20~' },
256253
{ name: 'insert', sequence: '\x1b[2$', code: '[2$', shift: true },

test/parallel/test-url-parse-format.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -844,7 +844,7 @@ const parseTests = {
844844
hostname: 'a.b',
845845
hash: null,
846846
pathname: '/%09bc%0Adr%0Def%20g%22hq%27j%3Ckl%3E',
847-
path: '/%09bc%0Adr%0Def%20g%22hq%27j%3Ckl%3E?mn%5Cop%5Eq=r%6099%7Bst%7Cuv%7Dwz', // eslint-disable-line max-len
847+
path: '/%09bc%0Adr%0Def%20g%22hq%27j%3Ckl%3E?mn%5Cop%5Eq=r%6099%7Bst%7Cuv%7Dwz',
848848
search: '?mn%5Cop%5Eq=r%6099%7Bst%7Cuv%7Dwz',
849849
query: 'mn%5Cop%5Eq=r%6099%7Bst%7Cuv%7Dwz',
850850
href: 'http://a.b/%09bc%0Adr%0Def%20g%22hq%27j%3Ckl%3E?mn%5Cop%5Eq=r%6099%7Bst%7Cuv%7Dwz'

test/parallel/test-util-inspect.js

-2
Original file line numberDiff line numberDiff line change
@@ -2690,7 +2690,6 @@ assert.strictEqual(
26902690

26912691
expected = [
26922692
'[',
2693-
/* eslint-disable max-len */
26942693
' \u001b[33m0\u001b[39m, \u001b[33m1\u001b[39m, \u001b[33m2\u001b[39m, \u001b[33m3\u001b[39m,',
26952694
' \u001b[33m4\u001b[39m, \u001b[33m5\u001b[39m, \u001b[33m6\u001b[39m, \u001b[33m7\u001b[39m,',
26962695
' \u001b[33m8\u001b[39m, \u001b[33m9\u001b[39m, \u001b[33m10\u001b[39m, \u001b[33m11\u001b[39m,',
@@ -2706,7 +2705,6 @@ assert.strictEqual(
27062705
' \u001b[33m48\u001b[39m, \u001b[33m49\u001b[39m, \u001b[33m50\u001b[39m, \u001b[33m51\u001b[39m,',
27072706
' \u001b[33m52\u001b[39m, \u001b[33m53\u001b[39m, \u001b[33m54\u001b[39m, \u001b[33m55\u001b[39m,',
27082707
' \u001b[33m56\u001b[39m, \u001b[33m57\u001b[39m, \u001b[33m58\u001b[39m, \u001b[33m59\u001b[39m',
2709-
/* eslint-enable max-len */
27102708
']',
27112709
].join('\n');
27122710

0 commit comments

Comments
 (0)