| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent debc0ad commit 05614f8
67 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,13 +2,6 @@ env: | |||
| 2 | 2 | es6: true | |
| 3 | 3 | ||
| 4 | 4 | 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 | - }] | ||
| 12 | 5 | prefer-object-spread: error | |
| 13 | 6 | no-buffer-constructor: error | |
| 14 | 7 | no-mixed-operators: | |
@@ -261,30 +254,3 @@ globals: | |||
| 261 | 254 | module: false | |
| 262 | 255 | internalBinding: false | |
| 263 | 256 | primordials: false | |
| 264 | - overrides: | ||
| 265 | - - files: | ||
| 266 | - - ./*/*.js | ||
| 267 | - - ./*.js | ||
| 268 | - - ./internal/child_process/*.js | ||
| 269 | - - ./internal/cluster/*.js | ||
| 270 | - - ./internal/debugger/*.js | ||
| 271 | - - ./internal/events/*.js | ||
| 272 | - - ./internal/fs/*.js | ||
| 273 | - - ./internal/modules/*.js | ||
| 274 | - - ./internal/per_context/*.js | ||
| 275 | - - ./internal/perf/*.js | ||
| 276 | - - ./internal/policy/*.js | ||
| 277 | - - ./internal/process/*.js | ||
| 278 | - - ./internal/readline/*.js | ||
| 279 | - - ./internal/readme.md | ||
| 280 | - - ./internal/repl/*.js | ||
| 281 | - - ./internal/source_map/*.js | ||
| 282 | - - ./internal/streams/*.js | ||
| 283 | - - ./internal/test/*.js | ||
| 284 | - - ./internal/test_runner/**/*.js | ||
| 285 | - - ./internal/tls/*.js | ||
| 286 | - - ./internal/util/parse_args/*.js | ||
| 287 | - - ./internal/watch_mode/*.js | ||
| 288 | - - ./internal/webstreams/*.js | ||
| 289 | - rules: | ||
| 290 | - comma-dangle: [error, always-multiline] | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -38,7 +38,7 @@ const kReadableOperator = { | |||
| 38 | 38 | 'Expected "actual" not to be reference-equal to "expected":', | |
| 39 | 39 | notDeepEqual: 'Expected "actual" not to be loosely deep-equal to:', | |
| 40 | 40 | notIdentical: 'Values have same structure but are not reference-equal:', | |
| 41 | - notDeepEqualUnequal: 'Expected values not to be loosely deep-equal:' | ||
| 41 | + notDeepEqualUnequal: 'Expected values not to be loosely deep-equal:', | ||
| 42 | 42 | }; | |
| 43 | 43 | ||
| 44 | 44 | // Comparing short primitives should just show === / !== instead of using the | |
@@ -330,11 +330,11 @@ class AssertionError extends Error { | |||
| 330 | 330 | stackStartFn, | |
| 331 | 331 | details, | |
| 332 | 332 | // Compatibility with older versions. | |
| 333 | - stackStartFunction | ||
| 333 | + stackStartFunction, | ||
| 334 | 334 | } = options; | |
| 335 | 335 | let { | |
| 336 | 336 | actual, | |
| 337 | - expected | ||
| 337 | + expected, | ||
| 338 | 338 | } = options; | |
| 339 | 339 | ||
| 340 | 340 | const limit = Error.stackTraceLimit; | |
@@ -429,7 +429,7 @@ class AssertionError extends Error { | |||
| 429 | 429 | value: 'AssertionError [ERR_ASSERTION]', | |
| 430 | 430 | enumerable: false, | |
| 431 | 431 | writable: true, | |
| 432 | - configurable: true | ||
| 432 | + configurable: true, | ||
| 433 | 433 | }); | |
| 434 | 434 | this.code = 'ERR_ASSERTION'; | |
| 435 | 435 | if (details) { | |
@@ -478,7 +478,7 @@ class AssertionError extends Error { | |||
| 478 | 478 | const result = inspect(this, { | |
| 479 | 479 | ...ctx, | |
| 480 | 480 | customInspect: false, | |
| 481 | - depth: 0 | ||
| 481 | + depth: 0, | ||
| 482 | 482 | }); | |
| 483 | 483 | ||
| 484 | 484 | // Reset the properties after inspection. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -63,7 +63,7 @@ class CallTrackerContext { | |||
| 63 | 63 | actual: this.#calls.length, | |
| 64 | 64 | expected: this.#expected, | |
| 65 | 65 | operator: this.#name, | |
| 66 | - stack: this.#stackTrace | ||
| 66 | + stack: this.#stackTrace, | ||
| 67 | 67 | }; | |
| 68 | 68 | } | |
| 69 | 69 | } | |
@@ -110,7 +110,7 @@ class CallTracker { | |||
| 110 | 110 | expected, | |
| 111 | 111 | // eslint-disable-next-line no-restricted-syntax | |
| 112 | 112 | stackTrace: new Error(), | |
| 113 | - name: fn.name || 'calls' | ||
| 113 | + name: fn.name || 'calls', | ||
| 114 | 114 | }); | |
| 115 | 115 | const tracked = new Proxy(fn, { | |
| 116 | 116 | __proto__: null, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -94,7 +94,7 @@ function exposeNamespace(target, name, namespaceObject) { | |||
| 94 | 94 | writable: true, | |
| 95 | 95 | enumerable: false, | |
| 96 | 96 | configurable: true, | |
| 97 | - value: namespaceObject | ||
| 97 | + value: namespaceObject, | ||
| 98 | 98 | }); | |
| 99 | 99 | } | |
| 100 | 100 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -68,7 +68,7 @@ ObjectDefineProperty(process, 'moduleLoadList', { | |||
| 68 | 68 | value: moduleLoadList, | |
| 69 | 69 | configurable: true, | |
| 70 | 70 | enumerable: true, | |
| 71 | - writable: false | ||
| 71 | + writable: false, | ||
| 72 | 72 | }); | |
| 73 | 73 | ||
| 74 | 74 | ||
@@ -181,7 +181,7 @@ let internalBinding; | |||
| 181 | 181 | const loaderId = 'internal/bootstrap/loaders'; | |
| 182 | 182 | const { | |
| 183 | 183 | builtinIds, | |
| 184 | - compileFunction | ||
| 184 | + compileFunction, | ||
| 185 | 185 | } = internalBinding('builtins'); | |
| 186 | 186 | ||
| 187 | 187 | const getOwn = (target, property, receiver) => { | |
@@ -349,7 +349,7 @@ class BuiltinModule { | |||
| 349 | 349 | const loaderExports = { | |
| 350 | 350 | internalBinding, | |
| 351 | 351 | BuiltinModule, | |
| 352 | - require: requireBuiltin | ||
| 352 | + require: requireBuiltin, | ||
| 353 | 353 | }; | |
| 354 | 354 | ||
| 355 | 355 | function requireBuiltin(id) { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -197,7 +197,7 @@ internalBinding('async_wrap').setupHooks(nativeHooks); | |||
| 197 | 197 | ||
| 198 | 198 | const { | |
| 199 | 199 | setupTaskQueue, | |
| 200 | - queueMicrotask | ||
| 200 | + queueMicrotask, | ||
| 201 | 201 | } = require('internal/process/task_queues'); | |
| 202 | 202 | ||
| 203 | 203 | // Non-standard extensions: | |
@@ -236,11 +236,11 @@ ObjectDefineProperty(process, 'allowedNodeEnvironmentFlags', { | |||
| 236 | 236 | value, | |
| 237 | 237 | configurable: true, | |
| 238 | 238 | enumerable: true, | |
| 239 | - writable: true | ||
| 239 | + writable: true, | ||
| 240 | 240 | }); | |
| 241 | 241 | }, | |
| 242 | 242 | enumerable: true, | |
| 243 | - configurable: true | ||
| 243 | + configurable: true, | ||
| 244 | 244 | }); | |
| 245 | 245 | ||
| 246 | 246 | // process.assert | |
@@ -265,22 +265,22 @@ const features = { | |||
| 265 | 265 | // code cache even if the binary is built with embedded code cache. | |
| 266 | 266 | get cached_builtins() { | |
| 267 | 267 | return binding.hasCachedBuiltins(); | |
| 268 | - } | ||
| 268 | + }, | ||
| 269 | 269 | }; | |
| 270 | 270 | ||
| 271 | 271 | ObjectDefineProperty(process, 'features', { | |
| 272 | 272 | __proto__: null, | |
| 273 | 273 | enumerable: true, | |
| 274 | 274 | writable: false, | |
| 275 | 275 | configurable: false, | |
| 276 | - value: features | ||
| 276 | + value: features, | ||
| 277 | 277 | }); | |
| 278 | 278 | ||
| 279 | 279 | { | |
| 280 | 280 | const { | |
| 281 | 281 | onGlobalUncaughtException, | |
| 282 | 282 | setUncaughtExceptionCaptureCallback, | |
| 283 | - hasUncaughtExceptionCaptureCallback | ||
| 283 | + hasUncaughtExceptionCaptureCallback, | ||
| 284 | 284 | } = require('internal/process/execution'); | |
| 285 | 285 | ||
| 286 | 286 | // For legacy reasons this is still called `_fatalException`, even | |
@@ -327,14 +327,14 @@ process.emitWarning = emitWarning; | |||
| 327 | 327 | function setupPrepareStackTrace() { | |
| 328 | 328 | const { | |
| 329 | 329 | setEnhanceStackForFatalException, | |
| 330 | - setPrepareStackTraceCallback | ||
| 330 | + setPrepareStackTraceCallback, | ||
| 331 | 331 | } = internalBinding('errors'); | |
| 332 | 332 | const { | |
| 333 | 333 | prepareStackTrace, | |
| 334 | 334 | fatalExceptionStackEnhancers: { | |
| 335 | 335 | beforeInspector, | |
| 336 | - afterInspector | ||
| 337 | - } | ||
| 336 | + afterInspector, | ||
| 337 | + }, | ||
| 338 | 338 | } = require('internal/errors'); | |
| 339 | 339 | // Tell our PrepareStackTraceCallback passed to the V8 API | |
| 340 | 340 | // to call prepareStackTrace(). | |
@@ -353,7 +353,7 @@ function setupProcessObject() { | |||
| 353 | 353 | enumerable: false, | |
| 354 | 354 | writable: true, | |
| 355 | 355 | configurable: false, | |
| 356 | - value: 'process' | ||
| 356 | + value: 'process', | ||
| 357 | 357 | }); | |
| 358 | 358 | ||
| 359 | 359 | // Create global.process as getters so that we have a | |
@@ -379,7 +379,7 @@ function setupGlobalProxy() { | |||
| 379 | 379 | value: 'global', | |
| 380 | 380 | writable: false, | |
| 381 | 381 | enumerable: false, | |
| 382 | - configurable: true | ||
| 382 | + configurable: true, | ||
| 383 | 383 | }); | |
| 384 | 384 | globalThis.global = globalThis; | |
| 385 | 385 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -23,7 +23,7 @@ if (credentials.implementsPosixCredentials) { | |||
| 23 | 23 | // ---- compare the setups side-by-side ----- | |
| 24 | 24 | ||
| 25 | 25 | const { | |
| 26 | - codes: { ERR_WORKER_UNSUPPORTED_OPERATION } | ||
| 26 | + codes: { ERR_WORKER_UNSUPPORTED_OPERATION }, | ||
| 27 | 27 | } = require('internal/errors'); | |
| 28 | 28 | ||
| 29 | 29 | function wrappedUmask(mask) { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -25,18 +25,18 @@ if (credentials.implementsPosixCredentials) { | |||
| 25 | 25 | const { | |
| 26 | 26 | parseFileMode, | |
| 27 | 27 | validateArray, | |
| 28 | - validateString | ||
| 28 | + validateString, | ||
| 29 | 29 | } = require('internal/validators'); | |
| 30 | 30 | ||
| 31 | 31 | function wrapPosixCredentialSetters(credentials) { | |
| 32 | 32 | const { | |
| 33 | 33 | codes: { | |
| 34 | 34 | ERR_INVALID_ARG_TYPE, | |
| 35 | - ERR_UNKNOWN_CREDENTIAL | ||
| 36 | - } | ||
| 35 | + ERR_UNKNOWN_CREDENTIAL, | ||
| 36 | + }, | ||
| 37 | 37 | } = require('internal/errors'); | |
| 38 | 38 | const { | |
| 39 | - validateUint32 | ||
| 39 | + validateUint32, | ||
| 40 | 40 | } = require('internal/validators'); | |
| 41 | 41 | ||
| 42 | 42 | const { | |
@@ -45,7 +45,7 @@ function wrapPosixCredentialSetters(credentials) { | |||
| 45 | 45 | setegid: _setegid, | |
| 46 | 46 | seteuid: _seteuid, | |
| 47 | 47 | setgid: _setgid, | |
| 48 | - setuid: _setuid | ||
| 48 | + setuid: _setuid, | ||
| 49 | 49 | } = credentials; | |
| 50 | 50 | ||
| 51 | 51 | function initgroups(user, extraGroup) { | |
@@ -99,7 +99,7 @@ function wrapPosixCredentialSetters(credentials) { | |||
| 99 | 99 | setegid: wrapIdSetter('Group', _setegid), | |
| 100 | 100 | seteuid: wrapIdSetter('User', _seteuid), | |
| 101 | 101 | setgid: wrapIdSetter('Group', _setgid), | |
| 102 | - setuid: wrapIdSetter('User', _setuid) | ||
| 102 | + setuid: wrapIdSetter('User', _setuid), | ||
| 103 | 103 | }; | |
| 104 | 104 | } | |
| 105 | 105 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -5,7 +5,7 @@ const rawMethods = internalBinding('process_methods'); | |||
| 5 | 5 | const { | |
| 6 | 6 | namespace: { | |
| 7 | 7 | addSerializeCallback, | |
| 8 | - isBuildingSnapshot | ||
| 8 | + isBuildingSnapshot, | ||
| 9 | 9 | }, | |
| 10 | 10 | } = require('internal/v8/startup_snapshot'); | |
| 11 | 11 | // TODO(joyeecheung): deprecate and remove these underscore methods | |
@@ -23,7 +23,7 @@ function defineStream(name, getter) { | |||
| 23 | 23 | __proto__: null, | |
| 24 | 24 | configurable: true, | |
| 25 | 25 | enumerable: true, | |
| 26 | - get: getter | ||
| 26 | + get: getter, | ||
| 27 | 27 | }); | |
| 28 | 28 | } | |
| 29 | 29 | ||
@@ -34,7 +34,7 @@ defineStream('stderr', getStderr); | |||
| 34 | 34 | // Worker threads don't receive signals. | |
| 35 | 35 | const { | |
| 36 | 36 | startListeningIfSignal, | |
| 37 | - stopListeningIfSignal | ||
| 37 | + stopListeningIfSignal, | ||
| 38 | 38 | } = require('internal/process/signal'); | |
| 39 | 39 | process.on('newListener', startListeningIfSignal); | |
| 40 | 40 | process.on('removeListener', stopListeningIfSignal); | |
@@ -74,13 +74,13 @@ function createWritableStdioStream(fd) { | |||
| 74 | 74 | stream = new net.Socket({ | |
| 75 | 75 | handle: process[kChannelHandle], | |
| 76 | 76 | readable: false, | |
| 77 | - writable: true | ||
| 77 | + writable: true, | ||
| 78 | 78 | }); | |
| 79 | 79 | } else { | |
| 80 | 80 | stream = new net.Socket({ | |
| 81 | 81 | fd, | |
| 82 | 82 | readable: false, | |
| 83 | - writable: true | ||
| 83 | + writable: true, | ||
| 84 | 84 | }); | |
| 85 | 85 | } | |
| 86 | 86 | ||
@@ -95,7 +95,7 @@ function createWritableStdioStream(fd) { | |||
| 95 | 95 | stream = new Writable({ | |
| 96 | 96 | write(buf, enc, cb) { | |
| 97 | 97 | cb(); | |
| 98 | - } | ||
| 98 | + }, | ||
| 99 | 99 | }); | |
| 100 | 100 | } | |
| 101 | 101 | } | |
@@ -218,14 +218,14 @@ function getStdin() { | |||
| 218 | 218 | handle: process.channel, | |
| 219 | 219 | readable: true, | |
| 220 | 220 | writable: false, | |
| 221 | - manualStart: true | ||
| 221 | + manualStart: true, | ||
| 222 | 222 | }); | |
| 223 | 223 | } else { | |
| 224 | 224 | stdin = new net.Socket({ | |
| 225 | 225 | fd: fd, | |
| 226 | 226 | readable: true, | |
| 227 | 227 | writable: false, | |
| 228 | - manualStart: true | ||
| 228 | + manualStart: true, | ||
| 229 | 229 | }); | |
| 230 | 230 | } | |
| 231 | 231 | // Make sure the stdin can't be `.end()`-ed | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -10,7 +10,7 @@ function defineStream(name, getter) { | |||
| 10 | 10 | __proto__: null, | |
| 11 | 11 | configurable: true, | |
| 12 | 12 | enumerable: true, | |
| 13 | - get: getter | ||
| 13 | + get: getter, | ||
| 14 | 14 | }); | |
| 15 | 15 | } | |
| 16 | 16 | ||
@@ -21,7 +21,7 @@ defineStream('stderr', getStderr); | |||
| 21 | 21 | // Worker threads don't receive signals. | |
| 22 | 22 | const { | |
| 23 | 23 | startListeningIfSignal, | |
| 24 | - stopListeningIfSignal | ||
| 24 | + stopListeningIfSignal, | ||
| 25 | 25 | } = require('internal/process/signal'); | |
| 26 | 26 | process.removeListener('newListener', startListeningIfSignal); | |
| 27 | 27 | process.removeListener('removeListener', stopListeningIfSignal); | |
@@ -30,7 +30,7 @@ process.removeListener('removeListener', stopListeningIfSignal); | |||
| 30 | 30 | // ---- compare the setups side-by-side ----- | |
| 31 | 31 | ||
| 32 | 32 | const { | |
| 33 | - createWorkerStdio | ||
| 33 | + createWorkerStdio, | ||
| 34 | 34 | } = require('internal/worker/io'); | |
| 35 | 35 | ||
| 36 | 36 | let workerStdio; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments