Skip to content

Commit d9a518e

Browse files
committed
Fix eslint issues
1 parent b366e65 commit d9a518e

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.eslintrc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"semi": ["error", "never"],
88
"comma-dangle": ["error", "never"],
99
"no-bitwise": ["error", { "allow": ["<<", ">>", "&"] }],
10-
"no-console": ["error", { "allow": ["error", "log"] }]
10+
"no-console": ["error", { "allow": ["error", "log"] }],
11+
"no-unused-vars": ["error", { "argsIgnorePattern": "^_" }]
1112
}
1213
}

examples/gen5.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ const { default: Entropy, charset16 } = require('./entropy')
22

33
const entropy = new Entropy({ total: 10000, risk: 1000000, charset: charset16 })
44

5-
const strings = Array(5).fill('').map(e => entropy.string())
5+
const strings = Array(5).fill('').map(_ => entropy.string())
66
console.log(`\n 5 IDs: ${strings.join(', ')}\n`)

examples/uuid_2.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const { default: Entropy, charset64 } = require('./entropy')
1+
const { default: Entropy } = require('./entropy')
22

33
const total = 1e6
44
console.log('For 1 million IDs, the entropy bits for a risk of repeat of:')

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy