no-octal
eslint
No autofixRecommended
eslint.config.js
export default [
{
rules: {
"no-octal": "error",
},
},
];const num = 071;
const result = 5 + 07;const num = "071";Examples from the ESLint documentation.
no-octal
eslint
export default [
{
rules: {
"no-octal": "error",
},
},
];Oxlint does not have this rule.
nursery/noOctal
nursery · since 2.6.0
{
"linter": {
"rules": {
"nursery": {
"noOctal": "error"
}
}
}
}Disallow multiple spaces in regular expressions
Disallow new operators with global non-constructor functions
Disallow fallthrough of case statements
Disallow let or var variables that are read but never assigned
Disallow empty static blocks
Disallow duplicate arguments in function definitions