Linux SRV-16 6.18.44-paas #1 SMP PREEMPT_DYNAMIC Thu Aug 13 10:08:12 UTC 2026 x86_64
/
srv
/
data
/
trash
/
vhost_www.bachtale.com_1719306535
/
htdocs
/
node_modules
/
eslint
/
lib
/
rules
/
/srv/data/trash/vhost_www.bachtale.com_1719306535/htdocs/node_modules/eslint/lib/rules/no-octal.js
/** * @fileoverview Rule to flag when initializing octal literal * @author Ilya Volodin */ "use strict"; //------------------------------------------------------------------------------ // Rule Definition //------------------------------------------------------------------------------ module.exports = { meta: { type: "suggestion", docs: { description: "disallow octal literals", category: "Best Practices", recommended: true, url: "https://eslint.org/docs/rules/no-octal" }, schema: [] }, create(context) { return { Literal(node) { if (typeof node.value === "number" && /^0[0-9]/u.test(node.raw)) { context.report({ node, message: "Octal literals should not be used." }); } } }; } };