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