node: true
},
parserOptions: {
- ecmaVersion: 2022,
- sourceType: 'module'
+ sourceType: 'module',
+ ecmaVersion: 2022
},
- plugins: ['promise', 'jsdoc'],
+ plugins: ['simple-import-sort', 'promise', 'jsdoc'],
extends: [
'standard',
'eslint:recommended',
'plugin:jsdoc/recommended',
'plugin:import/recommended',
'plugin:promise/recommended'
- ]
+ ],
+ rules: {
+ 'simple-import-sort/imports': 'error',
+ 'simple-import-sort/exports': 'error'
+ }
})
-import { randomBytes, getRandomValues, randomInt } from 'node:crypto'
+import { getRandomValues, randomBytes, randomInt } from 'node:crypto'
/**
* Generate a cryptographically secure random number in the [0,1[ range
import Benchmark from 'benny'
+
import { sleep } from './benchmark-utils.mjs'
const timeout = 2000
/* eslint-disable no-unused-vars */
import Benchmark from 'benny'
-import _ from 'lodash'
-import clone from 'just-clone'
import deepClone from 'deep-clone'
+import clone from 'just-clone'
+import _ from 'lodash'
+
import { generateRandomObject } from './benchmark-utils.mjs'
const object = generateRandomObject()
/* eslint-disable no-unused-vars */
import Benchmark from 'benny'
-import _ from 'lodash'
-import merge from 'just-merge'
import deepMerge from 'deepmerge'
+import merge from 'just-merge'
+import _ from 'lodash'
+
import { generateRandomObject } from './benchmark-utils.mjs'
const object = generateRandomObject()
import Benchmark from 'benny'
+
import { generateRandomNumberArray } from './benchmark-utils.mjs'
const size = 10000
import Benchmark from 'benny'
+
import { generateRandomObject } from './benchmark-utils.mjs'
const object = generateRandomObject()
import Benchmark from 'benny'
+
import { generateRandomNumberArray } from './benchmark-utils.mjs'
const size = 10000
import Benchmark from 'benny'
+
import { generateRandomNumberArray } from './benchmark-utils.mjs'
const size = 10000
"eslint-config-standard": "^17.1.0",
"eslint-define-config": "^2.1.0",
"eslint-plugin-import": "^2.29.1",
- "eslint-plugin-jsdoc": "^48.2.0",
+ "eslint-plugin-jsdoc": "^48.2.1",
"eslint-plugin-n": "^16.6.2",
"eslint-plugin-promise": "^6.1.1",
+ "eslint-plugin-simple-import-sort": "^12.0.0",
"husky": "^9.0.11",
"lint-staged": "^15.2.2",
"prettier": "^3.2.5",
specifier: ^2.29.1
version: 2.29.1(eslint@8.57.0)
eslint-plugin-jsdoc:
- specifier: ^48.2.0
- version: 48.2.0(eslint@8.57.0)
+ specifier: ^48.2.1
+ version: 48.2.1(eslint@8.57.0)
eslint-plugin-n:
specifier: ^16.6.2
version: 16.6.2(eslint@8.57.0)
eslint-plugin-promise:
specifier: ^6.1.1
version: 6.1.1(eslint@8.57.0)
+ eslint-plugin-simple-import-sort:
+ specifier: ^12.0.0
+ version: 12.0.0(eslint@8.57.0)
husky:
specifier: ^9.0.11
version: 9.0.11
- supports-color
dev: true
- /eslint-plugin-jsdoc@48.2.0(eslint@8.57.0):
- resolution: {integrity: sha512-O2B1XLBJnUCRkggFzUQ+PBYJDit8iAgXdlu8ucolqGrbmOWPvttZQZX8d1sC0MbqDMSLs8SHSQxaNPRY1RQREg==}
+ /eslint-plugin-jsdoc@48.2.1(eslint@8.57.0):
+ resolution: {integrity: sha512-iUvbcyDZSO/9xSuRv2HQBw++8VkV/pt3UWtX9cpPH0l7GKPq78QC/6+PmyQHHvNZaTjAce6QVciEbnc6J/zH5g==}
engines: {node: '>=18'}
peerDependencies:
eslint: ^7.0.0 || ^8.0.0 || ^9.0.0
builtins: 5.0.1
eslint: 8.57.0
eslint-plugin-es-x: 7.5.0(eslint@8.57.0)
- get-tsconfig: 4.7.2
+ get-tsconfig: 4.7.3
globals: 13.24.0
ignore: 5.3.1
is-builtin-module: 3.2.1
string.prototype.matchall: 4.0.10
dev: true
+ /eslint-plugin-simple-import-sort@12.0.0(eslint@8.57.0):
+ resolution: {integrity: sha512-8o0dVEdAkYap0Cn5kNeklaKcT1nUsa3LITWEuFk3nJifOoD+5JQGoyDUW2W/iPWwBsNBJpyJS9y4je/BgxLcyQ==}
+ peerDependencies:
+ eslint: '>=5.0.0'
+ dependencies:
+ eslint: 8.57.0
+ dev: true
+
/eslint-scope@7.2.2:
resolution: {integrity: sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
get-intrinsic: 1.2.4
dev: true
- /get-tsconfig@4.7.2:
- resolution: {integrity: sha512-wuMsz4leaj5hbGgg4IvDU0bqJagpftG5l5cXIAvo8uZrqn0NJqwtfupTN00VnkQJPcIRrxYrm1Ue24btpCha2A==}
+ /get-tsconfig@4.7.3:
+ resolution: {integrity: sha512-ZvkrzoUA0PQZM6fy6+/Hce561s+faD1rsNwhnO5FelNjyy7EMGJ3Rz1AQ8GYDWjhRs/7dBLOEJvhK8MiEJOAFg==}
dependencies:
resolve-pkg-maps: 1.0.0
dev: true
import { randomInt } from 'node:crypto'
+
import Benchmark from 'benny'
/**
import { randomInt } from 'node:crypto'
+
import Benchmark from 'benny'
+
import {
secureRandom,
secureRandomWithRandomValues
/* eslint-disable no-unused-vars */
import Benchmark from 'benny'
import _ from 'lodash'
+
import { generateRandomObject } from './benchmark-utils.mjs'
const object = generateRandomObject()
import { randomUUID } from 'node:crypto'
+
import Benchmark from 'benny'
import { v4 as uuid } from 'uuid'