Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

whitespace rule false positive in JSX elements #559

Closed
adidahiya opened this issue Aug 7, 2015 · 2 comments
Closed

whitespace rule false positive in JSX elements #559

adidahiya opened this issue Aug 7, 2015 · 2 comments

Comments

@adidahiya
Copy link
Contributor

reported by @myitcv:

Consider the following:

/// <reference path="../../tsd.d.ts" />

import * as React from "react";

interface IProps {
   foo: string;
}

class MyComponent extends React.Component<IProps, {}> {
   render(): JSX.Element {
      return <span>{ this.props.foo }</span>;
   }
}

export function BuildMyComponent(): JSX.Element {
   let x: string = "test";
   return <MyComponent foo={ x } />;
}

I get the following whitespace warning:

test.tsx[17, 26]: missing whitespace

Line 17 is the return statement in the exported function.

@myitcv
Copy link
Contributor

myitcv commented Aug 8, 2015

Thanks @adidahiya I'll raise as separate issues in future

@myitcv
Copy link
Contributor

myitcv commented Aug 12, 2015

Thanks very much!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants