Skip to content

Commit

Permalink
Fix: Double Quote -> Single Quote
Browse files Browse the repository at this point in the history
  • Loading branch information
sunghyunjo committed Sep 1, 2020
1 parent 28bc1b2 commit 0f2fb5b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/lib/rules/prop-types.js
Expand Up @@ -37,23 +37,23 @@ ruleTester.run('prop-types', rule, {
valid: [].concat(
{
code: `
function Foo({ bar = ""}: { bar: string }): JSX.Element {
function Foo({ bar = '' }: { bar: string }): JSX.Element {
return <div>{bar}</div>;
}
`,
parser: parsers['@TYPESCRIPT_ESLINT']
},
{
code: `
function Foo({ foo = "" }): JSX.Element {
function Foo({ foo = '' }): JSX.Element {
return <div>{foo}</div>;
}
`,
parser: parsers['@TYPESCRIPT_ESLINT']
},
{
code: `
function Foo({ bar = "" as string }): JSX.Element {
function Foo({ bar = '' as string }): JSX.Element {
return <div>{bar}</div>;
}
`,
Expand All @@ -69,15 +69,15 @@ ruleTester.run('prop-types', rule, {
},
{
code: `
const Foo: JSX.Element = ({ bar = "" }) => {
const Foo: JSX.Element = ({ bar = '' }) => {
return <div>{bar}</div>;
}
`,
parser: parsers['@TYPESCRIPT_ESLINT']
},
{
code: `
const Foo: JSX.Element = function foo ({ bar = "" }) {
const Foo: JSX.Element = function foo ({ bar = '' }) {
return <div>{bar}</div>;
}
`,
Expand Down

0 comments on commit 0f2fb5b

Please sign in to comment.