Skip to content

Commit

Permalink
fixed message string (#1590)
Browse files Browse the repository at this point in the history
  • Loading branch information
JohannesKuehnel committed Jul 30, 2021
1 parent ea1be9f commit 476b444
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/rules/no-reserved-keys.js
Expand Up @@ -44,7 +44,7 @@ module.exports = {
messages: {
reserved: "Key '{{name}}' is reserved.",
startsWithUnderscore:
"Keys starting with with '_' are reserved in '{{name}}' group."
"Keys starting with '_' are reserved in '{{name}}' group."
}
},
/** @param {RuleContext} context */
Expand Down
6 changes: 3 additions & 3 deletions tests/lib/rules/no-reserved-keys.js
Expand Up @@ -168,7 +168,7 @@ ruleTester.run('no-reserved-keys', rule, {
parserOptions: { ecmaVersion: 6 },
errors: [
{
message: "Keys starting with with '_' are reserved in '_foo' group.",
message: "Keys starting with '_' are reserved in '_foo' group.",
line: 4
}
]
Expand All @@ -187,7 +187,7 @@ ruleTester.run('no-reserved-keys', rule, {
parserOptions: { ecmaVersion: 6 },
errors: [
{
message: "Keys starting with with '_' are reserved in '_foo' group.",
message: "Keys starting with '_' are reserved in '_foo' group.",
line: 5
}
]
Expand All @@ -204,7 +204,7 @@ ruleTester.run('no-reserved-keys', rule, {
parserOptions: { ecmaVersion: 6 },
errors: [
{
message: "Keys starting with with '_' are reserved in '_foo' group.",
message: "Keys starting with '_' are reserved in '_foo' group.",
line: 4
}
]
Expand Down

0 comments on commit 476b444

Please sign in to comment.