]>
git.proxmox.com Git - pve-eslint.git/blob - eslint/lib/rules/no-octal.js
44df45fdacda79b115ad562a201fe01d2f2d34dd
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 noOcatal
: "Octal literals should not be used."
35 if (typeof node
.value
=== "number" && /^0[0-9]/u.test(node
.raw
)) {