UNPKG

pi-lens

Version:

Real-time code feedback for pi — LSP, linters, formatters, type-checking, structural analysis & booboo

14 lines (13 loc) • 359 B
id: no-insecure-randomness-js valid: - 'crypto.getRandomValues(buf)' - 'Math.random()' - 'const x = Math.random()' - 'genToken(Math.random())' - 'createKey(Math.random())' invalid: - 'const token = Math.random()' - 'const secret = Math.random()' - 'const key = Math.random()' - 'const nonce = Math.random()' - 'const salt = Math.random()'