no-octal-escape
eslint
No autofix
eslint.config.js
export default [
{
rules: {
"no-octal-escape": "error",
},
},
];const foo = "Copyright \251";const foo = "Copyright \u00A9"; // unicode
const buz = "Copyright \xA9"; // hexadecimalExamples from the ESLint documentation.
no-octal-escape
eslint
export default [
{
rules: {
"no-octal-escape": "error",
},
},
];Oxlint does not have this rule.
suspicious/noOctalEscape
suspicious · since 1.9.3
{
"linter": {
"rules": {
"suspicious": {
"noOctalEscape": "error"
}
}
}
}Disallow the use of eval()-like methods
Disallow comparisons where both sides are exactly the same