Skip to content

Commit c463f13

Browse files
aduh95danielleadams
authored andcommittedApr 11, 2023
lib: enforce use of trailing commas
PR-URL: #46881 Reviewed-By: Debadree Chatterjee <[email protected]> Reviewed-By: Moshe Atlow <[email protected]> Reviewed-By: Mohammed Keyvanzadeh <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Jacob Smith <[email protected]>
1 parent 413493c commit c463f13

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+367
-295
lines changed
 

‎lib/.eslintrc.yaml

-34
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,6 @@ env:
22
es6: true
33

44
rules:
5-
comma-dangle: [error, {
6-
arrays: always-multiline,
7-
exports: always-multiline,
8-
functions: always-multiline,
9-
imports: always-multiline,
10-
objects: only-multiline,
11-
}]
125
prefer-object-spread: error
136
no-buffer-constructor: error
147
no-mixed-operators:
@@ -249,30 +242,3 @@ globals:
249242
module: false
250243
internalBinding: false
251244
primordials: false
252-
overrides:
253-
- files:
254-
- ./*/*.js
255-
- ./*.js
256-
- ./internal/child_process/*.js
257-
- ./internal/cluster/*.js
258-
- ./internal/debugger/*.js
259-
- ./internal/events/*.js
260-
- ./internal/fs/*.js
261-
- ./internal/modules/*.js
262-
- ./internal/per_context/*.js
263-
- ./internal/perf/*.js
264-
- ./internal/policy/*.js
265-
- ./internal/process/*.js
266-
- ./internal/readline/*.js
267-
- ./internal/readme.md
268-
- ./internal/repl/*.js
269-
- ./internal/source_map/*.js
270-
- ./internal/streams/*.js
271-
- ./internal/test/*.js
272-
- ./internal/test_runner/**/*.js
273-
- ./internal/tls/*.js
274-
- ./internal/util/parse_args/*.js
275-
- ./internal/watch_mode/*.js
276-
- ./internal/webstreams/*.js
277-
rules:
278-
comma-dangle: [error, always-multiline]

‎lib/internal/assert/assertion_error.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const kReadableOperator = {
3939
'Expected "actual" not to be reference-equal to "expected":',
4040
notDeepEqual: 'Expected "actual" not to be loosely deep-equal to:',
4141
notIdentical: 'Values have same structure but are not reference-equal:',
42-
notDeepEqualUnequal: 'Expected values not to be loosely deep-equal:'
42+
notDeepEqualUnequal: 'Expected values not to be loosely deep-equal:',
4343
};
4444

4545
// Comparing short primitives should just show === / !== instead of using the
@@ -331,11 +331,11 @@ class AssertionError extends Error {
331331
stackStartFn,
332332
details,
333333
// Compatibility with older versions.
334-
stackStartFunction
334+
stackStartFunction,
335335
} = options;
336336
let {
337337
actual,
338-
expected
338+
expected,
339339
} = options;
340340

341341
const limit = Error.stackTraceLimit;
@@ -430,7 +430,7 @@ class AssertionError extends Error {
430430
value: 'AssertionError [ERR_ASSERTION]',
431431
enumerable: false,
432432
writable: true,
433-
configurable: true
433+
configurable: true,
434434
});
435435
this.code = 'ERR_ASSERTION';
436436
if (details) {
@@ -479,7 +479,7 @@ class AssertionError extends Error {
479479
const result = inspect(this, {
480480
...ctx,
481481
customInspect: false,
482-
depth: 0
482+
depth: 0,
483483
});
484484

485485
// Reset the properties after inspection.

0 commit comments

Comments
 (0)
Please sign in to comment.