Skip to content

Commit

Permalink
Fix linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ulrichb committed Apr 14, 2020
1 parent 8df74f4 commit dfe2c64
Showing 1 changed file with 5 additions and 5 deletions.
Expand Up @@ -32,7 +32,7 @@ ruleTester.run('restrict-template-expressions', rule, {
`,
// Base case - intersection type
`
function test<T extends string & { _kind: "MyBrandedString" }>(arg: T) {
function test<T extends string & { _kind: 'MyBrandedString' }>(arg: T) {
return \`arg = \${arg}\`;
}
`,
Expand Down Expand Up @@ -77,10 +77,10 @@ ruleTester.run('restrict-template-expressions', rule, {
{
options: [{ allowNumber: true }],
code: `
function test<T extends number & { _kind: "MyBrandedNumber" }>(arg: T) {
return \`arg = \${arg}\`;
}
`,
function test<T extends number & { _kind: 'MyBrandedNumber' }>(arg: T) {
return \`arg = \${arg}\`;
}
`,
},
{
options: [{ allowNumber: true }],
Expand Down

0 comments on commit dfe2c64

Please sign in to comment.