]>
git.proxmox.com Git - pve-eslint.git/blob - eslint/lib/rules/no-octal.js
2 * @fileoverview Rule to flag when initializing octal literal
8 //------------------------------------------------------------------------------
10 //------------------------------------------------------------------------------
17 description
: "disallow octal literals",
18 category
: "Best Practices",
20 url
: "https://eslint.org/docs/rules/no-octal"
26 noOcatal
: "Octal literals should not be used."
35 if (typeof node
.value
=== "number" && /^0[0-9]/u.test(node
.raw
)) {