module.exports = defineConfig({
root: true,
env: {
- es2021: true,
+ es2022: true,
node: true
},
parserOptions: {
- ecmaVersion: 2021,
+ ecmaVersion: 2022,
sourceType: 'module'
},
plugins: ['promise', 'jsdoc'],
'sort-imports': [
'warn',
{
- ignoreMemberSort: true,
ignoreDeclarationSort: true
}
- ]
+ ],
+ 'import/order': 'warn'
}
})
/* eslint-disable no-unused-vars */
const Benchmark = require('benny')
-const { generateRandomObject } = require('./benchmark-utils')
const _ = require('lodash')
const clone = require('just-clone')
+const { generateRandomObject } = require('./benchmark-utils')
const object = generateRandomObject()
+const crypto = require('crypto')
const Benchmark = require('benny')
const {
secureRandom,
secureRandomWithRandomValues
} = require('./benchmark-utils')
-const crypto = require('crypto')
const maximum = 281474976710654
/* eslint-disable no-unused-vars */
const Benchmark = require('benny')
-const { generateRandomObject } = require('./benchmark-utils')
const _ = require('lodash')
+const { generateRandomObject } = require('./benchmark-utils')
const object = generateRandomObject()
-const Benchmark = require('benny')
const crypto = require('crypto')
+const Benchmark = require('benny')
const { v4: uuid } = require('uuid')
Benchmark.suite(