Skip to content

Commit

Permalink
chore(eslint-plugin): apply formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Rath committed Apr 13, 2020
1 parent 9eb7d6e commit 8418a22
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions packages/eslint-plugin/tests/rules/prefer-ts-expect-error.test.ts
Expand Up @@ -9,17 +9,19 @@ ruleTester.run('prefer-ts-expect-error', rule, {
valid: [
'// @ts-nocheck',
'// @ts-check',
`// just a comment containing @ts-ignore somewhere`,
`/* @ts-ignore */`,
`/** @ts-ignore */`,
`/*
'// just a comment containing @ts-ignore somewhere',
'/* @ts-ignore */',
'/** @ts-ignore */',
`
/*
// @ts-ignore in a block
*/`,
*/
`,
'// @ts-expect-error',
`
if (false) {
// @ts-expect-error: Unreachable code error
console.log("hello");
console.log('hello');
}
`,
],
Expand Down Expand Up @@ -62,15 +64,15 @@ if (false) {
code: `
if (false) {
// @ts-ignore: Unreachable code error
console.log("hello");
console.log('hello');
}
`,
`,
output: `
if (false) {
// @ts-expect-error: Unreachable code error
console.log("hello");
console.log('hello');
}
`,
`,
errors: [
{
messageId: 'preferExpectErrorComment',
Expand Down

0 comments on commit 8418a22

Please sign in to comment.