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 12, 2020
1 parent b616765 commit b9548f5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
9 changes: 6 additions & 3 deletions packages/eslint-plugin/tests/rules/no-for-in-array.test.ts
Expand Up @@ -60,7 +60,8 @@ const fn = (arr: number[]) => {
for (const x in arr) {
console.log(x);
}
}`,
};
`,
errors: [
{
messageId: 'forInViolation',
Expand All @@ -74,7 +75,8 @@ const fn = (arr: number[] | string[]) => {
for (const x in arr) {
console.log(x);
}
}`,
};
`,
errors: [
{
messageId: 'forInViolation',
Expand All @@ -88,7 +90,8 @@ const fn = <T extends any[]>(arr: T) => {
for (const x in arr) {
console.log(x);
}
}`,
};
`,
errors: [
{
messageId: 'forInViolation',
Expand Down
10 changes: 7 additions & 3 deletions packages/eslint-plugin/tests/rules/no-unsafe-return.test.ts
Expand Up @@ -74,16 +74,20 @@ function foo(): Set<number> {
],
invalid: [
{
code: 'function fn<T extends any>(x: T) { return x };',
code: `
function fn<T extends any>(x: T) {
return x;
}
`,
errors: [
{
messageId: 'unsafeReturnAssignment',
data: {
sender: 'any',
receiver: 'T',
},
line: 1,
column: 36,
line: 3,
column: 3,
},
],
},
Expand Down

0 comments on commit b9548f5

Please sign in to comment.