Skip to content

Commit

Permalink
fix(eslint-plugin): fix placeholder in ban-ts-comment (#1703)
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Rath committed Mar 9, 2020
1 parent 85e1b19 commit 144345c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/eslint-plugin/src/rules/ban-ts-comment.ts
Expand Up @@ -28,7 +28,7 @@ export default util.createRule<[Options], MessageIds>({
},
messages: {
tsDirectiveComment:
'Do not use "// @ts-{directive}" because it alters compilation errors.',
'Do not use "// @ts-{{directive}}" because it alters compilation errors.',
},
schema: [
{
Expand Down
8 changes: 4 additions & 4 deletions packages/eslint-plugin/tests/rules/ban-ts-comment.test.ts
Expand Up @@ -113,7 +113,7 @@ ruleTester.run('ts-nocheck', rule, {
code: '// @ts-nocheck',
errors: [
{
data: { directive: 'check' },
data: { directive: 'nocheck' },
messageId: 'tsDirectiveComment',
line: 1,
column: 1,
Expand All @@ -124,7 +124,7 @@ ruleTester.run('ts-nocheck', rule, {
code: '// @ts-nocheck: Suppress next line',
errors: [
{
data: { directive: 'check' },
data: { directive: 'nocheck' },
messageId: 'tsDirectiveComment',
line: 1,
column: 1,
Expand All @@ -135,7 +135,7 @@ ruleTester.run('ts-nocheck', rule, {
code: '/////@ts-nocheck: Suppress next line',
errors: [
{
data: { directive: 'check' },
data: { directive: 'nocheck' },
messageId: 'tsDirectiveComment',
line: 1,
column: 1,
Expand All @@ -151,7 +151,7 @@ if (false) {
`,
errors: [
{
data: { directive: 'check' },
data: { directive: 'nocheck' },
messageId: 'tsDirectiveComment',
line: 3,
column: 3,
Expand Down

0 comments on commit 144345c

Please sign in to comment.