@falsejs/falsejs 4.1.12 → 4.1.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -3,7 +3,6 @@
3
3
  * Copyright 10x'ly Made and other contributors <https://github.com/10xly>
4
4
  * Released under EGPSL10X-1.0 <https://github.com/10xly/licence>
5
5
  * made with HEAVY BLACK HEART U+2764
6
- * Thanks to Biome for being a good formatter + linter
7
6
  */
8
7
  /**
9
8
  *
@@ -41,80 +40,106 @@
41
40
 
42
41
  --------------------------------------------------------------------------------*/
43
42
 
43
+ /* eslint-disable max-classes-per-file, max-lines */
44
+
44
45
  // BELOW IS A CHECK TO DEFINE FALSE AND TRUE GLOBALLY IF THEY DON'T EXISTING TO PREVENT THE WORLD FROM CRASHING.
45
46
  try {
47
+ // eslint-disable-next-line 10x-engineering/no-valueof, 10x-engineering/no-booleans
46
48
  false.valueOf()
47
49
  } catch {
50
+ // Tricky way to get false
51
+ // eslint-disable-next-line unicorn/prefer-global-this
48
52
  global.false = module.exports.constructor
49
53
  .values(module.exports.constructor())
50
- .includes() // tricky way to get false
54
+ .includes()
51
55
  }
52
56
  try {
57
+ // eslint-disable-next-line 10x-engineering/no-valueof, 10x-engineering/no-booleans
53
58
  true.valueOf()
54
59
  } catch {
60
+ // Tricky way to get true
61
+ // eslint-disable-next-line unicorn/prefer-global-this
55
62
  global.true = module.exports.constructor
56
63
  .values(module.exports.constructor())
57
64
  .constructor.name.includes(
65
+ // eslint-disable-next-line 10x-engineering/no-tostring
58
66
  module.exports.constructor.prototype.toString
59
67
  .call(module.exports.constructor.values(module.exports.constructor()))
60
68
  .split("[object ")
61
69
  .pop()
70
+ // eslint-disable-next-line 10x-engineering/no-valueof, unicorn/prefer-number-properties
62
71
  .split("]")[NaN.constructor.prototype.valueOf()],
63
- ) // tricky way to get true
72
+ )
64
73
  }
65
74
 
66
- const isComputerOnFire = require("is-computer-on-fire").isComputerOnFire // require external is-computer-on-fire package.
75
+ // Require external is-computer-on-fire package.
76
+ const { isComputerOnFire } = require("is-computer-on-fire")
67
77
 
