Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix: typo ocatal -> octal (#15940)
  • Loading branch information
nschonni committed May 29, 2022
1 parent 10249ad commit 845a7af
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions lib/rules/no-octal.js
Expand Up @@ -23,7 +23,7 @@ module.exports = {
schema: [],

messages: {
noOcatal: "Octal literals should not be used."
noOctal: "Octal literals should not be used."
}
},

Expand All @@ -35,7 +35,7 @@ module.exports = {
if (typeof node.value === "number" && /^0[0-9]/u.test(node.raw)) {
context.report({
node,
messageId: "noOcatal"
messageId: "noOctal"
});
}
}
Expand Down
22 changes: 11 additions & 11 deletions tests/lib/rules/no-octal.js
Expand Up @@ -31,77 +31,77 @@ ruleTester.run("no-octal", rule, {
{
code: "var a = 01234;",
errors: [{
messageId: "noOcatal",
messageId: "noOctal",
type: "Literal"
}]
},
{
code: "a = 1 + 01234;",
errors: [{
messageId: "noOcatal",
messageId: "noOctal",
type: "Literal"
}]
},
{
code: "00",
errors: [{
messageId: "noOcatal",
messageId: "noOctal",
type: "Literal"
}]
},
{
code: "08",
errors: [{
messageId: "noOcatal",
messageId: "noOctal",
type: "Literal"
}]
},
{
code: "09.1",
errors: [{
messageId: "noOcatal",
messageId: "noOctal",
type: "Literal"
}]
},
{
code: "09e1",
errors: [{
messageId: "noOcatal",
messageId: "noOctal",
type: "Literal"
}]
},
{
code: "09.1e1",
errors: [{
messageId: "noOcatal",
messageId: "noOctal",
type: "Literal"
}]
},
{
code: "018",
errors: [{
messageId: "noOcatal",
messageId: "noOctal",
type: "Literal"
}]
},
{
code: "019.1",
errors: [{
messageId: "noOcatal",
messageId: "noOctal",
type: "Literal"
}]
},
{
code: "019e1",
errors: [{
messageId: "noOcatal",
messageId: "noOctal",
type: "Literal"
}]
},
{
code: "019.1e1",
errors: [{
messageId: "noOcatal",
messageId: "noOctal",
type: "Literal"
}]
}
Expand Down

0 comments on commit 845a7af

Please sign in to comment.