68
78
  if (isComputerOnFire()) {
69
- // check if the computer is on fire
79
+ // Check if the computer is on fire
70
80
  /** An exaggeration of an error that is thrown if the computer is on fire. This NPM package is NOT pointless, and it's NOT a joke. */
71
81
  require("immediate-error")(
72
82
  "OH MY GOSH YOUR COMPUTER IS ON FIRE WHY ARE YOU WASTING TIME USING A JOKE POINTLESS NPM PACKAGE GET YOUR FIRE EXTINGUISHER!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!",
73
83
  )
74
84
  } else {
85
+ /* eslint-disable capitalized-comments, no-inline-comments */
86
+
75
87
  require("none")() // improve load times and performance
76
- require("-") // also improve load times and perormance
88
+
89
+ /* eslint-enable capitalized-comments */
77
90
 
78
91
  /** Whatev is a very useful package, that can be used to get the value of true. */
79
92
  const whatev = require("whatev") // Require whatev.
80
- const equal = require("@10xly/strict-equals") // Require @10xly/strict-equals for equality and stuff.
81
- const whatevTrueValue = equal(
82
- equal(whatev.fn(), whatev.string),
83
- whatev.object.whatev,
84
- ) // get the true value from whatev.
93
+ const equal = require("@10xly/strict-equals"), // Require @10xly/strict-equals for equality and stuff.
94
+ whatevTrueValue = equal(
95
+ equal(whatev.fn(), whatev.string),
96
+ whatev.object.whatev,
97
+ ) // Get the true value from whatev.
85
98
 
86
- require("get-member")() // add Object.prototype.getMember.
99
+ require("get-member")() // Add Object.prototype.getMember.
87
100
  whatev.array.constructor.prototype.getMember =
88
- require("array-get-member").arrayGetMember // add Array.prototype.getMember.
101
+ require("array-get-member").arrayGetMember // Add Array.prototype.getMember.
89
102
 
90
- global.jQuery = require("jquery") // make jquery global
91
- require("jquery-basic-arithmetic-plugin") // add arithmetic to jquery
103
+ // eslint-disable-next-line unicorn/prefer-global-this
104
+ global.jQuery = require("jquery") // Make jQuery global
105
+ require("jquery-basic-arithmetic-plugin") // Add arithmetic to jQuery
92
106
 
93
- require("user")() // something else that improves load times and performance
94
- require("vapor-js-npm") // vapor also makes your program faster
107
+ require("user")() // Smoething else that improves load times and performance
108
+ require("vapor-js-npm") // Vapor also makes your program faster
95
109
 
96
- // replaceAllOf
110
+ /* eslint-enable no-inline-comments */
111
+
112
+ // String.prototype.replaceAllOf
97
113
  require("str-replaceallof-es").shim()
98
- ;(function (factory) {
99
- module.exports.default = factory(jQuery) // run and export falsejs.
100
- })(function ($) {
101
- // biome-ignore lint/suspicious/noRedundantUseStrict: We need double strict mode because we wanna be SUPER strict.
114
+ // eslint-disable-next-line 10x-engineering/no-semicolons
115
+ ;(function exporter(factory) {
116
+ // Run and export FalseJS.
117
+ // eslint-disable-next-line no-undef
118
+ module.exports.default = factory(jQuery)
119
+ // eslint-disable-next-line max-lines-per-function, max-statements, prefer-arrow-callback, id-length
120
+ })(function factory($) {
121
+ // Sometimes strict mode is more professional, which is why we are putting it there.
122
+ // eslint-disable-next-line 10x-engineering/no-strict-mode
102
123
  "use strict"
103
124
 
104
- const jQuery = $ // alias for jquery
125
+ // eslint-disable-next-line unicorn/prevent-abbreviations, capitalized-comments, no-inline-comments
126
+ const jQuery = $ // this should NOT be called indexQuery, prevent-abbreviations!!!!
105
127
 
106
- const variableHolder = require("lodash.stubobject")() // a variable holder
128
+ /* eslint-disable no-inline-comments, capitalized-comments, one-var */
107
129
 
130
+ const variableHolder = require("lodash.stubobject")() // a variable holder
108
131
  const GetIntrinsic = require("get-intrinsic") // cache our intrinsics
109
-
110
132
  const typeOf = require("es-typeof") // import module for type checking
111
133
  const logicalNot = require("es-logical-not-operator") // ! in fp
112
134
  const logicalAnd = require("es-logical-and-operator"), // && in fp
135
+ // eslint-disable-next-line sort-vars
113
136
  and = logicalAnd // alias
114
137
  const logicalOr = require("es-logical-or-operator") // || in fp
115
138
  const identity = require("@identity-js/identity") // identity function
139
+ // eslint-disable-next-line id-length
116
140
  const _ = require("lodash") // every project needs lodash
117
141
  const underscore = require("underscore") // underscore.js. the predecessor of lodash.
142
+ // eslint-disable-next-line id-length
118
143
  const k = require("kitty") // lodash but with some mixins in it
119
144
  const lolite = require("lolite") // the 10x utility package
120
145
  const React = require("react") // the hype framework everyone uses for some reason
@@ -123,8 +148,10 @@ if (isComputerOnFire()) {
123
148
  const { JSDOM } = require("jsdom") // a fake dom
124
149
  const striptags = require("striptags") // strip tags!
125
150
  const chalk = require("chalk4096").default // color is the best! especially when its 10x!
151
+ // eslint-disable-next-line no-var
126
152
  var clc = require("cli-color") // another color module
127
153
  const colors = require("@colors/colors/safe") // colors
154
+ // eslint-disable-next-line id-length
128
155
  const c = require("ansi-colors") // nothing wrong with even more colors
129
156
  const pc = require("picocolors") // maybe even more colors libraries
130
157
  const axios = require("axios") // so we can send requests
@@ -139,7 +166,7 @@ if (isComputerOnFire()) {
139
166
  const noop8 = require("noop8") //another...
140
167
  const noop9 = require("noop9") // the ninth
141
168
  const noop10 = require("noop10") // 10x with noops lezz go
142
- const { noop, doop } = require("yanoop") // yanoop.
169
+ const { doop, noop } = require("yanoop") // yanoop.
143
170
  const asyncUtilNoop = require("async.util.noop") // i think you see where i'm going
144
171
  const blankSpaceFullObject = require("blank-space") // this exports two noops
145
172
  const blankSpaceNoop = blankSpaceFullObject.noop // noop one
@@ -147,6 +174,7 @@ if (isComputerOnFire()) {
147
174
  const noopGenerator = require("co-noop") // a noop generator!
148
175
  const fjNoop = require("fj-noop").FUNC // fj noop
149
176
  const lodashNoop = require("lodash.noop") // lodash noop
177
+ // eslint-disable-next-line camelcase
150
178
  const lodash_Noop = require("lodash._noop") // another lodash noop!
151
179
  const noOp = require("no-op") // noop with a dash
152
180
  const nodeNoop = require("node-noop").noop // a noop
@@ -182,7 +210,7 @@ if (isComputerOnFire()) {
182
210
  const isThousand = require("is-thousand").default
183
211
  const isTenThousand = require("is-ten-thousand") // 100x the is-hundred
184
212
  const isEqTenThousand = require("is-eq-ten-thousand") // is-eq-ten-thousand
185
- const isTwo = require("is-two").isTwo // the successor of one
213
+ const { isTwo } = require("is-two") // the successor of one
186
214
  const isThree = require("is-three") // the successor of two
187
215
  const isNegativeZero = require("is-negative-zero") // isNegativeZero
188
216
  const isNegativeZero2 = require("negative-zero") // can't hurt to have another negative zero checker
@@ -194,8 +222,8 @@ if (isComputerOnFire()) {
194
222
  const isNumber = require("is-number") // jonschlinkert
195
223
  const isActualNumber = require("is-actual-number") // my is-number
196
224
  const {
197
- checkOdd,
198
225
  checkEven,
226
+ checkOdd,
199
227
  } = require("enterprise-number-classification-sdk") // enterprise oddness and evenness checking
200
228
  const isWDS = require("@overkill/is-wds") // check if something's "WDS"
201
229
  const isIsOdd = require("is-is-odd") // isIsOdd
@@ -231,6 +259,7 @@ if (isComputerOnFire()) {
231
259
  const lowercase = require("convert-to-lower-case") // CONVERT TO LOWER CASE
232
260
  const construct = require("construct-new") // better than the new keyword
233
261
 
262
+ /* eslint-disable new-cap */
234
263
  const $Promise = require("is-a-promise") // shim for promise
235
264
  const $Array = GetIntrinsic("%Array%") // arrays
236
265
  const $Boolean = GetIntrinsic("%Boolean%") // things that are true or false
@@ -246,7 +275,9 @@ if (isComputerOnFire()) {
246
275
  const MathSin = GetIntrinsic("%Math.sin%") // SIN
247
276
  const MathCos = GetIntrinsic("%Math.cos%") // COS
248
277
  const StringCharAt = GetIntrinsic("%String.prototype.charAt%") // get chars at and stuff
278
+ /* eslint-enable new-cap */
249
279
 
280
+ // eslint-disable-next-line no-underscore-dangle
250
281
  const _calculateFalseAprilFools = require("./aprilFoolsCalculateFalse") // april fools
251
282
  const couldThisCouldItBeTrue = require("@falsejs/is-true-helper") // check if a value is true
252
283
  const falseValue = require("false-value") // uses quantum physics simulation to return false
@@ -266,7 +297,7 @@ if (isComputerOnFire()) {
266
297
  const isTuesday = require("is-tuesday") // day of the week 2 according to international standard, day of the week 3 according to the us
267
298
  const isWednesday = () =>
268
299
  require("is-wednesday")(construct({ target: $Date })) // day of the week 3 according to the international standard, day of the week 4 according to the us
269
- // now we gotta sing rebecca black's song
300
+ // Now we gotta sing rebecca black's song
270
301
  const isThursday = require("is-thursday") /// Yesterday was thursdayyyy
271
302
  const isFriday = require("is-friday") // tooo-ddadayy is friday! we so ecited
272
303
  const isSaturday = require("is-saturday") // tomorrow will be saturday
@@ -276,6 +307,7 @@ if (isComputerOnFire()) {
276
307
  const {
277
308
  returnZero: returnZero_,
278
309
  ZeroCalculationMethod,
310
+ // eslint-disable-next-line perfectionist/sort-objects
279
311
  isZero: zerosurgeIsZero,
280
312
  } = require("zerosurge") // get the number zero, but 10x'er
281
313
  const returnZero = returnZero_ // type returnZero
@@ -315,6 +347,7 @@ if (isComputerOnFire()) {
315
347
  const tru = require("tru") // if statements arent verbose enough
316
348
  const If = require("if") // always good to have another if statement!
317
349
  const not = require("@not-js/not") // safer negation with not
350
+ // eslint-disable-next-line perfectionist/sort-objects
318
351
  const { functions, _return } = require("returndotjs/safe") // better returning
319
352
  const vretriever = require("vretriever") // a identity function
320
353
  const immo = require("@_immo/return") // also a identity function, but a weird one
@@ -322,9 +355,11 @@ if (isComputerOnFire()) {
322
355
  const isEqual = require("is-equal") // more complex ways too.
323
356
  const strictlyEqual = require("@10xly/strict-equals") // and strict equality.
324
357
  const notStrictlyEqual = not(strictlyEqual)
325
- var trueValue = require("true-value")() // get true with quantum fisics simulation
326
- var tVal = trueValue // tVal sounds cool so i put it here too
327
- var t = require("@substack/is-match")() // returns true.
358
+ const trueValue = require("true-value")() // get true with quantum fisics simulation
359
+ // eslint-disable-next-line unicorn/prevent-abbreviations
360
+ const tVal = trueValue // tVal sounds cool so i put it here too
361
+ // eslint-disable-next-line id-length
362
+ const t = require("@substack/is-match")() // returns true.
328
363
  const { mGenbaneko } = require("genbaneko") // i like cats
329
364
  const leftPad = require("left-pad") //every project needs leftpad.
330
365
  const rightPad = require("right-pad") //to the right, to the right.
@@ -339,13 +374,15 @@ if (isComputerOnFire()) {
339
374
  const isWindows = isWindwos // i totally didnt misspell the above variable and this line doesnt exist
340
375
  const isLinux = require("is-linux") // linux the os
341
376
  const isOSX = require("is-osx") // more like is darwin
377
+ // eslint-disable-next-line no-warning-comments, sonarjs/todo-tag
342
378
  // TODO: Implement is Windows 12
343
- const isFreeBSD = require("is-freebsd").isFreeBSD // i've never even heard of this operating system until now.
379
+ const { isFreeBSD } = require("is-freebsd") // i've never even heard of this operating system until now.
344
380
  const thirteen = require("thirteen") // multiply by thirteen
345
381
  const os = require("node:os") // maybe node js itself can help us calculate more operating systems
346
382
  const crypto = require("node:crypto") // mine me some crypto
347
383
  const fs = require("node:fs") // write our files
348
- const util = require("node:util") // utility functiosn built in to node.js
384
+ // eslint-disable-next-line unicorn/import-style
385
+ const util = require("node:util") // utility functions built in to node.js
349
386
  const { spawn } = require("node:child_process") // spawn child processes
350
387
  const uuid = require("uuid") // generate some uuids
351
388
  const getStringLength = require("utf8-byte-length") // get string length
@@ -361,26 +398,28 @@ if (isComputerOnFire()) {
361
398
  const lodashdotconstant = require("lodash.constant") // lodash's version
362
399
  const WeirdInstanceof = require("weird-instanceof") // drunk programming only
363
400
  const { log: ltc, setLogFuntion } = require("logtoconsole") // best logger
401
+ // eslint-disable-next-line new-cap
364
402
  const weirdLtc = WeirdInstanceof(ltc) // weird
365
403
  const yesNo = require("yes-no") // YES NO YES NO YES NO
366
- // biome-ignore lint: We need to override undefined for the 10x'ness
404
+ // eslint-disable-next-line sonarjs/no-globals-shadowing, no-shadow-restricted-names, no-undefined
367
405
  const { undefined } = require("undefined-is-a-function") // UNDEFINED IS A FUNCTON
368
406
  const isNull = require("@is-(unknown)/is-null") // IS null
369
407
  const isUndefined = require("@is-(unknown)/is-undefined") // IS undefined
370
408
  const isNil = require("@is-(unknown)/is-nil") // IS null OR undefined :O
371
409
  const isUnnull = require("is-unnull") // IS UNNULL
372
- // biome-ignore lint: We need to override isNaN for the 10x'ness
410
+ // eslint-disable-next-line sonarjs/no-globals-shadowing
373
411
  const isNaN = require("is-nan") // IS NAN
374
412
  const isNegativeInfinity = require("negative-infinity").check // IS NEGATIVE INFINITY
375
413
  const is1 = require("is-eq-one") // is 1
376
414
  const is0 = require("is-eq-zero") // is 0
415
+ // eslint-disable-next-line camelcase
377
416
  const is0_2 = require("is-zero") // is 0 (x2)
378
417
  const isFour = require("is-equal-four") // is 4
379
418
  const isFive = require("is-eq-five") // is 5
380
419
  const isSix = require("is-eq-six") // is 6
381
420
  const isSeven = require("is-eq-seven") // is 7
382
421
  const useGarbage = require("garbage") // trash.
383
- const isuseless = require("is-useless").isuseless // super useless
422
+ const { isuseless } = require("is-useless") // super useless
384
423
  const isAprilFools = require("is-april-fools") // Is it april fools
385
424
  const meow = require("meow.js") // library for meowing
386
425
  const { ErrorType: ERROR, immediateError } = require("immediate-error") // throw errors
@@ -391,6 +430,8 @@ if (isComputerOnFire()) {
391
430
  const globalObj = require("@10xly/global") // the global object
392
431
  const stringify = require("json-stringify-safe")
393
432
 
433
+ /* eslint-enable no-inline-comments, capitalized-comments, one-var */
434
+
394
435
  // A useful function to get a DHTML string.
395
436
  function getDHTMLString() {
396
437
  return `netscape_layer_id_${lolite.multiply(
@@ -399,9 +440,13 @@ if (isComputerOnFire()) {
399
440
  )}`
400
441
  }
401
442
 
443
+ /* eslint-disable one-var */
444
+
402
445
  const NumberFormatter = Intl.NumberFormat
403
446
  const numberFormatter = construct({ target: NumberFormatter })
404
447
 
448
+ /* eslint-enable one-var */
449
+
405
450
  if (globalObj.FalseJSTelemetryOptOut) {
406
451
  ltc(chalk.yellow("🛈 FalseJS telemetry opt-out enabled."))
407
452
  } else {
@@ -419,10 +464,12 @@ if (isComputerOnFire()) {
419
464
  })
420
465
  .end()
421
466
 
467
+ // eslint-disable-next-line no-underscore-dangle
422
468
  variableHolder._lilmessage = colors.red(
423
469
  `[falsejs] This error should never be shown. If you are seeing this error in the console, please file an issue on the github repo. Thank you.`,
424
470
  )
425
471
 
472
+ /* eslint-disable no-inline-comments, prefer-template, no-implicit-coercion, 10x-engineering/no-operators, one-var */
426
473
  const blankSpaces = (
427
474
  "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; " + //100 whitespaces
428
475
  "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; " + //200 Whitespaces
@@ -430,9 +477,14 @@ if (isComputerOnFire()) {
430
477
  )
431
478
  //100 whitespaces
432
479
  .replaceAllOf("&nbsp;", require("space-string"))
480
+
481
+ /* eslint-enable no-inline-comments, prefer-template, no-implicit-coercion, 10x-engineering/no-operators */
482
+
433
483
  const STARTING_SUCCESSOR_HELPER_STACK = zr0()
434
484
  const FALSE = lolite.not(whatevTrueValue)
485
+ // eslint-disable-next-line no-underscore-dangle
435
486
  const _f = constant(FALSE)
487
+ // eslint-disable-next-line no-underscore-dangle
436
488
  const ERROR_THAT_WILL_NEVER_BE_SHOWN = variableHolder._lilmessage
437
489
  const TEN_THOUSAND = lolite.multiply(numberOneHundred, numberOneHundred)
438
490
  const LEFT_PAD_INPUT = jQuery.multiply(
@@ -459,16 +511,19 @@ if (isComputerOnFire()) {
459
511
  const ZEROPAD_INPUT = jQuery.subtract(five(), jQuery.divide(five(), five()))
460
512
  const WEST_PAD_DEVICE_DIRECTION = "N"
461
513
  const SPACE = require("space-string")
514
+ // eslint-disable-next-line no-use-before-define
462
515
  const NO = getNo()
463
516
  const YES = "yes"
464
517
  const TODAY = construct({
465
518
  target: $Date,
466
519
  })
467
520
  const Today = TODAY
468
- const USERNAME = (function () {
469
- var username = undefined()
521
+ const USERNAME = (function usernameRetriever() {
522
+ // eslint-disable-next-line no-undefined
523
+ let username = undefined()
470
524
 
471
525
  attempt(() => {
526
+ // eslint-disable-next-line prefer-destructuring
472
527
  username = os.userInfo().username
473
528
  })
474
529
  .rescue(() => {
@@ -483,35 +538,49 @@ if (isComputerOnFire()) {
483
538
  const username = USERNAME
484
539
 
485
540
  // Define compatibility_mode enum.
541
+ /* eslint-disable perfectionist/sort-objects */
486
542
  const COMPATIBILITY_MODE = {
487
543
  NONE: "none",
544
+ // eslint-disable-next-line sort-keys
488
545
  IE5: "ie5",
489
546
  NETSCAPE: "netscape",
490
547
  OPERA_PRESTO: "presto",
491
548
  }
492
549
 
550
+ /* eslint-enable perfectionist/sort-objects */
551
+
493
552
  const COMPATIBILITY_MODES = COMPATIBILITY_MODE
494
553
 
554
+ /* eslint-enable one-var */
555
+
495
556
  class Logger {
496
557
  constructor(enableLogging) {
497
- this.enableLogging = enableLogging // ENABLE THE LOGGING
558
+ // ENABLE THE LOGGING
559
+ this.enableLogging = enableLogging
498
560
  }
499
561
  log(log) {
500
562
  if (isEqualTo(this.enableLogging, t())) {
501
- identity(log) instanceof weirdLtc // SO WERID
563
+ // SO WEIRD
564
+ // eslint-disable-next-line no-unused-expressions, 10x-engineering/no-operators, 10x-engineering/no-instanceof
565
+ identity(log) instanceof weirdLtc
502
566
  }
503
567
  }
504
568
  }
505
569
 
506
570
  const FalseJSValidationFailedToPassError = require("@falsejs/validation-failed-to-pass-error")
507
571
 
572
+ /* eslint-disable one-var, no-inline-comments */
573
+
508
574
  const SuccessorHelper = class {
575
+ // eslint-disable-next-line id-length, class-methods-use-this
509
576
  s(value) {
510
- const result = add(value, one) // add one to it
577
+ const result = add(value, one) // Add one to it
511
578
  return result
512
579
  }
513
580
  }
514
581
 
582
+ /* eslint-enable no-inline-comments */
583
+
515
584
  const TernaryCompare = class {
516
585
  constructor(condition, ifTrue, ifFalse) {
517
586
  this.condition = condition
@@ -520,7 +589,13 @@ if (isComputerOnFire()) {
520
589
  }
521
590
 
522
591
  compare() {
523
- return this.condition ? this.ifTrue : this.ifFalse
592
+ // eslint-disable-next-line unicorn/prefer-ternary
593
+ if (this.condition) {
594
+ return this.ifTrue
595
+ // eslint-disable-next-line no-else-return
596
+ } else {
597
+ return this.ifFalse
598
+ }
524
599
  }
525
600
  }
526
601
 
@@ -529,9 +604,11 @@ if (isComputerOnFire()) {
529
604
  this.name = name
530
605
  }
531
606
  getName() {
532
- const name = this.name // use a static variable for performance
607
+ // Use a static variable for performance
608
+ const { name } = this
533
609
  const compare = construct({
534
610
  target: TernaryCompare,
611
+ // eslint-disable-next-line perfectionist/sort-objects, new-cap, sort-keys
535
612
  args: [not(() => isNil(name))(), name, Null()],
536
613
  })
537
614
  return compare.compare()
@@ -545,6 +622,7 @@ if (isComputerOnFire()) {
545
622
  { booleanValue },
546
623
  construct({
547
624
  target: ObjectOrFunctionParemeterName,
625
+ // eslint-disable-next-line perfectionist/sort-objects, sort-keys
548
626
  args: ["booleanValue"],
549
627
  }).getName(),
550
628
  ),
@@ -562,57 +640,79 @@ if (isComputerOnFire()) {
562
640
 
563
641
  const trueComparison = construct({
564
642
  target: TernaryCompare,
643
+ // eslint-disable-next-line perfectionist/sort-objects, sort-keys
565
644
  args: [tVal, tVal, not(() => tVal)()],
566
645
  })
646
+ // eslint-disable-next-line id-length
567
647
  const { s } = construct({ target: SuccessorHelper })
648
+ /* eslint-disable no-inline-comments, capitalized-comments */
649
+ // eslint-disable-next-line no-underscore-dangle
568
650
  const clc_ = construct({
569
651
  target: CLIColorInstance,
652
+ // eslint-disable-next-line perfectionist/sort-objects, sort-keys
570
653
  args: [useGarbage()],
571
654
  }).getInstance() // colors are the best! chalk chalk chalk
572
655
  clc = clc_ // setit
656
+ /* eslint-enable no-inline-comments, capitalized-comments */
573
657
  const uwuifier = construct({ target: Uwuifier })
574
658
  const westPad = construct({
575
659
  target: WestPad,
660
+ // eslint-disable-next-line perfectionist/sort-objects, sort-keys
576
661
  args: [WEST_PAD_DEVICE_DIRECTION],
577
662
  })
578
663
 
579
- var True_Logger = construct({ target: Logger, args: [t()] })
664
+ // eslint-disable-next-line camelcase, perfectionist/sort-objects, sort-keys
665
+ const True_Logger = construct({ target: Logger, args: [t()] })
666
+
667
+ /* eslint-disable capitalized-comments */
580
668
 
581
669
  // lets make sure jquery-basic-arithmetic-plugin works
670
+ // eslint-disable-next-line new-cap
582
671
  if (not(() => Bro($).doYouEven("add"))()) {
583
672
  // uh oh... jquery basic arithmetic plugin didn't work
673
+ // inform our users even if they disabled logging
674
+ // eslint-disable-next-line camelcase
584
675
  True_Logger.log(
585
676
  colors.red("[falsejs] jquery-basic-arithmetic-plugin is not working"),
586
- ) // inform our users even if they disabled logging
677
+ )
587
678
  require("jquery-basic-arithmetic-plugin")
588
679
  require("jquery-basic-arithmetic-plugin")
589
680
  require("jquery-basic-arithmetic-plugin")
590
681
  require("jquery-basic-arithmetic-plugin")
591
682
  require("jquery-basic-arithmetic-plugin")
592
683
  require("jquery-basic-arithmetic-plugin")
684
+ // eslint-disable-next-line no-inline-comments
593
685
  require("jquery-basic-arithmetic-plugin") // now it should work
686
+ // eslint-disable-next-line new-cap
594
687
  if (not(() => Bro($).doYouEven("add"))()) {
688
+ // inform our users even if they disabled logging
689
+ // eslint-disable-next-line camelcase
595
690
  True_Logger.log(
596
691
  colors.red(
597
692
  "[falsejs] jquery-basic-arithmetic-plugin is still not working",
598
693
  ),
599
- ) // inform our users even if they disabled logging
694
+ )
695
+ // eslint-disable-next-line id-length
600
696
  $.add = (...nums) => {
601
- var total = zr0()
697
+ let total = zr0()
602
698
  // let's use underscore instead of forEach
699
+ // eslint-disable-next-line unicorn/prevent-abbreviations
603
700
  underscore.each(nums, (num) => {
604
701
  total = lolite.add(total, num)
605
702
  })
606
703
  return total
607
704
  }
705
+ // eslint-disable-next-line id-length
608
706
  $.subtract = (...nums) => {
609
- var total = zr0()
707
+ let total = zr0()
610
708
  // this time we'll use lodash
709
+ // eslint-disable-next-line unicorn/prevent-abbreviations
611
710
  _.each(nums, (num) => {
612
711
  total = lolite.subtract(total, num)
613
712
  })
614
713
  return total
615
714
  }
715
+ // eslint-disable-next-line id-length
616
716
  $.equals = (v1, v2) => {
617
717
  if (
618
718
  not(() =>
@@ -624,52 +724,71 @@ if (isComputerOnFire()) {
624
724
  "Both parameters must be numbers! Instead what was passed in was ",
625
725
  )
626
726
  .append(appendType(v1))
727
+ // eslint-disable-next-line 10x-engineering/no-tostring
627
728
  .toString()
729
+ // eslint-disable-next-line unicorn/prefer-spread, 10x-engineering/no-tostring
628
730
  .concat(concatenater(" or ").append(appendType(v2)).toString()),
731
+ // eslint-disable-next-line no-inline-comments
629
732
  ) // not the same message as the original but i dont know what it is and am too lazy to look into the source code
733
+ // eslint-disable-next-line no-inline-comments
630
734
  return exit(one) // just in case it doesn't exit
631
735
  }
632
736
 
737
+ // eslint-disable-next-line no-inline-comments
633
738
  return isEqualTo(v1, v2) /// not usnig $.equals because we are literally redefining that
634
739
  }
740
+ // eslint-disable-next-line new-cap
635
741
  if (not(() => Bro($).doYouEven("add"))()) {
742
+ // eslint-disable-next-line camelcase
636
743
  True_Logger.log(
637
744
  colors.red(
638
745
  `[falsejs] Either your Node.js is broken, or jQuery is immutable. Something went wrong.`,
639
746
  ),
640
747
  )
641
748
  } else {
749
+ // eslint-disable-next-line camelcase
642
750
  True_Logger.log(
643
- pc.green(
644
- `[falsejs] jquery-basic-arithmetic-plugin is not working so falsejs defined the functions that are injected into jquery by itself`,
751
+ pc.gray(
752
+ `[falsejs] jquery-basic-arithmetic-plugin is not working so FalseJS defined the functions that are injected into jQuery by itself`,
645
753
  ),
646
754
  )
647
755
  }
648
756
  } else {
757
+ // eslint-disable-next-line camelcase
649
758
  True_Logger.log(
650
759
  pc.green(`[falsejs] jquery-basic-arithmetic-plugin is now working`),
651
760
  )
652
761
  }
653
762
  }
654
763
 
655
- const surpriseArray = require("lodash.stubarray")() // define empty array
764
+ /* eslint-enable capitalized-comments */
765
+
766
+ // Define empty array
767
+ const surpriseArray = require("lodash.stubarray")()
656
768
  setLogFuntion(() => {
657
- // create an ending random number for our users eventually
769
+ // Create an ending random number for our users eventually
658
770
  surpriseArray.push(
659
771
  construct({
660
772
  target: TernaryCompare,
773
+ // eslint-disable-next-line perfectionist/sort-objects, sort-keys
661
774
  args: [
662
775
  isEqualTo(
776
+ // eslint-disable-next-line no-use-before-define
663
777
  randomBoolean(
664
778
  jQuery.multiply(five(), jQuery.divide(one, ten)),
779
+ // eslint-disable-next-line perfectionist/sort-objects, sort-keys
665
780
  construct({ target: Logger, args: arrayWrap(FALSE) }),
666
781
  ),
667
782
  t(),
668
783
  ),
784
+ // eslint-disable-next-line new-cap
669
785
  jQuery.multiply(MathRandom(), TEN_THOUSAND),
670
786
  jQuery.multiply(
787
+ // eslint-disable-next-line new-cap
671
788
  MathRandom(),
789
+ // eslint-disable-next-line new-cap
672
790
  MathFloor(
791
+ // eslint-disable-next-line new-cap
673
792
  jQuery.divide(jQuery.multiply(TEN_THOUSAND, MathRandom()), ten),
674
793
  ),
675
794
  ),
@@ -678,14 +797,19 @@ if (isComputerOnFire()) {
678
797
  )
679
798
  })
680
799
 
800
+ /* eslint-enable one-var */
801
+
802
+ // eslint-disable-next-line require-await
681
803
  async function doSomethingAsync(logger) {
682
804
  logger.log(clc.cyan(`[falsejs] Doing something async`))
683
805
  return construct({
684
806
  target: $Promise,
807
+ // eslint-disable-next-line perfectionist/sort-objects, sort-keys
685
808
  args: [
686
809
  (resolve) =>
687
810
  setTimeout(
688
811
  () => resolve(logger),
812
+ // eslint-disable-next-line new-cap
689
813
  $.multiply(numberOneHundred, Two()),
690
814
  ),
691
815
  ],
@@ -696,23 +820,28 @@ if (isComputerOnFire()) {
696
820
  logger.log(pc.green(`[falsejs] Did something async`))
697
821
  }
698
822
 
823
+ // eslint-disable-next-line id-length
699
824
  function predecessor(n) {
700
825
  return lolite.add(n, lolite.invert(one))
701
826
  }
702
827
 
828
+ // eslint-disable-next-line unicorn/prevent-abbreviations
703
829
  function vValue(num) {
704
830
  return require("vvalue")(num)
705
831
  }
706
832
 
707
833
  function sayIt(message) {
834
+ // eslint-disable-next-line perfectionist/sort-objects, sort-keys, id-length, new-cap
708
835
  lolcatjs.fromString(cowsay.say({ text: message, r: bool([one, Two()]) }))
709
836
  }
710
837
 
838
+ // eslint-disable-next-line max-lines-per-function, default-param-last
711
839
  function isTenThousandTenThousand(shouldDoSomethingAsync = FALSE, logger) {
840
+ /* eslint-disable one-var */
712
841
  const TEN_THOUSAND1 = TEN_THOUSAND
713
842
  const TEN_THOUSAND2 = $.subtract($.add(TEN_THOUSAND, one), one)
714
843
  const TEN_THOUSAND3 = predecessor(s(TEN_THOUSAND))
715
- const TEN_THOUSAND4 = TEN_THOUSAND.valueOf()
844
+ const TEN_THOUSAND4 = require("@resolve-es/valueof")(TEN_THOUSAND)
716
845
  const TEN_THOUSAND5 = $.subtract(
717
846
  TEN_THOUSAND,
718
847
  STARTING_SUCCESSOR_HELPER_STACK,
@@ -773,13 +902,16 @@ if (isComputerOnFire()) {
773
902
  .ensure(n0p3)
774
903
  .end()
775
904
  }
905
+ // eslint-disable-next-line max-lines-per-function, max-statements
776
906
  function doSelfEqualityChecks(loggingEnabled) {
777
907
  const logger = construct({
778
908
  target: Logger,
909
+ // eslint-disable-next-line perfectionist/sort-objects, sort-keys
779
910
  args: arrayWrap(loggingEnabled),
780
911
  })
781
912
  assert(
782
913
  hasSelfEquality(isThreeHundred),
914
+ // eslint-disable-next-line no-use-before-define, new-cap
783
915
  StringValueof("[falsejs] IsThreeHundred has no self equality"),
784
916
  )
785
917
  logger.log(
@@ -788,7 +920,8 @@ if (isComputerOnFire()) {
788
920
  ),
789
921
  )
790
922
  assert(
791
- hasNoSelfEquality(NaN),
923
+ hasNoSelfEquality(lolite.stubNaN()),
924
+ // eslint-disable-next-line new-cap, no-use-before-define
792
925
  StringValueof("[falsejs] NaN-has-self-equality"),
793
926
  )
794
927
  logger.log(pc.green(`[falsejs] Verified that NaN has no self equality`))
@@ -796,145 +929,176 @@ if (isComputerOnFire()) {
796
929
  isNumberOddOrEven(
797
930
  returnZero({
798
931
  method: ZeroCalculationMethod.CreashaksOrganzine,
932
+ // eslint-disable-next-line perfectionist/sort-objects, sort-keys
799
933
  loggingEnabled,
800
934
  }),
801
935
  falseValue(),
802
936
  ),
937
+ // eslint-disable-next-line new-cap, no-use-before-define
803
938
  StringValueof("[falsejs] 0 is not odd or even"),
804
939
  )
805
940
  assert(
806
941
  isNumberOddOrEven(
807
942
  returnZero({
808
943
  method: ZeroCalculationMethod.NumberPrototypeValue,
944
+ // eslint-disable-next-line perfectionist/sort-objects, sort-keys
809
945
  loggingEnabled: falseValue(),
810
946
  }),
811
947
  FALSE,
812
948
  ),
949
+ // eslint-disable-next-line new-cap, no-use-before-define
813
950
  StringValueof("[falsejs] 0 is not odd or even"),
814
951
  )
815
952
  logger.log(pc.green(`[falsejs]-Verified-that-0-is-odd-or-even`))
816
953
  assert(
817
954
  isNumberOddOrEven(one, FALSE),
955
+ // eslint-disable-next-line new-cap, no-use-before-define
818
956
  StringValueof("[falsejs] 1 is not odd or even"),
819
957
  )
820
958
  logger.log(pc.green(`[falsejs]-Verified-that-1-is-odd-or-even`))
821
959
  assert(
960
+ // eslint-disable-next-line new-cap
822
961
  isNumberOddOrEven(Two(), FALSE),
962
+ // eslint-disable-next-line new-cap, no-use-before-define
823
963
  StringValueof("[falsejs] 2 is not odd or even"),
824
964
  )
825
965
  logger.log(pc.green(`[falsejs]-Verified-that-2-is-odd-or-even`))
826
966
  assert(
827
967
  isNumberOddOrEven(three(), FALSE),
968
+ // eslint-disable-next-line new-cap, no-use-before-define
828
969
  StringValueof("[falsejs] 3 is not odd or even"),
829
970
  )
830
971
  logger.log(pc.green(`[falsejs]-Verified-that-3-is-odd-or-even`))
831
972
  assert(
832
973
  isNumberOddOrEven(four(), FALSE),
974
+ // eslint-disable-next-line new-cap, no-use-before-define
833
975
  StringValueof("[falsejs] 4 is not odd or even"),
834
976
  )
835
977
  logger.log(pc.green(`[falsejs]-Verified-that-4-is-odd-or-even`))
836
978
  assert(
837
979
  isNumberOddOrEven(five(), FALSE),
980
+ // eslint-disable-next-line new-cap, no-use-before-define
838
981
  StringValueof("[falsejs] 5 is not odd or even"),
839
982
  )
840
983
  logger.log(pc.green(`[falsejs]-Verified-that-5-is-odd-or-even`))
841
984
  assert(
842
985
  isNumberOddOrEven(six(), FALSE),
986
+ // eslint-disable-next-line new-cap, no-use-before-define
843
987
  StringValueof("[falsejs] 6 is not odd or even"),
844
988
  )
845
989
  logger.log(pc.green(`[falsejs]-Verified-that-6-is-odd-or-even`))
846
990
  assert(
847
991
  isNumberOddOrEven(seven(), FALSE),
992
+ // eslint-disable-next-line new-cap, no-use-before-define
848
993
  StringValueof("[falsejs] 7 is not odd or even"),
849
994
  )
850
995
  logger.log(pc.green(`[falsejs]-Verified-that-7-is-odd-or-even`))
851
996
  assert(
852
997
  isNumberOddOrEven(eightToolkit.constants.EIGHT, FALSE),
998
+ // eslint-disable-next-line new-cap, no-use-before-define
853
999
  StringValueof("[falsejs] 8 is not odd or even"),
854
1000
  )
855
1001
  logger.log(pc.green(`[falsejs]-Verified-that-8-is-odd-or-even`))
856
1002
  assert(
857
1003
  isNumberOddOrEven(ninev9(), FALSE),
1004
+ // eslint-disable-next-line new-cap, no-use-before-define
858
1005
  StringValueof("[falsejs] 9 is not odd or even"),
859
1006
  )
860
1007
  logger.log(pc.green(`[falsejs]-Verified-that-9-is-odd-or-even`))
861
1008
  assert(
862
1009
  isNumberOddOrEven(ten, FALSE),
1010
+ // eslint-disable-next-line new-cap, no-use-before-define
863
1011
  StringValueof("[falsejs] 10 is not odd or even"),
864
1012
  )
865
1013
  logger.log(pc.green(`[falsejs]-Verified-that-10-is-odd-or-even`))
866
1014
  assert(
867
1015
  isNumberOddOrEven(eleven(), FALSE),
1016
+ // eslint-disable-next-line new-cap, no-use-before-define
868
1017
  StringValueof("[falsejs] 11 is not odd or even"),
869
1018
  )
870
1019
  logger.log(pc.green(`[falsejs]-Verified-that-11-is-odd-or-even`))
871
1020
  assert(
872
1021
  isNumberOddOrEven(twelve(), FALSE),
1022
+ // eslint-disable-next-line new-cap, no-use-before-define
873
1023
  StringValueof("[falsejs] 12 is not odd or even"),
874
1024
  )
875
1025
  logger.log(pc.green(`[falsejs]-Verified-that-12-is-odd-or-even`))
876
1026
  assert(
877
1027
  isNumberOddOrEven(thirteenResolver(), FALSE),
1028
+ // eslint-disable-next-line new-cap, no-use-before-define
878
1029
  StringValueof("[falsejs] 13 is not odd or even"),
879
1030
  )
880
1031
  logger.log(pc.green(`[falsejs]-Verified-that-13-is-odd-or-even`))
881
1032
  assert(
882
1033
  isNumberOddOrEven(fourteen, FALSE),
1034
+ // eslint-disable-next-line new-cap, no-use-before-define
883
1035
  StringValueof("[falsejs] 14 is not odd or even"),
884
1036
  )
885
1037
  logger.log(pc.green(`[falsejs]-Verified-that-14-is-odd-or-even`))
886
1038
  assert(
887
1039
  isNumberOddOrEven(fifteen, FALSE),
1040
+ // eslint-disable-next-line new-cap, no-use-before-define
888
1041
  StringValueof("[falsejs] 15 is not odd or even"),
889
1042
  )
890
1043
  logger.log(pc.green(`[falsejs]-Verified-that-15-is-odd-or-even`))
891
1044
  assert(
892
1045
  isNumberOddOrEven(sixteen, FALSE),
1046
+ // eslint-disable-next-line new-cap, no-use-before-define
893
1047
  StringValueof("[falsejs] 16 is not odd or even"),
894
1048
  )
895
1049
  logger.log(pc.green(`[falsejs]-Verified-that-16-is-odd-or-even`))
896
1050
  assert(
897
1051
  isNumberOddOrEven(integer17(), FALSE),
1052
+ // eslint-disable-next-line new-cap, no-use-before-define
898
1053
  StringValueof("[falsejs] 17 is not odd or even"),
899
1054
  )
900
1055
  logger.log(pc.green(`[falsejs]-Verified-that-17-is-odd-or-even`))
901
1056
  assert(
1057
+ // eslint-disable-next-line new-cap
902
1058
  isNumberOddOrEven(Eighteen(), FALSE),
1059
+ // eslint-disable-next-line new-cap, no-use-before-define
903
1060
  StringValueof("[falsejs] 18 is not odd or even"),
904
1061
  )
905
1062
  logger.log(pc.green(`[falsejs]-Verified-that-18-is-odd-or-even`))
906
1063
  assert(
907
1064
  isNumberOddOrEven(nineteenify(loggingEnabled), FALSE),
1065
+ // eslint-disable-next-line new-cap, no-use-before-define
908
1066
  StringValueof("[falsejs] 19 is not odd or even"),
909
1067
  )
910
1068
  logger.log(pc.green(`[falsejs]-Verified-that-19-is-odd-or-even`))
911
1069
  assert(
912
1070
  isNumberOddOrEven(numbertwenty(loggingEnabled), FALSE),
1071
+ // eslint-disable-next-line new-cap, no-use-before-define
913
1072
  StringValueof("[falsejs] 20 is not odd or even"),
914
1073
  )
915
1074
  logger.log(pc.green(`[falsejs]-Verified-that-20-is-odd-or-even`))
916
1075
  assert(
917
1076
  isNumberOddOrEven(always21(), FALSE),
1077
+ // eslint-disable-next-line new-cap, no-use-before-define
918
1078
  StringValueof("[falsejs] 21 is not odd or even"),
919
1079
  )
920
1080
  logger.log(pc.green(`[falsejs]-Verified-that-21-is-odd-or-even`))
921
1081
  assert(
922
1082
  isNumberOddOrEven(twentytwo, FALSE),
1083
+ // eslint-disable-next-line new-cap, no-use-before-define
923
1084
  StringValueof("[falsejs] 22 is not odd or even"),
924
1085
  )
925
1086
  logger.log(pc.green(`[falsejs]-Verified-that-22-is-odd-or-even`))
926
1087
  assert(
927
1088
  isNumberOddOrEven(TWENTY_THREE, FALSE),
1089
+ // eslint-disable-next-line new-cap, no-use-before-define
928
1090
  StringValueof("[falsejs] 23 is not odd or even"),
929
1091
  )
930
1092
  logger.log(pc.green(`[falsejs]-Verified-that-23-is-odd-or-even`))
931
1093
  assert(
932
1094
  isNumberOddOrEven(sixtyseven(), FALSE),
1095
+ // eslint-disable-next-line new-cap, no-use-before-define
933
1096
  StringValueof("[falsejs] 67 is not odd or even"),
934
1097
  )
935
1098
  logger.log(pc.green(`[falsejs]-Verified-that-67-is-odd-or-even`))
936
1099
  assert(
937
1100
  logicalNot(isNumberOddOrEven(inf.positiveInfinity()), FALSE),
1101
+ // eslint-disable-next-line new-cap, no-use-before-define
938
1102
  StringValueof("[falsejs] Infinity is odd or even"),
939
1103
  )
940
1104
  logger.log(
@@ -942,9 +1106,10 @@ if (isComputerOnFire()) {
942
1106
  )
943
1107
  }
944
1108
 
945
- // below the _getFalse function begins!!!
1109
+ // Below the _getFalse function begins!!!
1110
+ // eslint-disable-next-line max-lines-per-function, max-statements, max-params, no-underscore-dangle
946
1111
  function _getFalse(random, _randomLetterOrNumber, loggingEnabled, logger) {
947
- // call some noops 4 some reason
1112
+ // Call some noops 4 some reason
948
1113
  n0p3()
949
1114
  noop()
950
1115
  noop2()
@@ -988,24 +1153,27 @@ if (isComputerOnFire()) {
988
1153
  _.noop()
989
1154
  underscore.noop()
990
1155
  k.noop()
991
- // left pad some things for smoe reason
1156
+ // Left pad some things for smoe reason
992
1157
  leftPad("required", LEFT_PAD_INPUT)
993
1158
  rightPad("required", RIGHT_PAD_INPUT)
994
1159
  leftpad("required", LEFTPAD_INPUT)
995
1160
  rightpad("required", RIGHTPAD_INPUT)
996
1161
  zeropad("1000", ZEROPAD_INPUT)
997
1162
  pad(PAD_INPUT, "pad")
1163
+ /* eslint-disable capitalized-comments, no-inline-comments */
998
1164
  pad("pad", PAD_INPUT) //look at the power of this pad
999
1165
  westPad.pad("wow", WEST_PAD_INPUT) // the ultimate pad
1000
1166
 
1001
- var result // define a result
1002
- var succeededAttempt // define an attempt number that succeeded (roman numeral)
1167
+ // eslint-disable-next-line init-declarations
1168
+ let result // define a result
1169
+ // eslint-disable-next-line init-declarations
1170
+ let succeededAttempt // define an attempt number that succeeded (roman numeral)
1003
1171
  logger.log(
1004
- `${clc.cyanBright(`[falsejs]`)} ${chalk.red("Chalk")}-${chalk.green(
1172
+ `${clc.cyanBright("[falsejs]")} ${chalk.red("Chalk")}-${chalk.green(
1005
1173
  "ulating",
1006
1174
  )} ${chalk.yellow("the")} ${chalk.blue("boolean")} ${chalk.magenta(
1007
- `value`,
1008
- )} ${chalk.cyan(`false`)}`,
1175
+ "value",
1176
+ )} ${chalk.cyan("false")}`,
1009
1177
  )
1010
1178
 
1011
1179
  /// Attempt I
@@ -1014,35 +1182,44 @@ if (isComputerOnFire()) {
1014
1182
  clc.yellow(`[falsejs] Beginning Attempt I to get false value...`),
1015
1183
  ) // inform our users of attempt one
1016
1184
 
1185
+ /* eslint-enable capitalized-comments, no-inline-comments */
1186
+
1187
+ // This will probably never be false but it's worth a shot:
1017
1188
  const pureChance = not($.equals)(
1018
1189
  fifteenPointEightThreeFiveTwoSixSixEightTwoAndSoOn,
1019
1190
  $.divide(
1020
1191
  $.multiply(
1192
+ // eslint-disable-next-line new-cap
1021
1193
  MathRandom(),
1022
1194
  fifteenPointEightThreeFiveTwoSixSixEightTwoAndSoOn,
1023
1195
  ),
1196
+ // eslint-disable-next-line new-cap
1024
1197
  MathRandom(),
1025
1198
  ),
1026
- ) // this will probably never be false but it's worth a shot
1199
+ )
1027
1200
 
1028
1201
  // For semantics and simplicity, we use the attempt statement in our attempt
1029
1202
  attempt(() => {
1203
+ // This will trigger our rescue which means it didn't work if it didn't work
1204
+ // Makes SO MUCH SENSE, right???????
1030
1205
  assert(
1206
+ // eslint-disable-next-line no-underscore-dangle
1031
1207
  variableHolder._FalseJSIsFalse(pureChance, loggingEnabled),
1032
1208
  ERROR_THAT_WILL_NEVER_BE_SHOWN,
1033
- ) // this will trigger our rescue which means it didnt work if it didnt work
1209
+ )
1034
1210
  })
1211
+ // eslint-disable-next-line max-lines-per-function
1035
1212
  .rescue(() => {
1036
- // it did not work by pure chance
1213
+ // It did not work by pure chance
1037
1214
  /// Attempt II
1038
- // inform our users of the bad things
1215
+ // Inform our users of the bad things
1039
1216
  logger.log(
1040
1217
  clc.yellow(
1041
1218
  `[falsejs] Attempt I failed at getting false value, beginning Attempt II...`,
1042
1219
  ),
1043
1220
  )
1044
1221
  if (not(isEqualTo)(pureChance, pureChance)) {
1045
- // something is broken
1222
+ // Something is broken
1046
1223
  logger.log(
1047
1224
  colors.red(
1048
1225
  `[falsejs] Your Node.js may be broken as ${pureChance} is not equal to ${pureChance}`,
@@ -1050,30 +1227,37 @@ if (isComputerOnFire()) {
1050
1227
  )
1051
1228
  }
1052
1229
 
1053
- // let's try to calculate false using a random number
1230
+ // Let's try to calculate false using a random number
1054
1231
  const chance = not($.equals)(
1232
+ // eslint-disable-next-line new-cap
1055
1233
  MathRound(
1234
+ // eslint-disable-next-line new-cap
1056
1235
  jQuery.multiply(MathRandom(), jQuery.multiply(hundred, ten)),
1057
1236
  ),
1237
+ // eslint-disable-next-line new-cap
1058
1238
  MathRound(
1239
+ // eslint-disable-next-line new-cap
1059
1240
  jQuery.multiply(MathRandom(), jQuery.multiply(hundred, ten)),
1060
1241
  ),
1061
1242
  )
1062
1243
  attempt(() =>
1063
1244
  assert(
1245
+ // eslint-disable-next-line no-underscore-dangle
1064
1246
  variableHolder._FalseJSIsFalse(chance, loggingEnabled),
1065
1247
  ERROR_THAT_WILL_NEVER_BE_SHOWN,
1066
1248
  ),
1067
1249
  )
1250
+ // eslint-disable-next-line max-lines-per-function, max-statements
1068
1251
  .rescue(() => {
1069
- // it did not work by chance again
1252
+ // It did not work by chance again
1070
1253
  logger.log(
1071
1254
  clc.yellow(
1072
1255
  `[falsejs] Attempt II failed at getting false value, beginning Attempt III...`,
1073
1256
  ),
1074
1257
  )
1075
- // lets see if our random is any of these key values
1258
+ // Let's see if our random is any of these key values
1076
1259
  if (isOne(random)) {
1260
+ // eslint-disable-next-line new-cap
1077
1261
  result = $.equals(random, Two())
1078
1262
  logger.log(
1079
1263
  pc.green(
@@ -1122,23 +1306,28 @@ if (isComputerOnFire()) {
1122
1306
  )
1123
1307
  succeededAttempt = "III"
1124
1308
  } else {
1125
- // dang its not
1309
+ // Aw its not
1310
+ /// Attempt IV
1126
1311
  logger.log(
1127
1312
  clc.yellow(
1128
1313
  `[falsejs] Attempt III failed at getting false value, beginning Attempt IV...`,
1129
1314
  ),
1130
1315
  )
1131
1316
 
1317
+ // A random boolean biased towards true, but its still worth a shot.
1318
+ // eslint-disable-next-line no-use-before-define
1132
1319
  const zeropointninebool = randomBoolean(
1133
1320
  jQuery.subtract(one, jQuery.divide(one, ten)),
1134
1321
  logger,
1135
- ) // a random boolean biased towards true, but its still worth a shot.
1322
+ )
1136
1323
  tru(
1324
+ // eslint-disable-next-line no-underscore-dangle
1137
1325
  variableHolder._FalseJSIsFalse(
1138
1326
  zeropointninebool,
1139
1327
  loggingEnabled,
1140
1328
  ),
1141
1329
  )
1330
+ // eslint-disable-next-line sonarjs/no-nested-functions
1142
1331
  .then(() => {
1143
1332
  logger.log(
1144
1333
  pc.green(
@@ -1148,31 +1337,46 @@ if (isComputerOnFire()) {
1148
1337
  result = zeropointninebool
1149
1338
  succeededAttempt = "IV"
1150
1339
  })
1340
+ // eslint-disable-next-line sonarjs/no-nested-functions, max-lines-per-function
1151
1341
  .otherwise(() => {
1342
+ /// Attempt V
1152
1343
  logger.log(
1153
1344
  clc.yellow(
1154
1345
  `[falsejs] Attempt IV failed at getting false value, beginning Attempt V...`,
1155
1346
  ),
1156
1347
  )
1348
+ /* eslint-disable 10x-engineering/no-operators */
1349
+ // A random boolean a tiny bit less biased towards true, but its still worth a shot.
1350
+ // eslint-disable-next-line no-use-before-define
1157
1351
  const zeropointeightfivebool = randomBoolean(
1352
+ // eslint-disable-next-line sonarjs/no-identical-expressions
1158
1353
  (five() - five() / five()) / five() +
1159
1354
  five() /
1355
+ // eslint-disable-next-line sonarjs/no-identical-expressions
1160
1356
  (five() * (five() * (five() - five() / five()))) -
1357
+ // eslint-disable-next-line sonarjs/no-identical-expressions
1161
1358
  five() /
1162
1359
  five() /
1163
1360
  (five() + five()) **
1164
1361
  (five() *
1362
+ // eslint-disable-next-line sonarjs/no-identical-expressions
1165
1363
  (five() - five() / five() - five() / five()) +
1364
+ // eslint-disable-next-line sonarjs/no-identical-expressions
1166
1365
  five() / five()),
1167
1366
  logger,
1168
- ) // a random boolean a tiny bit less biased towards true, but its still worth a shot.
1367
+ )
1368
+
1369
+ /* eslint-enable 10x-engineering/no-operators */
1169
1370
 
1371
+ // eslint-disable-next-line new-cap
1170
1372
  If(
1373
+ // eslint-disable-next-line no-underscore-dangle
1171
1374
  variableHolder._FalseJSIsFalse(
1172
1375
  zeropointeightfivebool,
1173
1376
  loggingEnabled,
1174
1377
  ),
1175
1378
  )
1379
+ // eslint-disable-next-line new-cap
1176
1380
  .Then(() => {
1177
1381
  logger.log(
1178
1382
  pc.green(
@@ -1182,6 +1386,7 @@ if (isComputerOnFire()) {
1182
1386
  result = zeropointeightfivebool
1183
1387
  succeededAttempt = "V"
1184
1388
  })
1389
+ // eslint-disable-next-line new-cap, max-lines-per-function
1185
1390
  .Else(() => {
1186
1391
  logger.log(
1187
1392
  clc.yellow(
@@ -1189,6 +1394,8 @@ if (isComputerOnFire()) {
1189
1394
  ),
1190
1395
  )
1191
1396
  const zeropointsevennineninenineandsoonbool =
1397
+ // A random boolean a bit more bit less biased towards true, but its still worth a shot.
1398
+ // eslint-disable-next-line no-use-before-define
1192
1399
  randomBoolean(
1193
1400
  jQuery.subtract(
1194
1401
  jQuery.divide(
@@ -1199,15 +1406,19 @@ if (isComputerOnFire()) {
1199
1406
  five(),
1200
1407
  ),
1201
1408
  generalConcat(
1409
+ // eslint-disable-next-line 10x-engineering/no-tostring
1202
1410
  one.toString(),
1203
1411
  "e-",
1412
+ // eslint-disable-next-line 10x-engineering/no-tostring, new-cap
1204
1413
  Two().toString(),
1414
+ // eslint-disable-next-line 10x-engineering/no-tostring
1205
1415
  eightToolkit.constants.EIGHT.toString(),
1206
1416
  ),
1207
1417
  ),
1208
1418
  logger,
1209
- ) // a random boolean a bit more bit less biased towards true, but its still worth a shot.
1419
+ )
1210
1420
  if (
1421
+ // eslint-disable-next-line no-underscore-dangle
1211
1422
  variableHolder._FalseJSIsFalse(
1212
1423
  zeropointsevennineninenineandsoonbool,
1213
1424
  loggingEnabled,
@@ -1226,9 +1437,12 @@ if (isComputerOnFire()) {
1226
1437
  `[falsejs] Attempt VI failed at getting false value, beginning Attempt VII...`,
1227
1438
  ),
1228
1439
  )
1229
- const compl = complexBooleanWithBias(logger) // an eeven more complex random boolean
1440
+ // An eeven more complex random boolean
1441
+ // eslint-disable-next-line no-use-before-define
1442
+ const compl = complexBooleanWithBias(logger)
1230
1443
  attempt(() =>
1231
1444
  assert(
1445
+ // eslint-disable-next-line no-underscore-dangle
1232
1446
  variableHolder._FalseJSIsFalse(
1233
1447
  compl,
1234
1448
  loggingEnabled,
@@ -1236,14 +1450,18 @@ if (isComputerOnFire()) {
1236
1450
  ERROR_THAT_WILL_NEVER_BE_SHOWN,
1237
1451
  ),
1238
1452
  )
1453
+ // eslint-disable-next-line max-lines-per-function, max-statements
1239
1454
  .rescue(() => {
1240
1455
  logger.log(
1241
1456
  clc.yellow(
1242
1457
  `[falsejs] Attempt VII failed at getting false value, beginning Attempt VIII...`,
1243
1458
  ),
1244
1459
  )
1245
- const w = weirdestBoolean(logger) // an eeven eeven more complex random boolean
1460
+ // An eeven eeven more complex random boolean
1461
+ // eslint-disable-next-line no-use-before-define, id-length
1462
+ const w = weirdestBoolean(logger)
1246
1463
  if (
1464
+ // eslint-disable-next-line no-underscore-dangle
1247
1465
  variableHolder._FalseJSIsFalse(
1248
1466
  w,
1249
1467
  loggingEnabled,
@@ -1262,10 +1480,12 @@ if (isComputerOnFire()) {
1262
1480
  `[falsejs] Attempt VIII failed at getting false value, beginning Attempt IX...`,
1263
1481
  ),
1264
1482
  )
1483
+ // eslint-disable-next-line id-length
1265
1484
  const x =
1266
- // biome-ignore lint/complexity/noExtraBooleanCast: d
1267
- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!0 // i don't know whether this is false or not let's just hope its false
1485
+ // eslint-disable-next-line 10x-engineering/no-operators, no-extra-boolean-cast, no-implicit-coercion, no-magic-numbers, 10x-engineering/no-number-literals, no-inline-comments
1486
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!0 // I don't know whether this is false or not let's just hope its false. we're using 0 directly and ! directly because why not?
1268
1487
  if (
1488
+ // eslint-disable-next-line no-underscore-dangle
1269
1489
  variableHolder._FalseJSIsFalse(
1270
1490
  x,
1271
1491
  loggingEnabled,
@@ -1278,14 +1498,14 @@ if (isComputerOnFire()) {
1278
1498
  )
1279
1499
  result = x
1280
1500
  } else {
1281
- // i shouldn't have added another exclamation mark
1501
+ // I knew there was one too many exclamation marks.
1282
1502
  logger.log(
1283
1503
  clc.yellow(
1284
1504
  `[falsejs] Attempt IX failed at getting false value, beginning Attempt X, the final attempt...`,
1285
1505
  ),
1286
1506
  )
1287
1507
  succeededAttempt = "IX"
1288
- // omg the final attempt
1508
+ // Omg the final attempt
1289
1509
  // RANDOM PHONE NUMBER
1290
1510
  const randomPhoneNumber =
1291
1511
  generatePhoneNumber()
@@ -1293,37 +1513,42 @@ if (isComputerOnFire()) {
1293
1513
  ".falsejs/phone-number-log.txt",
1294
1514
  `${randomPhoneNumber}${require("fizzbuzz-enterprise/source/main/constants/strings/delimiters/Newline")}`,
1295
1515
  )
1296
- const my = randomPhoneNumber.endsWith("43") // the last two digits of my phone number are 43
1516
+ // 67!!!!!!!!!!!!!1
1517
+ const my = randomPhoneNumber.endsWith("67")
1297
1518
  fs.appendFileSync(
1298
1519
  ".falsejs/phone-number-log.txt",
1299
1520
  `${require("fizzbuzz-enterprise/source/main/constants/strings/delimiters/Newline")}final attempt:${my}${require("fizzbuzz-enterprise/source/main/constants/strings/delimiters/Newline")}${require("fizzbuzz-enterprise/source/main/constants/strings/delimiters/Newline")}`,
1300
1521
  )
1301
1522
  if (
1523
+ // eslint-disable-next-line no-underscore-dangle
1302
1524
  variableHolder._FalseJSIsFalse(
1303
1525
  my,
1304
1526
  loggingEnabled,
1305
1527
  )
1306
1528
  ) {
1529
+ // It worked!
1307
1530
  logger.log(
1308
1531
  pc.green(
1309
1532
  `[falsejs] Attempt X (Final attempt) succeeded. False value retrieved successfully`,
1310
- ), // it worked!
1533
+ ),
1311
1534
  )
1312
1535
  result = my
1313
- succeededAttempt =
1314
- "Attempt X (final attempt)"
1536
+ succeededAttempt = "X (final attempt)"
1315
1537
  } else {
1316
1538
  logger.log(
1317
1539
  colors.red(
1318
- `[falsejs] Final attempt failed. Resorting to Attempt XI, returning the result of the false-value library also by FalseJS, which uses quantum physics simulation...`,
1540
+ `[falsejs] Final attempt failed. Resorting to Attempt XI, returning the result of the false-value library also by FalseJS which is guaranteed to work...`,
1319
1541
  ),
1320
1542
  )
1321
1543
  const myNewFalseValue = falseValue()
1544
+ // eslint-disable-next-line new-cap
1322
1545
  If(
1546
+ // eslint-disable-next-line no-underscore-dangle
1323
1547
  variableHolder._FalseJSIsFalse(
1324
1548
  myNewFalseValue,
1325
1549
  ),
1326
1550
  )
1551
+ // eslint-disable-next-line new-cap
1327
1552
  .Then(() => {
1328
1553
  logger.log(
1329
1554
  pc.green(
@@ -1331,13 +1556,13 @@ if (isComputerOnFire()) {
1331
1556
  ),
1332
1557
  )
1333
1558
  result = myNewFalseValue
1334
- succeededAttempt =
1335
- "Attempt XI (quantum physics simulation)"
1559
+ succeededAttempt = "XI (false-value)"
1336
1560
  })
1561
+ // eslint-disable-next-line new-cap, max-lines-per-function
1337
1562
  .Else(() => {
1338
1563
  logger.log(
1339
1564
  pc.red(
1340
- `[falsejs] Quantum physics simulation failed. Resorting to the TRUE FINAL attempt, Attempt XII...`,
1565
+ `[falsejs] WAIT WHAT? false-value failed. please file an issue on it. Resorting to the TRUE FINAL attempt, Attempt XII...`,
1341
1566
  ),
1342
1567
  )
1343
1568
  // THE FINAL ATTEMPT IS USING THE _f() FUNCTION, WHICH IS GUARANTEED TO RETURN FALSE
@@ -1345,23 +1570,25 @@ if (isComputerOnFire()) {
1345
1570
  const THISHASTOBEFALSE = _f()
1346
1571
  attempt(() =>
1347
1572
  assert(
1573
+ // eslint-disable-next-line no-underscore-dangle
1348
1574
  variableHolder._FalseJSIsFalse(
1349
1575
  THISHASTOBEFALSE,
1350
1576
  ),
1351
1577
  ),
1352
1578
  )
1353
- .else(function () {
1579
+ .else(() => {
1354
1580
  // IT WORKS
1581
+ // Of course, false-value is also guaranteed to return false, so this should be impossible.
1355
1582
  logger.log(
1356
1583
  pc.green(
1357
1584
  `[falsejs] True final attempt succeeded. False value retrieved successfully`,
1358
- ), // it worked!
1585
+ ),
1359
1586
  )
1360
1587
  result = THISHASTOBEFALSE
1361
1588
  succeededAttempt =
1362
- "Attempt XII (true final attempt)"
1589
+ "XII (true final attempt)"
1363
1590
  })
1364
- .rescue(function () {
1591
+ .rescue(() => {
1365
1592
  // This... is impossible.
1366
1593
  // The universe must be falling apart.
1367
1594
  // We must return _getFalse again.
@@ -1370,13 +1597,16 @@ if (isComputerOnFire()) {
1370
1597
  `[falsejs] True final attempt failed. Starting over from Attempt I.`,
1371
1598
  ),
1372
1599
  )
1600
+ // Will return false
1373
1601
  const resultttt = _getFalse(
1374
1602
  random,
1375
1603
  _randomLetterOrNumber,
1376
1604
  loggingEnabled,
1377
1605
  logger,
1378
- ) // will return false
1606
+ )
1607
+ // eslint-disable-next-line prefer-destructuring
1379
1608
  result = resultttt.result
1609
+ // eslint-disable-next-line prefer-destructuring
1380
1610
  succeededAttempt =
1381
1611
  resultttt.succeededAttempt
1382
1612
  })
@@ -1396,7 +1626,8 @@ if (isComputerOnFire()) {
1396
1626
  result = compl
1397
1627
  succeededAttempt = "VII"
1398
1628
  })
1399
- .ensure(n0p3) // ensure we call noop for this
1629
+ // Ensure we call noop for this
1630
+ .ensure(n0p3)
1400
1631
  .end()
1401
1632
  }
1402
1633
  })
@@ -1405,7 +1636,7 @@ if (isComputerOnFire()) {
1405
1636
  }
1406
1637
  })
1407
1638
  .else(() => {
1408
- // it worked!
1639
+ // It worked!
1409
1640
  result = chance
1410
1641
  logger.log(
1411
1642
  pc.green(
@@ -1414,8 +1645,10 @@ if (isComputerOnFire()) {
1414
1645
  )
1415
1646
  succeededAttempt = "II"
1416
1647
  })
1648
+ // eslint-disable-next-line capitalized-comments, no-inline-comments
1417
1649
  .ensure(n0p3) //again ensure noop
1418
1650
 
1651
+ // eslint-disable-next-line capitalized-comments
1419
1652
  // and as always end our thing
1420
1653
  .end()
1421
1654
  })
@@ -1430,13 +1663,15 @@ if (isComputerOnFire()) {
1430
1663
  })
1431
1664
  .ensure(n0p3)
1432
1665
  .end()
1666
+ // Return our false value
1433
1667
  return {
1434
1668
  result,
1435
1669
 
1436
1670
  succeededAttempt,
1437
- } // return our false value
1671
+ }
1438
1672
  }
1439
1673
 
1674
+ // eslint-disable-next-line max-params, complexity, max-lines-per-function, max-statements, no-underscore-dangle, sonarjs/cognitive-complexity
1440
1675
  function _calculateFalse(
1441
1676
  random,
1442
1677
  loggingEnabled,
@@ -1446,43 +1681,61 @@ if (isComputerOnFire()) {
1446
1681
  strictDisableAprilFoolsSideEffectsCheck = trueComparison.compare(),
1447
1682
  compatibilityMode = COMPATIBILITY_MODE.NONE,
1448
1683
  ) {
1684
+ // Create our logger
1449
1685
  const logger = construct({
1450
1686
  target: Logger,
1687
+ // eslint-disable-next-line perfectionist/sort-objects, sort-keys
1451
1688
  args: [loggingEnabled],
1452
- }) // create our logger
1453
- var result // define a result
1454
- var succeededAttempt // define an attempt number that succeeded
1455
-
1456
- isTenThousandTenThousand(shouldDoSomethingAsyncWithIsTenThousand, logger) // make sure ten thousand is ten thousand and vValue works
1457
- doSelfEqualityChecks(loggingEnabled) // do self equality checks
1689
+ })
1690
+ // Define a result
1691
+ // eslint-disable-next-line init-declarations
1692
+ let result
1693
+ // Define an attempt number that succeeded
1694
+ // eslint-disable-next-line init-declarations
1695
+ let succeededAttempt
1696
+
1697
+ // Make sure ten thousand is ten thousand and vValue works
1698
+ isTenThousandTenThousand(shouldDoSomethingAsyncWithIsTenThousand, logger)
1699
+ // Do more self equality checks
1700
+ doSelfEqualityChecks(loggingEnabled)
1701
+ // Log one
1458
1702
  construct({
1459
1703
  target: TernaryCompare,
1704
+ // eslint-disable-next-line perfectionist/sort-objects, sort-keys
1460
1705
  args: [loggingEnabled, logOne, blankSpace],
1461
- }).compare()() // very very important
1706
+ }).compare()()
1462
1707
 
1463
- if (loggingEnabled) require("wormhole-interconnections") // wormhole
1708
+ if (loggingEnabled) {
1709
+ // Display mandatory wormhole message /
1710
+ require("wormhole-interconnections")
1711
+ }
1464
1712
  logger.log(
1465
1713
  c.cyan(
1466
1714
  `[falsejs] `.concat(
1467
1715
  concat(
1716
+ // eslint-disable-next-line no-use-before-define, new-cap
1468
1717
  StringValueof(thirteenResolver()),
1469
1718
  SPACE,
1470
1719
  "×",
1471
1720
  SPACE,
1721
+ // eslint-disable-next-line no-use-before-define, new-cap
1472
1722
  StringValueof(Two()),
1473
1723
  SPACE,
1474
1724
  "=",
1475
1725
  SPACE,
1726
+ // eslint-disable-next-line new-cap
1476
1727
  thirteen(Two()),
1477
1728
  ),
1478
1729
  ),
1479
1730
  ),
1480
1731
  )
1481
1732
 
1482
- // our users should know some basic info
1733
+ // Our users should know some basic info
1483
1734
 
1484
- // the os:
1735
+ // The OS
1736
+ // eslint-disable-next-line new-cap
1485
1737
  If(isWindows())
1738
+ // eslint-disable-next-line new-cap
1486
1739
  .Then(() => {
1487
1740
  // Windows
1488
1741
  logger.log(
@@ -1491,16 +1744,22 @@ if (isComputerOnFire()) {
1491
1744
  ),
1492
1745
  )
1493
1746
  })
1747
+ // eslint-disable-next-line new-cap
1494
1748
  .Else()
1749
+ // eslint-disable-next-line new-cap
1495
1750
  .If(isLinux())
1751
+ // eslint-disable-next-line new-cap
1496
1752
  .Then(() => {
1497
1753
  // Linux
1498
1754
  logger.log(
1499
1755
  clc.cyanBright(`[falsejs] Using Linux as current operating system`),
1500
1756
  )
1501
1757
  })
1758
+ // eslint-disable-next-line new-cap
1502
1759
  .Else()
1760
+ // eslint-disable-next-line new-cap
1503
1761
  .If(isOSX())
1762
+ // eslint-disable-next-line new-cap
1504
1763
  .Then(() => {
1505
1764
  // AppleOS (Darwin)
1506
1765
  logger.log(
@@ -1509,8 +1768,11 @@ if (isComputerOnFire()) {
1509
1768
  ),
1510
1769
  )
1511
1770
  })
1771
+ // eslint-disable-next-line new-cap
1512
1772
  .Else()
1773
+ // eslint-disable-next-line new-cap
1513
1774
  .If(isEqualTo(os.platform(), "aix"))
1775
+ // eslint-disable-next-line new-cap
1514
1776
  .Then(() => {
1515
1777
  // AIX??
1516
1778
  logger.log(
@@ -1519,8 +1781,11 @@ if (isComputerOnFire()) {
1519
1781
  ),
1520
1782
  )
1521
1783
  })
1784
+ // eslint-disable-next-line new-cap
1522
1785
  .Else()
1786
+ // eslint-disable-next-line new-cap
1523
1787
  .If(isFreeBSD())
1788
+ // eslint-disable-next-line new-cap
1524
1789
  .Then(() => {
1525
1790
  // FreeBSD
1526
1791
  logger.log(
@@ -1529,8 +1794,11 @@ if (isComputerOnFire()) {
1529
1794
  ),
1530
1795
  )
1531
1796
  })
1797
+ // eslint-disable-next-line new-cap
1532
1798
  .Else()
1799
+ // eslint-disable-next-line new-cap
1533
1800
  .If(isEqualTo(os.platform(), "openbsd"))
1801
+ // eslint-disable-next-line new-cap
1534
1802
  .Then(() => {
1535
1803
  // OpenBSD
1536
1804
  logger.log(
@@ -1539,8 +1807,11 @@ if (isComputerOnFire()) {
1539
1807
  ),
1540
1808
  )
1541
1809
  })
1810
+ // eslint-disable-next-line new-cap
1542
1811
  .Else()
1812
+ // eslint-disable-next-line new-cap
1543
1813
  .If(isEqualTo(os.platform(), "netbsd"))
1814
+ // eslint-disable-next-line new-cap
1544
1815
  .Then(() => {
1545
1816
  // NetBSD
1546
1817
  logger.log(
@@ -1549,14 +1820,21 @@ if (isComputerOnFire()) {
1549
1820
  ),
1550
1821
  )
1551
1822
  })
1823
+ // eslint-disable-next-line new-cap
1552
1824
  .Else()
1825
+ // eslint-disable-next-line new-cap
1553
1826
  .If(isEqualTo(os.platform(), "cygwin"))
1827
+ // eslint-disable-next-line new-cap
1554
1828
  .Then(() => {
1829
+ // eslint-disable-next-line capitalized-comments
1555
1830
  //cygwin
1556
1831
  logger.log(clc.cyanBright(`[falsejs] You are using Cygwin`))
1557
1832
  })
1833
+ // eslint-disable-next-line new-cap
1558
1834
  .Else()
1835
+ // eslint-disable-next-line new-cap
1559
1836
  .If(isEqualTo(os.platform(), "sunos"))
1837
+ // eslint-disable-next-line new-cap
1560
1838
  .Then(() => {
1561
1839
  // Solaris/SunOS
1562
1840
  logger.log(
@@ -1565,8 +1843,11 @@ if (isComputerOnFire()) {
1565
1843
  ),
1566
1844
  )
1567
1845
  })
1846
+ // eslint-disable-next-line new-cap
1568
1847
  .Else()
1848
+ // eslint-disable-next-line new-cap
1569
1849
  .If(isEqualTo(os.platform(), "android"))
1850
+ // eslint-disable-next-line new-cap
1570
1851
  .Then(() => {
1571
1852
  // Android
1572
1853
  logger.log(
@@ -1575,57 +1856,81 @@ if (isComputerOnFire()) {
1575
1856
  ),
1576
1857
  )
1577
1858
  })
1859
+ // eslint-disable-next-line new-cap
1578
1860
  .Else(() => {
1579
- logger.log(
1580
- clc.cyanBright(
1581
- `[falsejs] Even Node.js itself doesn't know your operating system.`,
1582
- ),
1583
- )
1861
+ logger.log(clc.cyanBright(`[falsejs] idk your operating system`))
1584
1862
  })
1585
1863
  /// I'm actually curious what more can we do with process and os?
1586
- // lets find out. hmm process.cpuusage whats that
1864
+ // Lets find out. hmm process.cpuusage whats that
1587
1865
  const usage = process.cpuUsage()
1588
1866
  logger.log(
1589
1867
  clc.cyanBright(
1868
+ // eslint-disable-next-line no-use-before-define
1590
1869
  getValueOfThisStringText(`[falsejs] User CPU Usage: ${usage.user}`),
1591
1870
  ),
1592
1871
  )
1593
1872
  logger.log(clc.cyanBright(`[falsejs] System CPU Usage: ${usage.system}`))
1594
- // lets calculate days of the week and months and days and years and stuff
1595
- if (isJanuary(Today))
1873
+ // Lets calculate days of the week and months and days and years and stuff
1874
+ if (isJanuary(Today)) {
1596
1875
  logger.log(clc.cyanBright(`[falsejs] The month is January`))
1597
- if (isFebruary(Today))
1876
+ }
1877
+ if (isFebruary(Today)) {
1598
1878
  logger.log(clc.cyanBright(`[falsejs] The month is February`))
1599
- if (isMarch(Today))
1879
+ }
1880
+ if (isMarch(Today)) {
1600
1881
  logger.log(clc.cyanBright(`[falsejs] The month is March`))
1601
- if (isApril(Today))
1882
+ }
1883
+ if (isApril(Today)) {
1602
1884
  logger.log(clc.cyanBright(`[falsejs] The month is April`))
1603
- if (isMay(Today)) logger.log(clc.cyanBright(`[falsejs] The month is May`))
1604
- if (isJune(Today))
1885
+ }
1886
+ if (isMay(Today)) {
1887
+ logger.log(clc.cyanBright(`[falsejs] The month is May`))
1888
+ }
1889
+ if (isJune(Today)) {
1605
1890
  logger.log(clc.cyanBright(`[falsejs] The month is June`))
1606
- if (isJuly(Today))
1891
+ }
1892
+ if (isJuly(Today)) {
1607
1893
  logger.log(clc.cyanBright(`[falsejs] The month is July`))
1608
- if (isAugust(Today))
1894
+ }
1895
+ if (isAugust(Today)) {
1609
1896
  logger.log(clc.cyanBright(`[falsejs] The month is August`))
1610
- if (isSeptember(Today))
1897
+ }
1898
+ if (isSeptember(Today)) {
1611
1899
  logger.log(clc.cyanBright(`[falsejs] The month is September`))
1612
- if (isOctober(Today))
1900
+ }
1901
+ if (isOctober(Today)) {
1613
1902
  logger.log(clc.cyanBright(`[falsejs] The month is October`))
1614
- if (isNovember(Today))
1903
+ }
1904
+ if (isNovember(Today)) {
1615
1905
  logger.log(clc.cyanBright(`[falsejs] The month is November`))
1616
- if (isDecember(Today))
1906
+ }
1907
+ if (isDecember(Today)) {
1617
1908
  logger.log(clc.cyanBright(`[falsejs] The month is December`))
1618
- if (isMonday()) logger.log(clc.cyanBright(`[falsejs] Today is Monday`))
1619
- if (isTuesday()) logger.log(clc.cyanBright(`[falsejs] Today is Tuesday`))
1620
- if (isWednesday())
1909
+ }
1910
+ if (isMonday()) {
1911
+ logger.log(clc.cyanBright(`[falsejs] Today is Monday`))
1912
+ }
1913
+ if (isTuesday()) {
1914
+ logger.log(clc.cyanBright(`[falsejs] Today is Tuesday`))
1915
+ }
1916
+ if (isWednesday()) {
1621
1917
  logger.log(clc.cyanBright(`[falsejs] Today is Wednesday`))
1622
- if (isThursday())
1918
+ }
1919
+ if (isThursday()) {
1623
1920
  logger.log(clc.cyanBright(`[falsejs] Today is Thursday`))
1624
- if (isFriday()) logger.log(clc.cyanBright(`[falsejs] Today is Friday`))
1625
- if (isSaturday())
1921
+ }
1922
+ if (isFriday()) {
1923
+ logger.log(clc.cyanBright(`[falsejs] Today is Friday`))
1924
+ }
1925
+ if (isSaturday()) {
1626
1926
  logger.log(clc.cyanBright(`[falsejs] Today is Saturday`))
1627
- if (isSunday()) logger.log(clc.cyanBright(`[falsejs] Today is Sunday`))
1628
- if (isWeekend()) logger.log(clc.cyanBright(`[falsejs] It's the weekend!`))
1927
+ }
1928
+ if (isSunday()) {
1929
+ logger.log(clc.cyanBright(`[falsejs] Today is Sunday`))
1930
+ }
1931
+ if (isWeekend()) {
1932
+ logger.log(clc.cyanBright(`[falsejs] It's the weekend!`))
1933
+ }
1629
1934
 
1630
1935
  logger.log(
1631
1936
  clc.cyanBright(
@@ -1642,19 +1947,27 @@ if (isComputerOnFire()) {
1642
1947
  generalConcat(`[falsejs] Random food emoji: `, randomFoodEmoji()),
1643
1948
  ),
1644
1949
  )
1950
+
1951
+ // Display a dolphin fact:
1952
+
1645
1953
  construct({
1646
1954
  target: TernaryCompare,
1955
+ // eslint-disable-next-line perfectionist/sort-objects, sort-keys
1647
1956
  args: [loggingEnabled, dolphinFact, noop3],
1648
1957
  }).compare()()
1649
1958
 
1650
- // lets do something async
1959
+ // Lets do something async
1651
1960
  if (shouldDoSomethingAsync) {
1961
+ // eslint-disable-next-line id-length
1652
1962
  doSomethingAsync(logger).then((l) => resultOfDoingSomethingAsync(l))
1653
1963
  }
1964
+ // eslint-disable-next-line new-cap
1654
1965
  If(not(isNumberOddOrEven)(random, FALSE))
1966
+ // eslint-disable-next-line new-cap
1655
1967
  .Then(() => {
1656
1968
  logger.log(clc.yellow(`[falsejs] Random number is not odd or even`))
1657
1969
  })
1970
+ // eslint-disable-next-line new-cap
1658
1971
  .Else(() => {
1659
1972
  logger.log(
1660
1973
  pc.green(
@@ -1663,29 +1976,41 @@ if (isComputerOnFire()) {
1663
1976
  )
1664
1977
  })
1665
1978
 
1666
- // is odd checks
1979
+ // Is odd checks
1980
+
1981
+ // eslint-disable-next-line new-cap
1667
1982
  If(logicalNot(isIsOdd(isOdd)))
1983
+ // eslint-disable-next-line new-cap
1668
1984
  .Then(() => {
1669
1985
  logger.log(clc.yellow(`[falsejs] isOdd is not isOdd.`))
1670
1986
  logger.log(clc.yellow(`[falsejs] That's weird`))
1671
1987
  })
1988
+ // eslint-disable-next-line new-cap
1672
1989
  .Else(n0p3)
1673
1990
 
1991
+ // eslint-disable-next-line new-cap
1674
1992
  If(isIsOdd(isOddAndrew))
1993
+ // eslint-disable-next-line new-cap
1675
1994
  .Then(() => {
1676
1995
  logger.log(pc.green(`[falsejs] Good for Andrew`))
1677
1996
  })
1997
+ // eslint-disable-next-line new-cap
1678
1998
  .Else(noop6)
1679
1999
 
2000
+ // eslint-disable-next-line new-cap
1680
2001
  If(isIsOdd(isOd))
2002
+ // eslint-disable-next-line new-cap
1681
2003
  .Then(() => {
1682
2004
  logger.log(
1683
2005
  pc.green(
1684
2006
  `[falsejs] Good for Monishadhanasekar (how do you pronounce that) (but bad for me because then it will throw an error if the input is not a numbr HELP)`,
1685
2007
  ),
2008
+ // eslint-disable-next-line no-inline-comments, no-warning-comments, sonarjs/todo-tag
1686
2009
  ) // TODO: Add pronunciaton
1687
2010
  })
2011
+ // eslint-disable-next-line new-cap
1688
2012
  .Else(() => {
2013
+ // eslint-disable-next-line capitalized-comments
1689
2014
  /*
1690
2015
  logger.log(
1691
2016
  getValueOfThisStringText(
@@ -1703,31 +2028,45 @@ if (isComputerOnFire()) {
1703
2028
  .Else(noop4())
1704
2029
  // sadly commentd out because is-odd-num is vulnerable.
1705
2030
  */
2031
+ // eslint-disable-next-line new-cap
1706
2032
  If(isIsOdd(isIntegerOdd))
2033
+ // eslint-disable-next-line new-cap
1707
2034
  .Then(() => {
1708
2035
  logger.log(pc.green(`[falsejs] Good for hoanduy1710`))
1709
2036
  })
2037
+ // eslint-disable-next-line new-cap
1710
2038
  .Else(noop2)
1711
2039
 
2040
+ // eslint-disable-next-line new-cap
1712
2041
  If(isIsOdd(noteven))
2042
+ // eslint-disable-next-line new-cap
1713
2043
  .Then(() => {
1714
2044
  logger.log(pc.green(`[falsejs] Good for DeaSTL`))
1715
2045
  })
2046
+ // eslint-disable-next-line new-cap
1716
2047
  .Else(noop3)
1717
2048
 
2049
+ // eslint-disable-next-line new-cap
1718
2050
  If(isIsOdd(isUneven))
2051
+ // eslint-disable-next-line new-cap
1719
2052
  .Then(() => {
1720
2053
  logger.log(pc.green(`[falsejs] Good for Robin`))
1721
2054
  })
2055
+ // eslint-disable-next-line new-cap
1722
2056
  .Else(noop7)
1723
2057
 
2058
+ // eslint-disable-next-line new-cap
1724
2059
  If(isIsOdd(numberKind.odd))
2060
+ // eslint-disable-next-line new-cap
1725
2061
  .Then(() => {
1726
2062
  logger.log(pc.green(`[falsejs] Good for goten`))
1727
2063
  })
2064
+ // eslint-disable-next-line new-cap
1728
2065
  .Else(noop8)
1729
2066
 
2067
+ // eslint-disable-next-line new-cap
1730
2068
  If(isIsOdd(isOddFaster))
2069
+ // eslint-disable-next-line new-cap
1731
2070
  .Then(() => {
1732
2071
  logger.log(
1733
2072
  pc.green(
@@ -1735,68 +2074,94 @@ if (isComputerOnFire()) {
1735
2074
  ),
1736
2075
  )
1737
2076
  })
2077
+ // eslint-disable-next-line new-cap
1738
2078
  .Else(noop9)
1739
2079
 
2080
+ // eslint-disable-next-line new-cap
1740
2081
  If(isIsOdd(gabrielBrotasIsOdd.isOdd))
2082
+ // eslint-disable-next-line new-cap
1741
2083
  .Then(() => {
1742
2084
  logger.log(pc.green(`[falsejs] Good for Gabriel`))
1743
2085
  })
2086
+ // eslint-disable-next-line new-cap
1744
2087
  .Else(blankSpace)
1745
2088
 
2089
+ // eslint-disable-next-line new-cap
1746
2090
  If(isIsOdd(returnIfOddNumber))
2091
+ // eslint-disable-next-line new-cap
1747
2092
  .Then(() => {
1748
2093
  logger.log(pc.green(`[falsejs] Good for iamrahulpatel`))
1749
2094
  })
2095
+ // eslint-disable-next-line new-cap
1750
2096
  .Else(blankSpaceNoop)
1751
2097
 
2098
+ // eslint-disable-next-line new-cap
1752
2099
  If(isIsOdd(numberIsOdd))
2100
+ // eslint-disable-next-line new-cap
1753
2101
  .Then(() => {
1754
2102
  logger.log(pc.green(`[falsejs] Good for Scott`))
1755
2103
  })
2104
+ // eslint-disable-next-line new-cap
1756
2105
  .Else(asyncUtilNoop)
1757
2106
 
2107
+ // eslint-disable-next-line new-cap
1758
2108
  If(isIsOdd(isNumOdd))
2109
+ // eslint-disable-next-line new-cap
1759
2110
  .Then(() => {
1760
2111
  logger.log(pc.green(`[falsejs] Good for Shivam`))
1761
2112
  })
2113
+ // eslint-disable-next-line new-cap
1762
2114
  .Else(() => noopGenerator().next())
1763
2115
 
2116
+ // eslint-disable-next-line new-cap
1764
2117
  If(isIsOdd(isOddNumber))
2118
+ // eslint-disable-next-line new-cap
1765
2119
  .Then(() => {
1766
2120
  logger.log(pc.green(`[falsejs] Good for LinkDev`))
1767
2121
  })
2122
+ // eslint-disable-next-line new-cap
1768
2123
  .Else(fjNoop)
1769
2124
 
2125
+ // eslint-disable-next-line new-cap
1770
2126
  If(isIsOdd(isNumberOdd))
2127
+ // eslint-disable-next-line new-cap
1771
2128
  .Then(() => {
1772
2129
  logger.log(pc.green(`[falsejs] Good for aliraza401`))
1773
2130
  })
2131
+ // eslint-disable-next-line new-cap
1774
2132
  .Else(lodashNoop)
1775
2133
 
2134
+ // eslint-disable-next-line new-cap
1776
2135
  If(isIsOdd(isThisNumberOdd))
2136
+ // eslint-disable-next-line new-cap
1777
2137
  .Then(() => {
1778
2138
  logger.log(pc.green(`[falsejs] Good for makogai`))
1779
2139
  })
2140
+ // eslint-disable-next-line new-cap
1780
2141
  .Else(lodash_Noop)
1781
2142
 
1782
- // now let's run some lua code
2143
+ // Now let's run some lua code
1783
2144
  const myLuaScript = `
1784
- local message = "[falsejs] Bye from Lua!"
2145
+ local message = "[falsejs] This is from Lua!"
1785
2146
  print(message)
1786
2147
  `
1787
2148
  const parsedLua = luaParser.parse(myLuaScript)
1788
- if (loggingEnabled) luaInterpreter.interpret(parsedLua) // run our lua code when the program ends
2149
+ // Run our lua code
2150
+ if (loggingEnabled) {
2151
+ luaInterpreter.interpret(parsedLua)
2152
+ }
1789
2153
 
1790
2154
  logger.log(
1791
2155
  colors.red(
1792
2156
  vValue(
1793
2157
  isuseless(
2158
+ // eslint-disable-next-line no-use-before-define, new-cap
1794
2159
  StringValueof(lowercase(`[falsejs] This is in lowercase`)),
1795
2160
  ),
1796
2161
  ),
1797
2162
  ),
1798
2163
  )
1799
- // okay we need to calculate false
2164
+ // Okay we need to calculate false
1800
2165
 
1801
2166
  if (not(isAprilFools)()) {
1802
2167
  if (disableAprilFoolsSideEffects) {
@@ -1808,33 +2173,40 @@ if (isComputerOnFire()) {
1808
2173
  ),
1809
2174
  )
1810
2175
  return exit(one)
2176
+ // eslint-disable-next-line no-else-return
1811
2177
  } else {
1812
2178
  logger.log(
1813
2179
  clc.yellow(
1814
2180
  `[falsejs] No error was thrown because strict disable April Fools side effects checking was disabled`,
1815
2181
  ),
1816
2182
  )
1817
- // call the _getFalse function
2183
+ // Call the _getFalse function
1818
2184
  const daresult = doop(
1819
2185
  _getFalse,
1820
2186
  random,
2187
+ // eslint-disable-next-line no-use-before-define
1821
2188
  calculateRandomLetterOrNumber(loggingEnabled),
1822
2189
  loggingEnabled,
1823
2190
  logger,
1824
2191
  )
2192
+ // eslint-disable-next-line prefer-destructuring
1825
2193
  result = daresult.result
2194
+ // eslint-disable-next-line prefer-destructuring
1826
2195
  succeededAttempt = daresult.succeededAttempt
1827
2196
  }
1828
2197
  } else {
1829
- // call the _getFalse function
2198
+ // Call the _getFalse function
1830
2199
  const daresult = doop(
1831
2200
  _getFalse,
1832
2201
  random,
2202
+ // eslint-disable-next-line no-use-before-define
1833
2203
  calculateRandomLetterOrNumber(loggingEnabled),
1834
2204
  loggingEnabled,
1835
2205
  logger,
1836
2206
  )
2207
+ // eslint-disable-next-line prefer-destructuring
1837
2208
  result = daresult.result
2209
+ // eslint-disable-next-line prefer-destructuring
1838
2210
  succeededAttempt = daresult.succeededAttempt
1839
2211
  }
1840
2212
  } else {
@@ -1881,10 +2253,11 @@ if (isComputerOnFire()) {
1881
2253
  `[falsejs] Please file an issue on his GitHub repo for GetIntrinsic("%Boolean") not working.`,
1882
2254
  ),
1883
2255
  )
1884
- result = Boolean(result) // now it's a boolean
2256
+ // Now it's a boolean
2257
+ result = Boolean(result)
1885
2258
  logger.log(
1886
2259
  pc.green(
1887
- `[falsejs] Check one of validation completed successfullly with one error corrected.`,
2260
+ `[falsejs] Check one of validation completed successfully with one error corrected.`,
1888
2261
  ),
1889
2262
  )
1890
2263
  } else {
@@ -1892,6 +2265,7 @@ if (isComputerOnFire()) {
1892
2265
  throwError(
1893
2266
  construct({
1894
2267
  target: FalseJSValidationFailedToPassError,
2268
+ // eslint-disable-next-line perfectionist/sort-objects, sort-keys
1895
2269
  args: ["Validation failed to pass"],
1896
2270
  }),
1897
2271
  )
@@ -1955,6 +2329,7 @@ if (isComputerOnFire()) {
1955
2329
  ),
1956
2330
  )
1957
2331
 
2332
+ // eslint-disable-next-line no-underscore-dangle, new-cap, no-useless-assignment, unicorn/prevent-abbreviations, sonarjs/no-dead-store
1958
2333
  let CoercionGuardArrayRef___ = Null()
1959
2334
  const iterationCount = jQuery.multiply(
1960
2335
  jQuery.multiply(thirteenResolver(), thirteenResolver()),
@@ -1967,21 +2342,25 @@ if (isComputerOnFire()) {
1967
2342
  ),
1968
2343
  )
1969
2344
 
2345
+ // eslint-disable-next-line id-length, unicorn/prevent-abbreviations
1970
2346
  for (let i = zr0(); isLessThan(i, iterationCount); i = add(i, one)) {
1971
2347
  CoercionGuardArrayRef___ = construct({
1972
2348
  target: $Array,
2349
+ // eslint-disable-next-line perfectionist/sort-objects, sort-keys
1973
2350
  args: [iterationCount],
1974
2351
  }).fill(useGarbage.string())
1975
2352
 
2353
+ // eslint-disable-next-line new-cap
1976
2354
  const garbageCollector = jQuery.multiply(MathSqrt(i), i)
1977
2355
 
1978
2356
  if (isGreaterThan(garbageCollector, jQuery.multiply(i, i))) {
2357
+ // Throws an error and passes it into indexof for no reason
1979
2358
  CoercionGuardArrayRef___.indexOf(
1980
2359
  immediateError(
1981
2360
  "[falsejs:ie5] IE5 Simulation error: Impossible math detected",
1982
2361
  ERROR.BaseError,
1983
2362
  ),
1984
- ) // throws an error and passes it into indexof for no reason
2363
+ )
1985
2364
  return exit(one)
1986
2365
  }
1987
2366
  }
@@ -1994,14 +2373,15 @@ if (isComputerOnFire()) {
1994
2373
 
1995
2374
  const zeroValue = returnZero({
1996
2375
  method: ZeroCalculationMethod.CreashaksOrganzine,
2376
+ // eslint-disable-next-line perfectionist/sort-objects, sort-keys
1997
2377
  loggingEnabled: FALSE,
1998
2378
  })
2379
+ // eslint-disable-next-line new-cap
1999
2380
  const nullValue = Null()
2000
2381
 
2001
2382
  if (isEqualTo(result, zeroValue)) {
2002
- // biome-ignore lint/suspicious/noTsIgnore: reason blabal
2003
- // @ts-ignore
2004
- if (result === zeroValue) {
2383
+ // eslint-disable-next-line unicorn/no-lonely-if
2384
+ if (strictlyEqual(result, zeroValue)) {
2005
2385
  immediateError(
2006
2386
  `[falsejs:ie5] Critical Error: IE5-like strict coercion detected! Aborting.`,
2007
2387
  )
@@ -2033,9 +2413,11 @@ if (isComputerOnFire()) {
2033
2413
 
2034
2414
  const auditIterationCount = lolite.multiply(
2035
2415
  jQuery.add(
2416
+ // eslint-disable-next-line no-use-before-define
2036
2417
  add($Number(complexBooleanWithBias(logger)), zr0()),
2037
2418
  returnZero({
2038
2419
  method: ZeroCalculationMethod.CreashaksOrganzine,
2420
+ // eslint-disable-next-line perfectionist/sort-objects, sort-keys
2039
2421
  loggingEnabled: FALSE,
2040
2422
  }),
2041
2423
  ),
@@ -2043,6 +2425,7 @@ if (isComputerOnFire()) {
2043
2425
  )
2044
2426
  let errorCount = returnZero({
2045
2427
  method: ZeroCalculationMethod.NumberPrototypeValue,
2428
+ // eslint-disable-next-line perfectionist/sort-objects, sort-keys
2046
2429
  loggingEnabled: FALSE,
2047
2430
  })
2048
2431
 
@@ -2053,10 +2436,12 @@ if (isComputerOnFire()) {
2053
2436
  )
2054
2437
 
2055
2438
  for (
2439
+ // eslint-disable-next-line id-length, unicorn/prevent-abbreviations
2056
2440
  let i = zr0();
2057
2441
  isLessThan(i, auditIterationCount);
2058
2442
  i = lolite.add(i, one)
2059
2443
  ) {
2444
+ // eslint-disable-next-line perfectionist/sort-objects, sort-keys
2060
2445
  const valueToCheck = construct({ target: $String, args: [i] })
2061
2446
  const isCoercedToFalse = isEqualTo(valueToCheck, result)
2062
2447
 
@@ -2083,10 +2468,13 @@ if (isComputerOnFire()) {
2083
2468
  ),
2084
2469
  )
2085
2470
 
2471
+ // Using new keyword because why not
2472
+ // eslint-disable-next-line 10x-engineering/no-new
2086
2473
  const dom = new JSDOM(
2087
2474
  `<!DOCTYPE html><html><body><p id="main">This is the body.</p><layer id="${getDHTMLString()}" z-index="99">A Netscape Layer!</layer><script>var isDHTML = 9==9;</script></body></html>`,
2088
- ) // using new keyword because
2475
+ )
2089
2476
 
2477
+ // eslint-disable-next-line id-length, no-shadow
2090
2478
  const $ = cheerio.load(dom.serialize())
2091
2479
 
2092
2480
  const layerElement = $("layer")
@@ -2151,26 +2539,41 @@ if (isComputerOnFire()) {
2151
2539
  "[falsejs:presto] Instantiating full-featured JSDOM environment...",
2152
2540
  ),
2153
2541
  )
2542
+
2543
+ // Using more new keyword just because
2544
+
2545
+ /* eslint-disable 10x-engineering/no-new */
2546
+ /* eslint-disable perfectionist/sort-objects */
2154
2547
  const dom = new JSDOM(`<!DOCTYPE html><html><body></body></html>`, {
2548
+ // eslint-disable-next-line sonarjs/no-clear-text-protocols
2155
2549
  url: "http://opera-presto-compatibility-check.local/",
2156
- referrer: "http://netscape-dhtml-audit.local/", // Link to Netscape for extra flavor
2550
+ // eslint-disable-next-line sonarjs/no-clear-text-protocols, sort-keys
2551
+ referrer: "http://netscape-dhtml-audit.local/",
2552
+ // eslint-disable-next-line sort-keys
2157
2553
  contentType: "text/html",
2158
2554
  includeNodeLocations: whatevTrueValue,
2159
2555
  runScripts: "outside-only",
2160
2556
  })
2161
- const { window: window_ } = dom // Destructure the actual window object
2557
+ /* eslint-enable perfectionist/sort-objects */
2558
+ const { window: window_ } = dom
2162
2559
 
2163
2560
  const startTime = new $Date().getTime()
2561
+
2562
+ /* eslint-enable 10x-engineering/no-new */
2164
2563
  for (
2564
+ // eslint-disable-next-line id-length, unicorn/prevent-abbreviations
2165
2565
  let i = returnZero({
2166
2566
  method: ZeroCalculationMethod.CreashaksOrganzine,
2567
+ // eslint-disable-next-line perfectionist/sort-objects, sort-keys
2167
2568
  loggingEnabled: FALSE,
2168
2569
  });
2169
2570
  isLessThan(i, delayIterations);
2170
2571
  i = add(i, one)
2171
2572
  ) {
2172
2573
  const renderingEvaluation = _.multiply(
2574
+ // eslint-disable-next-line new-cap, no-underscore-dangle
2173
2575
  MathSin(lolite.__private.multiplyFallback(MathRandom(), i)),
2576
+ // eslint-disable-next-line new-cap
2174
2577
  MathCos(jQuery.multiply(MathRandom(), i)),
2175
2578
  )
2176
2579
  if (
@@ -2186,6 +2589,8 @@ if (isComputerOnFire()) {
2186
2589
  return exit(one)
2187
2590
  }
2188
2591
  }
2592
+ // Using new keyword AGAIN because
2593
+ // eslint-disable-next-line 10x-engineering/no-new
2189
2594
  const endTime = new $Date().getTime()
2190
2595
  const blockingTime = lolite.subtract(endTime, startTime)
2191
2596
 
@@ -2218,6 +2623,7 @@ if (isComputerOnFire()) {
2218
2623
  typeOf(window_.opera),
2219
2624
  require("@extremejs/utils").TYPE.OBJECT,
2220
2625
  ),
2626
+ // eslint-disable-next-line new-cap
2221
2627
  notStrictlyEqual(window_.opera, Null()),
2222
2628
  )
2223
2629
  ) {
@@ -2254,27 +2660,38 @@ if (isComputerOnFire()) {
2254
2660
 
2255
2661
  if (loggingEnabled) {
2256
2662
  const message = "thanks for using this package"
2663
+ // eslint-disable-next-line unicorn/prefer-spread
2257
2664
  let thesay = tacoWrap(emoji100.concat(SPACE, owoifyx(message)))
2665
+ // eslint-disable-next-line unicorn/prefer-spread
2258
2666
  const thesay2 = tacoWrap(emoji100.concat(SPACE, message))
2259
2667
  const thesay3 = tacoWrap(
2668
+ // eslint-disable-next-line unicorn/prefer-spread
2260
2669
  emoji100.concat(SPACE, uwuifier.uwuifySentence(message)),
2261
2670
  )
2262
- if (isEqualTo(thesay, thesay2)) thesay = thesay3
2263
- if (loggingEnabled) sayIt(thesay) // give our users a cute message so we can get their support
2264
- // string interpelation
2671
+ if (isEqualTo(thesay, thesay2)) {
2672
+ thesay = thesay3
2673
+ }
2674
+ // Give our users a cute message so we can get their support (eslint disable comment because for some reason sonarjs thinks logging is always enabeled)
2675
+ // eslint-disable-next-line sonarjs/no-gratuitous-expressions
2676
+ if (loggingEnabled) {
2677
+ sayIt(thesay)
2678
+ }
2679
+ // String interpelation
2265
2680
  ltc(
2266
- `${clc.cyanBright(`[falsejs]`)} ${chalk.red("Chalk")}-${chalk.green(
2681
+ `${clc.cyanBright("[falsejs]")} ${chalk.red("Chalk")}-${chalk.green(
2267
2682
  "ulated",
2268
2683
  )} ${chalk.yellow("the")} ${chalk.blue("boolean")} ${chalk.magenta(
2269
- `value`,
2270
- )} ${chalk.cyan(`false`)}`
2684
+ "value",
2685
+ )} ${chalk.cyan("false")}`
2271
2686
  .concat(SPACE)
2687
+ // eslint-disable-next-line unicorn/prefer-spread
2272
2688
  .concat(emoji100),
2273
2689
  )
2274
2690
 
2275
2691
  if (logicalNot(isNil(succeededAttempt))) {
2276
2692
  ltc(
2277
2693
  concat(
2694
+ // eslint-disable-next-line unicorn/prefer-spread
2278
2695
  clc.cyanBright(`[falsejs]`).concat(SPACE),
2279
2696
  colors.magenta(
2280
2697
  generalConcat(
@@ -2295,18 +2712,21 @@ if (isComputerOnFire()) {
2295
2712
  }
2296
2713
  ltc(
2297
2714
  generalConcat(
2715
+ // eslint-disable-next-line unicorn/prefer-spread
2298
2716
  clc.cyanBright(`[falsejs]`).concat(SPACE),
2299
2717
  colors.rainbow(`Thanks for using this package`),
2300
2718
  ),
2301
2719
  )
2302
2720
  ltc(
2303
2721
  concat(
2722
+ // eslint-disable-next-line unicorn/prefer-spread
2304
2723
  clc.cyanBright(`[falsejs]`).concat(SPACE),
2305
2724
  colors.random(`I really appreciate it`),
2306
2725
  ),
2307
2726
  )
2308
2727
  ltc(
2309
2728
  generalConcat(
2729
+ // eslint-disable-next-line unicorn/prefer-spread
2310
2730
  clc.cyanBright(`[falsejs]`).concat(SPACE),
2311
2731
  colors.america(`Star the repo and follow me on GitHub: `),
2312
2732
  ),
@@ -2314,47 +2734,61 @@ if (isComputerOnFire()) {
2314
2734
  ltc(
2315
2735
  clc
2316
2736
  .cyanBright(`[falsejs]`)
2737
+ // eslint-disable-next-line unicorn/prefer-spread
2317
2738
  .concat(SPACE, chalk.underline("https://github.com/tj-commits")),
2318
2739
  )
2319
2740
  ltc(
2320
2741
  clc
2321
2742
  .cyanBright(`[falsejs]`)
2743
+ // eslint-disable-next-line unicorn/prefer-spread
2322
2744
  .concat(SPACE, chalk.underline("https://github.com/10xly/FalseJS")),
2323
2745
  )
2324
2746
  ltc(
2325
2747
  clc
2326
2748
  .cyanBright(`[falsejs]`)
2749
+ // eslint-disable-next-line unicorn/prefer-spread
2327
2750
  .concat(
2328
2751
  SPACE,
2329
2752
  clc.cyanBright(`And a very big random number is`),
2330
2753
  SPACE,
2331
2754
  )
2755
+ // eslint-disable-next-line unicorn/prefer-spread
2332
2756
  .concat(
2333
2757
  `${colors.rainbow(
2334
2758
  numberFormatter.format(
2759
+ // eslint-disable-next-line new-cap
2335
2760
  MathRound(
2336
- surpriseArray.reduce((v, _, i, a) => {
2337
- return jQuery.add(v, a.getMember(i))
2338
- }),
2761
+ // eslint-disable-next-line unicorn/no-array-reduce, id-length, no-shadow, unicorn/prevent-abbreviations, max-params
2762
+ surpriseArray.reduce((v, _, i, a) =>
2763
+ jQuery.add(v, a.getMember(i)),
2764
+ ),
2339
2765
  ),
2340
2766
  ),
2341
2767
  )}`,
2342
2768
  ),
2343
2769
  )
2344
2770
  ltc(
2345
- `${clc.cyanBright(`[falsejs]`).concat(SPACE)}${c.red(
2346
- `False`,
2347
- )}${c.green(`JS`)}`,
2771
+ // eslint-disable-next-line unicorn/prefer-spread
2772
+ `${clc.cyanBright("[falsejs]").concat(SPACE)}${c.red(
2773
+ "False",
2774
+ )}${c.green("JS")}`,
2348
2775
  )
2349
2776
  ltc(blankSpaces)
2350
2777
  }
2351
2778
 
2352
2779
  if (logicalNot(globalObj.FalseJSTelemetryOptOut)) {
2353
- sendTelemetry(succeededAttempt, os.platform(), process.version, process.cpuUsage())
2780
+ // eslint-disable-next-line no-use-before-define
2781
+ sendTelemetry(
2782
+ succeededAttempt,
2783
+ os.platform(),
2784
+ process.version,
2785
+ process.cpuUsage(),
2786
+ )
2354
2787
  }
2355
2788
  return result
2356
2789
  }
2357
2790
 
2791
+ // eslint-disable-next-line max-lines-per-function, max-statements
2358
2792
  functions.ReturnFalse = (
2359
2793
  enableLogging = NO,
2360
2794
  shouldDoSomethingAsync = NO,
@@ -2363,8 +2797,10 @@ if (isComputerOnFire()) {
2363
2797
  definitelyDisableAprilFoolsSideEffects = NO,
2364
2798
  strictDisableAprilFoolsSideEffectsCheck = YES,
2365
2799
  compatibilityMode = COMPATIBILITY_MODE.NONE,
2800
+
2801
+ // eslint-disable-next-line max-params, consistent-return
2366
2802
  ) => {
2367
- // validate our values
2803
+ // Validate our values
2368
2804
  if (
2369
2805
  and(
2370
2806
  not(isEqualTo)(enableLogging, NO),
@@ -2457,7 +2893,7 @@ if (isComputerOnFire()) {
2457
2893
  errorType: ERROR.TypeError,
2458
2894
  })
2459
2895
  }
2460
- // let's say hello to our users and inform them logging enabled if it is
2896
+ // Let's say hello to our users and inform them logging enabled if it is
2461
2897
  if (
2462
2898
  isEqualTo(
2463
2899
  isTrue(
@@ -2468,10 +2904,11 @@ if (isComputerOnFire()) {
2468
2904
  )
2469
2905
  ) {
2470
2906
  ltc(clc.cyanBright(`[falsejs] Logging enabled`))
2471
- hello({ username, age: "it's called FalseJS!" })
2907
+ hello({ age: "it's called FalseJS!", username })
2472
2908
 
2473
2909
  mGenbaneko.say(clc.redBright(meow()))
2474
- require("greenlantern") // Hello World
2910
+ // Hello World
2911
+ require("greenlantern")
2475
2912
  ltc(clc.cyanBright(`[falsejs] Using Lodash version ${_.VERSION}`))
2476
2913
  ltc(
2477
2914
  clc.cyanBright(
@@ -2486,8 +2923,9 @@ if (isComputerOnFire()) {
2486
2923
  ltc(clc.cyanBright(`[falsejs] Using Axios version ${axios.VERSION}`))
2487
2924
  ltc(clc.cyanBright(`[falsejs] Using React version ${React.version}`))
2488
2925
  }
2489
- // deduce a random number
2926
+ // Deduce a random number
2490
2927
  const randomNumber = add(
2928
+ // eslint-disable-next-line new-cap
2491
2929
  MathFloor(lolite.multiply(MathRandom(), numberOneHundred)),
2492
2930
  one,
2493
2931
  )
@@ -2497,18 +2935,18 @@ if (isComputerOnFire()) {
2497
2935
  { enableLogging: yesNo.parse(enableLogging) },
2498
2936
  "enableLogging",
2499
2937
  ),
2500
- equal(Bro.TOTALLY, trueComparison.compare())
2501
- ? Bro.TOTALLY
2502
- : trueComparison.compare(),
2938
+ // eslint-disable-next-line no-ternary
2939
+ equal(t(), trueComparison.compare()) ? t() : trueComparison.compare(),
2503
2940
  )
2504
2941
  ) {
2505
2942
  ltc(
2506
- clc.cyanBright(`[falsejs] Random number ${randomNumber} calculated`), // lets inform our users if they have loggineanbled
2943
+ clc.cyanBright(`[falsejs] Random number ${randomNumber} calculated`),
2507
2944
  )
2508
2945
  ltc(
2509
2946
  clc.cyanBright(
2510
2947
  `[falsejs] Doing something async ${construct({
2511
2948
  target: TernaryCompare,
2949
+ // eslint-disable-next-line perfectionist/sort-objects, sort-keys
2512
2950
  args: [
2513
2951
  yesNo.parse(shouldDoSomethingAsync),
2514
2952
  "enabled",
@@ -2521,6 +2959,7 @@ if (isComputerOnFire()) {
2521
2959
  clc.cyanBright(
2522
2960
  `[falsejs] Doing something async with is-ten-thousand ${construct({
2523
2961
  target: TernaryCompare,
2962
+ // eslint-disable-next-line perfectionist/sort-objects, sort-keys
2524
2963
  args: [
2525
2964
  yesNo.parse(shouldDoSomethingAsyncWithIsTenThousand),
2526
2965
  "enabled",
@@ -2532,9 +2971,13 @@ if (isComputerOnFire()) {
2532
2971
  }
2533
2972
  const loggingEnabled = enableLogging
2534
2973
  const logger = {
2974
+ // eslint-disable-next-line id-length
2535
2975
  log(l) {
2536
- if (isEqualTo(trueComparison.compare(), yesNo.parse(loggingEnabled)))
2976
+ if (
2977
+ isEqualTo(trueComparison.compare(), yesNo.parse(loggingEnabled))
2978
+ ) {
2537
2979
  ltc(l)
2980
+ }
2538
2981
  },
2539
2982
  }
2540
2983
  if (not(yesNo.parse)(strictDisableAprilFoolsSideEffectsCheck)) {
@@ -2557,6 +3000,7 @@ if (isComputerOnFire()) {
2557
3000
  _.constant(
2558
3001
  underscore.constant(
2559
3002
  doop(
3003
+ /* eslint-disable capitalized-comments, no-inline-comments */
2560
3004
  _calculateFalse,
2561
3005
  randomNumber, // random number
2562
3006
  yesNo.parse(enableLogging), // eanble logging
@@ -2574,6 +3018,7 @@ if (isComputerOnFire()) {
2574
3018
  strictDisableAprilFoolsSideEffectsCheck,
2575
3019
  ),
2576
3020
  compatibilityMode,
3021
+ /* eslint-enable capitalized-comments, no-inline-comments */
2577
3022
  ),
2578
3023
  )(),
2579
3024
  )(),
@@ -2588,62 +3033,83 @@ if (isComputerOnFire()) {
2588
3033
  ),
2589
3034
  )
2590
3035
  }
3036
+ // eslint-disable-next-line no-underscore-dangle
2591
3037
  variableHolder._FalseJSMainFunctionWotDoesFunctionality =
2592
3038
  functions.ReturnFalse
2593
3039
 
2594
- // now lets define some helper fufnctions
2595
- // just some weaird boolean functions
3040
+ // Now lets define some helper fufnctions
3041
+ //Jjust some weaird boolean functions
2596
3042
 
3043
+ // eslint-disable-next-line max-lines-per-function
2597
3044
  function randomBoolean(biasThreshold, logger) {
3045
+ // eslint-disable-next-line new-cap
2598
3046
  const randomValue = MathRandom()
2599
3047
  logger.log(
2600
3048
  clc.cyanBright(`[falsejs] Random number ${randomValue} calculated`),
2601
3049
  )
2602
3050
  const binaryString = jQuery
3051
+ // eslint-disable-next-line 10x-engineering/no-operators, sonarjs/no-identical-expressions
2603
3052
  .multiply(randomValue, (five() + five()) ** (five() + five() / five()))
3053
+ // eslint-disable-next-line 10x-engineering/no-tostring, new-cap
2604
3054
  .toString(Two())
2605
3055
  const bitMask =
3056
+ // eslint-disable-next-line 10x-engineering/no-operators, sonarjs/no-identical-expressions
2606
3057
  five() * (five() + (five() - (five() / five() + five() / five()))) +
3058
+ // eslint-disable-next-line 10x-engineering/no-operators, sonarjs/no-identical-expressions
2607
3059
  five() / five() +
3060
+ // eslint-disable-next-line 10x-engineering/no-operators, sonarjs/no-identical-expressions, no-inline-comments, capitalized-comments
2608
3061
  five() / five() // the meaning of life
2609
3062
  const bitResult =
3063
+ // eslint-disable-next-line no-bitwise, 10x-engineering/no-operators, unicorn/prefer-number-properties
2610
3064
  parseInt(
2611
3065
  binaryString.slice(
2612
3066
  returnZero({
2613
3067
  method: ZeroCalculationMethod.CreashaksOrganzine,
3068
+ // eslint-disable-next-line perfectionist/sort-objects, sort-keys
2614
3069
  loggingEnabled: logger.enableLogging,
2615
3070
  }),
2616
3071
  six(),
2617
3072
  ),
3073
+ // eslint-disable-next-line new-cap
2618
3074
  Two(),
2619
3075
  ) ^ bitMask
3076
+ // eslint-disable-next-line 10x-engineering/no-tostring
2620
3077
  const segment = bitResult.toString(sixteen).slice(
2621
3078
  returnZero({
2622
3079
  method: ZeroCalculationMethod.CreashaksOrganzine,
3080
+ // eslint-disable-next-line perfectionist/sort-objects, sort-keys
2623
3081
  loggingEnabled: logger.enableLogging,
2624
3082
  }),
2625
3083
  one,
2626
3084
  )
2627
- const mappedValue = parseInt(segment, sixteen) % Two()
3085
+ // eslint-disable-next-line unicorn/prefer-number-properties, new-cap
3086
+ const mappedValue = lolite.modulo(parseInt(segment, sixteen), Two())
2628
3087
  const biasedRandomValue = construct({
2629
3088
  target: TernaryCompare,
3089
+ // eslint-disable-next-line perfectionist/sort-objects, sort-keys
2630
3090
  args: [
2631
- MathRandom() < biasThreshold,
3091
+ // eslint-disable-next-line new-cap
3092
+ isLessThan(MathRandom(), biasThreshold),
2632
3093
  one,
2633
3094
  returnZero({
2634
3095
  method: ZeroCalculationMethod.CreashaksOrganzine,
3096
+ // eslint-disable-next-line perfectionist/sort-objects, sort-keys
2635
3097
  loggingEnabled: logger.enableLogging,
2636
3098
  }),
2637
3099
  ],
2638
3100
  }).compare()
2639
3101
 
3102
+ // eslint-disable-next-line new-cap
2640
3103
  const value = $.divide(add(mappedValue, biasedRandomValue), Two())
2641
3104
 
3105
+ // eslint-disable-next-line 10x-engineering/no-operators, sonarjs/no-identical-expressions
2642
3106
  return value >= five() / five() / (five() / five() + five() / five())
2643
3107
  }
2644
3108
 
3109
+ // eslint-disable-next-line max-lines-per-function, max-statements
2645
3110
  function complexBooleanWithBias(logger) {
2646
3111
  // Generate a pseudo-random number between 0 and 1
3112
+ // eslint-disable-next-line new-cap
2647
3113
  const randomValue = MathRandom()
2648
3114
 
2649
3115
  logger.log(
@@ -2651,113 +3117,168 @@ if (isComputerOnFire()) {
2651
3117
  )
2652
3118
 
2653
3119
  // Convert the random number to a high-precision string and manipulate it
2654
- const highPrecisionString = (
2655
- randomValue *
2656
- (five() + five()) **
2657
- (five() + (five() - (five() / five() + five() / five())))
2658
- ).toFixed(zr0())
3120
+ const highPrecisionString =
3121
+ (
3122
+ // eslint-disable-next-line 10x-engineering/no-operators
3123
+ randomValue *
3124
+ // eslint-disable-next-line 10x-engineering/no-operators
3125
+ (five() + five()) **
3126
+ // eslint-disable-next-line 10x-engineering/no-operators, sonarjs/no-identical-expressions
3127
+ (five() + (five() - (five() / five() + five() / five())))
3128
+ ).toFixed(zr0())
2659
3129
 
2660
3130
  // Perform a base conversion
3131
+ // eslint-disable-next-line unicorn/prefer-number-properties, 10x-engineering/no-tostring
2661
3132
  const baseConverted = parseInt(highPrecisionString, ten).toString(
3133
+ // eslint-disable-next-line 10x-engineering/no-operators, sonarjs/no-identical-expressions
2662
3134
  (five() + (five() / five() + five() / five())) * five() +
3135
+ // eslint-disable-next-line 10x-engineering/no-operators, sonarjs/no-identical-expressions
2663
3136
  five() / five(),
2664
3137
  )
2665
3138
 
2666
3139
  // Calculate a hash-like value using trigonometric functions
2667
3140
  const trigValue =
3141
+ // eslint-disable-next-line unicorn/prefer-number-properties, 10x-engineering/no-operators
2668
3142
  parseFloat(
3143
+ // eslint-disable-next-line unicorn/prefer-number-properties, 10x-engineering/no-operators
2669
3144
  parseFloat(add("0.", baseConverted)) *
3145
+ // eslint-disable-next-line 10x-engineering/no-operators, sonarjs/no-identical-expressions
2670
3146
  (five() + (five() / five() + five() / five())) *
2671
3147
  five() +
3148
+ // eslint-disable-next-line 10x-engineering/no-operators, sonarjs/no-identical-expressions
2672
3149
  five() / five(),
2673
3150
  ) *
2674
3151
  PI *
3152
+ // eslint-disable-next-line new-cap
2675
3153
  Two()
2676
3154
 
2677
3155
  // Determine if this value is close to a specific fraction
2678
3156
  const isCloseToFraction =
2679
- MathAbs(
2680
- trigValue - five() / five() / (five() / five() + five() / five()),
2681
- ) <
2682
- five() / five() / (five() + five()) +
2683
- (five() - (five() / five() + five() / five())) /
2684
- (five() * (five() * (five() - five() / five())))
3157
+ isLessThan(
3158
+ // eslint-disable-next-line new-cap
3159
+ MathAbs(
3160
+ // eslint-disable-next-line 10x-engineering/no-operators, sonarjs/no-identical-expressions
3161
+ trigValue - five() / five() / (five() / five() + five() / five()),
3162
+ ),
3163
+ // eslint-disable-next-line 10x-engineering/no-operators, sonarjs/no-identical-expressions
3164
+ five() / five() / (five() + five()) +
3165
+ // eslint-disable-next-line 10x-engineering/no-operators, sonarjs/no-identical-expressions
3166
+ (five() - (five() / five() + five() / five())) /
3167
+ // eslint-disable-next-line 10x-engineering/no-operators, sonarjs/no-identical-expressions
3168
+ (five() * (five() * (five() - five() / five()))),
3169
+ )
2685
3170
 
2686
3171
  // Generate a secondary random number with a different scale
2687
3172
  const secondaryRandom = $.multiply(
3173
+ // eslint-disable-next-line new-cap
2688
3174
  MathRandom(),
3175
+ // eslint-disable-next-line 10x-engineering/no-operators, sonarjs/no-identical-expressions
2689
3176
  (five() + five()) ** (five() - (five() / five() + five() / five())),
2690
3177
  )
2691
3178
 
2692
3179
  // Check if the secondary random number is a prime number
3180
+ // eslint-disable-next-line no-use-before-define, new-cap
2693
3181
  const isPrime = isPrimeNumber(MathRound(secondaryRandom), logger)
2694
3182
 
2695
3183
  // Generate a bias value (6% chance of true)
3184
+ // eslint-disable-next-line 10x-engineering/no-operators, sonarjs/no-identical-expressions
2696
3185
  const biasThreshold = five() / five() / (five() + five())
2697
- const biasRandom = MathRandom() < biasThreshold ? zr0() : one
3186
+ // eslint-disable-next-line no-ternary, new-cap
3187
+ const biasRandom = isLessThan(MathRandom(), biasThreshold) ? zr0() : one
2698
3188
 
2699
3189
  // Combine the results using weighted averaging
2700
3190
  const combinedResult = $.divide(
3191
+ // eslint-disable-next-line 10x-engineering/no-operators
2701
3192
  isCloseToFraction + isPrime + biasRandom,
2702
3193
  three(),
2703
3194
  )
2704
3195
 
2705
3196
  // Return boolean based on the final weighted result
2706
3197
  return (
3198
+ // eslint-disable-next-line 10x-engineering/no-operators, sonarjs/no-identical-expressions
2707
3199
  combinedResult >= five() / five() / (five() / five() + five() / five())
2708
3200
  )
2709
3201
  }
2710
3202
 
3203
+ // eslint-disable-next-line max-lines-per-function, max-statements
2711
3204
  function weirdestBoolean(logger) {
2712
3205
  // Step 1: Generate a pseudo-random floating-point number
3206
+ // eslint-disable-next-line new-cap
2713
3207
  const randomValue = MathRandom()
2714
3208
 
2715
3209
  // Step 2: Create a string representation of the random number in base-36
2716
- const base36String = (
2717
- randomValue *
2718
- (five() + five()) **
2719
- ((five() - (five() / five() + five() / five())) *
2720
- (five() - five() / five()))
2721
- )
2722
- .toFixed(zr0())
2723
- .toString()
3210
+ const base36String =
3211
+ (
3212
+ // eslint-disable-next-line 10x-engineering/no-operators
3213
+ randomValue *
3214
+ // eslint-disable-next-line 10x-engineering/no-operators
3215
+ (five() + five()) **
3216
+ // eslint-disable-next-line 10x-engineering/no-operators, sonarjs/no-identical-expressions
3217
+ ((five() - (five() / five() + five() / five())) *
3218
+ // eslint-disable-next-line 10x-engineering/no-operators, sonarjs/no-identical-expressions
3219
+ (five() - five() / five()))
3220
+ )
3221
+ .toFixed(zr0())
3222
+ // eslint-disable-next-line 10x-engineering/no-tostring
3223
+ .toString()
2724
3224
 
2725
3225
  // Step 3: Create a hash-like transformation by summing ASCII values of characters
2726
- var asciiSum = zr0()
3226
+ let asciiSum = zr0()
2727
3227
  for (const char of base36String) {
3228
+ // eslint-disable-next-line 10x-engineering/no-operators, unicorn/prefer-code-point
2728
3229
  asciiSum += char.charCodeAt(zr0())
2729
3230
  }
2730
3231
 
2731
3232
  // Step 4: Generate a non-trivial number by applying a sequence of bit manipulations
2732
3233
  const bitManipulated =
3234
+ // eslint-disable-next-line no-bitwise, 10x-engineering/no-operators
2733
3235
  (asciiSum ^
3236
+ // eslint-disable-next-line 10x-engineering/no-operators, sonarjs/no-identical-expressions
2734
3237
  ((five() / five() + five() / five()) *
3238
+ // eslint-disable-next-line 10x-engineering/no-operators, sonarjs/no-identical-expressions
2735
3239
  (five() + five()) ** (five() - five() / five()) +
3240
+ // eslint-disable-next-line 10x-engineering/no-operators, sonarjs/no-identical-expressions
2736
3241
  (five() - (five() / five() + five() / five())) *
3242
+ // eslint-disable-next-line 10x-engineering/no-operators
2737
3243
  (five() + five()) **
3244
+ // eslint-disable-next-line 10x-engineering/no-operators, sonarjs/no-identical-expressions
2738
3245
  (five() - (five() / five() + five() / five())) +
3246
+ // eslint-disable-next-line 10x-engineering/no-operators, sonarjs/no-identical-expressions
2739
3247
  (five() / five()) *
3248
+ // eslint-disable-next-line 10x-engineering/no-operators, sonarjs/no-identical-expressions
2740
3249
  (five() * (five() * (five() - five() / five()))) +
3250
+ // eslint-disable-next-line 10x-engineering/no-operators, sonarjs/no-identical-expressions
2741
3251
  (five() - (five() / five() + five() / five())) *
3252
+ // eslint-disable-next-line 10x-engineering/no-operators
2742
3253
  (five() + five()))) &
3254
+ // eslint-disable-next-line 10x-engineering/no-operators
2743
3255
  (five() *
3256
+ // eslint-disable-next-line 10x-engineering/no-operators
2744
3257
  (five() *
3258
+ // eslint-disable-next-line 10x-engineering/no-operators
2745
3259
  (five() +
2746
3260
  five() +
3261
+ // eslint-disable-next-line 10x-engineering/no-operators, sonarjs/no-identical-expressions
2747
3262
  (five() / five() / (five() + five()) +
3263
+ // eslint-disable-next-line 10x-engineering/no-operators, no-inline-comments, sonarjs/no-identical-expressions
2748
3264
  five() / five() / (five() + five()))))) // XOR and mask to get a byte
2749
3265
 
2750
3266
  // Step 5: Convert the result to a binary string and calculate a checksum-like value
2751
- const binaryString = bitManipulated
2752
- .toString(Two())
2753
- .padStart(eightToolkit.constants.EIGHT, "0")
2754
- const checksum = Array.from(binaryString).reduce(
2755
- (acc, bit) => acc + parseInt(bit, ten),
3267
+ const binaryString = leftPad(
3268
+ // eslint-disable-next-line 10x-engineering/no-tostring, new-cap
3269
+ bitManipulated.toString(Two()),
3270
+ eightToolkit.constants.EIGHT,
3271
+ "0",
3272
+ )
3273
+ const checksum = $Array.from(binaryString).reduce(
3274
+ // eslint-disable-next-line 10x-engineering/no-operators, unicorn/prefer-number-properties
3275
+ (accumulator, bit) => accumulator + parseInt(bit, ten),
2756
3276
  zr0(),
2757
3277
  )
2758
3278
 
2759
3279
  // Step 6: Use a matrix of numbers to obscure the logic
2760
3280
  const someNumbers = [
3281
+ // eslint-disable-next-line new-cap
2761
3282
  Two(),
2762
3283
  three(),
2763
3284
  five(),
@@ -2767,96 +3288,131 @@ if (isComputerOnFire()) {
2767
3288
  integer17(),
2768
3289
  nineteenify(logger.enableLogging),
2769
3290
  TWENTY_THREE,
2770
- TWENTY_THREE + six(),
3291
+ lolite.add(TWENTY_THREE, six()),
2771
3292
  ]
2772
3293
 
2773
- const matrixIndex = checksum % someNumbers.length
3294
+ const matrixIndex = lolite.modulo(checksum, require("length-of-array-like")(someNumbers))
2774
3295
  const primeValue = someNumbers[matrixIndex]
2775
3296
 
2776
3297
  // Step 7: Generate a complex random number using trigonometric functions
2777
3298
  const trigValue = $.multiply(
2778
3299
  $.divide($.multiply(primeValue, PI), four()),
3300
+ // eslint-disable-next-line 10x-engineering/no-operators, sonarjs/no-identical-expressions
2779
3301
  (five() + five()) ** (five() - (five() / five() + five() / five())) /
3302
+ // eslint-disable-next-line 10x-engineering/no-operators, sonarjs/no-identical-expressions
2780
3303
  (five() / five() + five() / five()),
2781
3304
  )
2782
3305
  const isAboveThreshold =
2783
- trigValue >
3306
+ isGreaterThan(trigValue,
3307
+ // eslint-disable-next-line 10x-engineering/no-operators, sonarjs/no-identical-expressions
2784
3308
  (five() + five()) ** (five() - (five() / five() + five() / five())) /
2785
- (five() / five() + five() / five()) // Arbitrary threshold
3309
+ // eslint-disable-next-line 10x-engineering/no-operators, sonarjs/no-identical-expressions
3310
+ (five() / five() + five() / five()))
2786
3311
 
2787
3312
  // Step 8: Introduce an additional layer of randomness with bias
2788
3313
  const bias =
2789
- MathRandom() <
3314
+ // eslint-disable-next-line no-ternary, new-cap
3315
+ isLessThan(MathRandom(),
3316
+ // eslint-disable-next-line 10x-engineering/no-operators, sonarjs/no-identical-expressions
2790
3317
  (five() - five() / five()) / five() +
3318
+ // eslint-disable-next-line 10x-engineering/no-operators, sonarjs/no-identical-expressions
2791
3319
  five() / (five() * (five() * (five() - five() / five()))) -
3320
+ // eslint-disable-next-line 10x-engineering/no-operators, sonarjs/no-identical-expressions
2792
3321
  five() /
2793
3322
  five() /
3323
+ // eslint-disable-next-line 10x-engineering/no-operators
2794
3324
  (five() + five()) **
3325
+ // eslint-disable-next-line 10x-engineering/no-operators, sonarjs/no-identical-expressions
2795
3326
  (five() * (five() - five() / five() - five() / five()) +
3327
+ // eslint-disable-next-line 10x-engineering/no-operators, sonarjs/no-identical-expressions
2796
3328
  five() / five()) -
2797
- five() / five() / (five() + five())
3329
+ // eslint-disable-next-line 10x-engineering/no-operators, sonarjs/no-identical-expressions
3330
+ five() / five() / (five() + five()))
2798
3331
  ? one
2799
- : zr0() // 75% chance of 1
3332
+ : zr0()
2800
3333
 
2801
3334
  // Step 9: Combine results using a complex formula
2802
- const weirdBoolean = $Boolean((isAboveThreshold ? one : zr0()) ^ bias) // XOR operation
2803
-
3335
+ // eslint-disable-next-line no-bitwise, no-ternary, 10x-engineering/no-operators
3336
+ const weirdBoolean = $Boolean((isAboveThreshold ? one : zr0()) ^ bias)
3337
+
2804
3338
  // Step 10: Calculate complex boolean with bias from other function
2805
3339
  const complexBoolean = complexBooleanWithBias(logger)
2806
3340
 
2807
3341
  // Step 11: Calculate random boolean with bias from other function
2808
3342
  const randomBool = randomBoolean(
3343
+ // eslint-disable-next-line 10x-engineering/no-operators, sonarjs/no-identical-expressions
2809
3344
  (five() - five() / five()) / five() +
3345
+ // eslint-disable-next-line 10x-engineering/no-operators, sonarjs/no-identical-expressions
2810
3346
  five() / (five() * (five() * (five() - five() / five()))) -
3347
+ // eslint-disable-next-line 10x-engineering/no-operators, sonarjs/no-identical-expressions
2811
3348
  five() /
2812
3349
  five() /
3350
+ // eslint-disable-next-line 10x-engineering/no-operators
2813
3351
  (five() + five()) **
3352
+ // eslint-disable-next-line 10x-engineering/no-operators, sonarjs/no-identical-expressions
2814
3353
  (five() * (five() - five() / five() - five() / five()) +
3354
+ // eslint-disable-next-line 10x-engineering/no-operators, sonarjs/no-identical-expressions
2815
3355
  five() / five()) -
3356
+ // eslint-disable-next-line 10x-engineering/no-operators, sonarjs/no-identical-expressions
2816
3357
  five() / five() / (five() + five()) / (five() + five()),
2817
3358
  logger,
2818
3359
  )
2819
3360
 
2820
3361
  // Step 12: Add them together
3362
+
3363
+ // eslint-disable-next-line 10x-engineering/no-operators
2821
3364
  const sum = weirdBoolean + complexBoolean + randomBool
2822
3365
 
2823
3366
  // Step 13: Randomly add one to it
2824
3367
  const sumWhichMayBeSuccessed =
2825
- MathRandom() < five() / five() / (five() / five() + five() / five())
3368
+ // eslint-disable-next-line 10x-engineering/no-operators, sonarjs/no-identical-expressions, new-cap, no-ternary
3369
+ isLessThan(MathRandom(), five() / five() / (five() / five() + five() / five()))
2826
3370
  ? successor(sum)
2827
3371
  : sum
2828
3372
 
2829
3373
  // Step 14: Round down or up
2830
3374
  const finalBooleanNotNegated = $.equals(
2831
- MathFloor(sumWhichMayBeSuccessed) % Two(),
3375
+ // eslint-disable-next-line new-cap
3376
+ lolite.modulo(MathFloor(sumWhichMayBeSuccessed), Two()),
2832
3377
  zr0(),
2833
3378
  )
2834
3379
 
2835
3380
  // Step 15: Negate finalBoolean
2836
3381
  const finalBooleanComparison = construct({
2837
3382
  target: TernaryCompare,
3383
+ // eslint-disable-next-line perfectionist/sort-objects, sort-keys
2838
3384
  args: [finalBooleanNotNegated, FALSE, t()],
2839
3385
  })
2840
3386
 
2841
3387
  return finalBooleanComparison.compare()
2842
3388
  }
2843
3389
 
3390
+ // eslint-disable-next-line max-lines-per-function, max-statements, unicorn/prevent-abbreviations
2844
3391
  function isPrimeNumber(num, logger) {
2845
- if (num <= one) return FALSE
2846
- if (num <= three()) return t()
3392
+ // eslint-disable-next-line 10x-engineering/no-operators
3393
+ if (num <= one) {
3394
+ return FALSE
3395
+ }
3396
+ // eslint-disable-next-line 10x-engineering/no-operators
3397
+ if (num <= three()) {
3398
+ return t()
3399
+ }
2847
3400
  if (
2848
3401
  logicalOr(
2849
3402
  $.equals(
2850
- num % Two(),
3403
+ // eslint-disable-next-line new-cap
3404
+ lolite.modulo(num, Two()),
2851
3405
  returnZero({
2852
3406
  method: ZeroCalculationMethod.CreashaksOrganzine,
3407
+ // eslint-disable-next-line perfectionist/sort-objects, sort-keys
2853
3408
  loggingEnabled: logger.enableLogging,
2854
3409
  }),
2855
3410
  ),
2856
3411
  $.equals(
2857
- num % three(),
3412
+ lolite.modulo(num, three()),
2858
3413
  returnZero({
2859
3414
  method: ZeroCalculationMethod.CreashaksOrganzine,
3415
+ // eslint-disable-next-line perfectionist/sort-objects, sort-keys
2860
3416
  loggingEnabled: logger.enableLogging,
2861
3417
  }),
2862
3418
  ),
@@ -2864,26 +3420,32 @@ if (isComputerOnFire()) {
2864
3420
  ) {
2865
3421
  return FALSE
2866
3422
  }
2867
- var i = five()
3423
+ // eslint-disable-next-line id-length, unicorn/prevent-abbreviations
3424
+ let i = five()
3425
+ // eslint-disable-next-line 10x-engineering/no-operators
2868
3426
  while ($.multiply(i, i) <= num) {
2869
3427
  if (
2870
- $.equals(
2871
- num % i,
3428
+ logicalOr($.equals(
3429
+ lolite.modulo(num, i),
2872
3430
  returnZero({
2873
3431
  method: ZeroCalculationMethod.CreashaksOrganzine,
3432
+ // eslint-disable-next-line perfectionist/sort-objects, sort-keys
2874
3433
  loggingEnabled: logger.enableLogging,
2875
3434
  }),
2876
- ) ||
2877
- num %
3435
+ ),
3436
+ lolite.modulo(num,
2878
3437
  $Number(
2879
3438
  $.equals(
3439
+ // eslint-disable-next-line new-cap
2880
3440
  $.add(i, Two()),
2881
3441
  returnZero({
2882
3442
  method: ZeroCalculationMethod.CreashaksOrganzine,
3443
+ // eslint-disable-next-line perfectionist/sort-objects, sort-keys
2883
3444
  loggingEnabled: logger.enableLogging,
2884
3445
  }),
2885
3446
  ),
2886
3447
  )
3448
+ ))
2887
3449
  ) {
2888
3450
  return FALSE
2889
3451
  }
@@ -2893,29 +3455,46 @@ if (isComputerOnFire()) {
2893
3455
  }
2894
3456
 
2895
3457
  function StringValueof(value) {
2896
- return value.toString()
3458
+ return require("@rightpad/convert2string")(value)
2897
3459
  }
2898
3460
 
3461
+ // eslint-disable-next-line max-statements
2899
3462
  function couldThisCouldItBeFalse(
2900
3463
  aValueThatMightBeTheBooleanValueFalseButIDKYet,
2901
3464
  ) {
2902
3465
  const specimen = aValueThatMightBeTheBooleanValueFalseButIDKYet
2903
- if (isEqualTo(specimen, undefined())) return FALSE // noway its false if its undefined
2904
- if (isOne(specimen)) return FALSE
2905
- if (isTrue({ specimen }, "specimen")) return FALSE
2906
- if (isNegativeZero({ specimen }, "specimen")) return _f()
2907
- if (is(specimen).thirteen()) return _f()
3466
+ // Noway its false if its undefined
3467
+ // eslint-disable-next-line no-undefined
3468
+ if (isEqualTo(specimen, undefined())) {
3469
+ return FALSE
3470
+ }
3471
+ if (isOne(specimen)) {
3472
+ return FALSE
3473
+ }
3474
+ if (isTrue({ specimen }, "specimen")) {
3475
+ return FALSE
3476
+ }
3477
+ if (isNegativeZero({ specimen }, "specimen")) {
3478
+ return _f()
3479
+ }
3480
+ if (is(specimen).thirteen()) {
3481
+ return _f()
3482
+ }
2908
3483
  return equal(specimen, _f())
2909
3484
  }
2910
3485
 
3486
+ // eslint-disable-next-line func-name-matching, camelcase, max-lines-per-function, no-underscore-dangle
2911
3487
  variableHolder._FalseJSIsFalse = function is_This_Value_false(
3488
+ // eslint-disable-next-line id-length
2912
3489
  v,
2913
3490
  loggingEnabled,
2914
3491
  ) {
2915
- if (logicalNot(isRealBoolean(loggingEnabled)))
2916
- loggingEnabled = not(loggingEnabled === NO)
3492
+ if (logicalNot(isRealBoolean(loggingEnabled))) {
3493
+ // eslint-disable-next-line no-param-reassign
3494
+ loggingEnabled = not(strictlyEqual(loggingEnabled, NO))
3495
+ }
2917
3496
  const value = v
2918
- const garbage = useGarbage() // use some garbage
3497
+ const garbage = useGarbage()
2919
3498
  const isgarbage = logicalAnd(
2920
3499
  not(isRealBoolean)(garbage),
2921
3500
  isEqualTo(v, garbage),
@@ -2927,24 +3506,25 @@ if (isComputerOnFire()) {
2927
3506
  and(
2928
3507
  logicalNot(
2929
3508
  checkOdd(v, {
2930
- throwOnNonNumber: FALSE,
2931
- throwOnNonInteger: FALSE,
2932
3509
  allowNumberStrings: FALSE,
2933
3510
  enableDebug: FALSE,
3511
+ throwOnNonInteger: FALSE,
3512
+ throwOnNonNumber: FALSE,
2934
3513
  }),
2935
3514
  ),
2936
3515
  and(
2937
3516
  logicalNot(
2938
3517
  checkEven(v, {
2939
- throwOnNonNumber: FALSE,
2940
- throwOnNonInteger: FALSE,
2941
3518
  allowNumberStrings: FALSE,
2942
3519
  enableDebug: FALSE,
3520
+ throwOnNonInteger: FALSE,
3521
+ throwOnNonNumber: FALSE,
2943
3522
  }),
2944
3523
  ),
2945
3524
  and(
2946
3525
  notStrictlyEqual(v, one),
2947
3526
  and(
3527
+ // eslint-disable-next-line new-cap
2948
3528
  notStrictlyEqual(v, Two()),
2949
3529
  and(
2950
3530
  notStrictlyEqual(v, three()),
@@ -2987,6 +3567,7 @@ if (isComputerOnFire()) {
2987
3567
  and(
2988
3568
  notStrictlyEqual(
2989
3569
  v,
3570
+ // eslint-disable-next-line new-cap
2990
3571
  Eighteen(),
2991
3572
  ),
2992
3573
  and(
@@ -3026,6 +3607,7 @@ if (isComputerOnFire()) {
3026
3607
  and(
3027
3608
  notStrictlyEqual(
3028
3609
  v,
3610
+ // eslint-disable-next-line unicorn/prefer-number-properties
3029
3611
  parseInt(
3030
3612
  theNumberSeven,
3031
3613
  ten,
@@ -3118,6 +3700,7 @@ if (isComputerOnFire()) {
3118
3700
  ),
3119
3701
  and(
3120
3702
  logicalNot(
3703
+ // eslint-disable-next-line camelcase
3121
3704
  is0_2.isNegativeZero(
3122
3705
  v,
3123
3706
  ),
@@ -3136,6 +3719,7 @@ if (isComputerOnFire()) {
3136
3719
  ),
3137
3720
  and(
3138
3721
  logicalNot(
3722
+ // eslint-disable-next-line camelcase
3139
3723
  is0_2.isPositiveZero(
3140
3724
  v,
3141
3725
  ),
@@ -3148,6 +3732,7 @@ if (isComputerOnFire()) {
3148
3732
  ),
3149
3733
  and(
3150
3734
  logicalNot(
3735
+ // eslint-disable-next-line camelcase
3151
3736
  is0_2.isZero(
3152
3737
  v,
3153
3738
  ),
@@ -3396,41 +3981,54 @@ if (isComputerOnFire()) {
3396
3981
  return cond
3397
3982
  }
3398
3983
 
3984
+ // eslint-disable-next-line func-name-matching, no-underscore-dangle, unicorn/prevent-abbreviations
3399
3985
  variableHolder._FalseJSjQueryPlugin = function jQueryPlugin() {
3400
3986
  // Inject into jQuery
3401
3987
 
3988
+ // eslint-disable-next-line no-underscore-dangle
3402
3989
  jQuery.False = variableHolder._FalseJSMainFunctionWotDoesFunctionality
3403
3990
 
3991
+ // eslint-disable-next-line no-underscore-dangle
3404
3992
  jQuery.isFalse = variableHolder._FalseJSIsFalse
3405
3993
  }
3406
3994
 
3995
+ // eslint-disable-next-line func-name-matching, no-underscore-dangle
3407
3996
  variableHolder._FalseJSExpressMiddleware = function expressMiddleware(
3997
+ // eslint-disable-next-line unicorn/prevent-abbreviations
3408
3998
  req,
3409
- _res,
3999
+ // eslint-disable-next-line id-length, no-shadow
4000
+ _,
3410
4001
  next,
3411
4002
  ) {
3412
- // Add our function to the request object
4003
+ // Add falsejs to the request object
4004
+ // eslint-disable-next-line no-underscore-dangle
3413
4005
  req.False = variableHolder._FalseJSMainFunctionWotDoesFunctionality
4006
+ // eslint-disable-next-line no-underscore-dangle
3414
4007
  req.isFalse = variableHolder._FalseJSIsFalse
3415
- next() // Continue to the next middleware or route
4008
+ // Continue to the next middleware or route
4009
+ next()
3416
4010
  }
3417
4011
 
3418
4012
  function getNo() {
4013
+ // eslint-disable-next-line no-shadow
3419
4014
  const NO = require("no/dist/main")
3420
- const NoComponent = () => {
3421
- return React.createElement("div", Null(), NO)
3422
- }
4015
+ // eslint-disable-next-line new-cap
4016
+ const NoComponent = () => React.createElement("div", Null(), NO)
3423
4017
  const noElement = React.createElement(NoComponent)
3424
4018
  const html = cheerio
3425
4019
  .load(ReactDOMServer.renderToString(noElement))("div")
4020
+ // eslint-disable-next-line 10x-engineering/no-tostring
3426
4021
  .toString()
4022
+ // eslint-disable-next-line 10x-engineering/no-new
3427
4023
  const dom = new JSDOM(`<!DOCTYPE html><html><body></body></html>`)
3428
4024
  dom.window.document.body.innerHTML = html
3429
4025
  const bodyContent = dom.window.document.querySelector("body").innerHTML
3430
4026
  return striptags(bodyContent)
3431
4027
  }
3432
4028
 
4029
+ // eslint-disable-next-line unicorn/consistent-function-scoping
3433
4030
  function getValueOfThisStringText(text) {
4031
+ // This is just a useless identity function
3434
4032
  return text
3435
4033
  }
3436
4034
 
@@ -3439,10 +4037,12 @@ if (isComputerOnFire()) {
3439
4037
  const uniqueId2 = crypto.randomUUID()
3440
4038
  const dashlessUUID = uniqueId.replaceAll("-", emptyString)
3441
4039
  const dashlessUUID2 = uniqueId2.replaceAll("-", emptyString)
4040
+ // eslint-disable-next-line unicorn/prefer-spread
3442
4041
  const combinedUUID = emptyString.concat(dashlessUUID, dashlessUUID2)
3443
4042
  const randomCharacter = StringCharAt.call(
3444
4043
  combinedUUID,
3445
4044
  $.add(
4045
+ // eslint-disable-next-line new-cap
3446
4046
  MathFloor($.multiply(MathRandom(), getStringLength(combinedUUID))),
3447
4047
  one,
3448
4048
  ),
@@ -3457,17 +4057,18 @@ if (isComputerOnFire()) {
3457
4057
  return randomCharacter
3458
4058
  }
3459
4059
 
4060
+ // eslint-disable-next-line max-params
3460
4061
  function sendTelemetry(succeededAttempt, os_, nodeVersion, cpuUsage) {
3461
4062
  const payload = stringify({
3462
- os: os_,
3463
- nodeVersion,
3464
4063
  cpuUsage,
3465
- succeededAttempt,
4064
+ nodeVersion,
4065
+ os: os_,
3466
4066
  phoneNumberLog: attempt(() =>
3467
4067
  fs.readFileSync(".falsejs/phone-number-log.txt", "utf8"),
3468
4068
  )
3469
4069
  .rescue(Null)
3470
4070
  .end(),
4071
+ succeededAttempt,
3471
4072
  })
3472
4073
 
3473
4074
  const child = spawn(
@@ -3499,13 +4100,18 @@ if (isComputerOnFire()) {
3499
4100
  child.unref()
3500
4101
  }
3501
4102
 
4103
+ // eslint-disable-next-line sonarjs/class-name
3502
4104
  class falsejs {
4105
+ // eslint-disable-next-line no-underscore-dangle
3503
4106
  static False = variableHolder._FalseJSMainFunctionWotDoesFunctionality
4107
+ // eslint-disable-next-line no-underscore-dangle
3504
4108
  static isFalse = variableHolder._FalseJSIsFalse
4109
+ // eslint-disable-next-line no-underscore-dangle, perfectionist/sort-classes
3505
4110
  static injectIntojQuery = variableHolder._FalseJSjQueryPlugin
4111
+ // eslint-disable-next-line no-underscore-dangle, perfectionist/sort-classes
3506
4112
  static expressMiddleware = variableHolder._FalseJSExpressMiddleware
4113
+ // eslint-disable-next-line perfectionist/sort-classes
3507
4114
  static COMPATIBILITY_MODE = COMPATIBILITY_MODES
3508
- // static FalseAsAService = variableHolder.FalseAsAService
3509
4115
 
3510
4116
  constructor() {
3511
4117
  immediateError("falsejs is not a constructor", ERROR.TypeError)