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

Support JSX #619

Open
renchap opened this issue Oct 3, 2017 · 2 comments
Open

Support JSX #619

renchap opened this issue Oct 3, 2017 · 2 comments

Comments

@renchap
Copy link

renchap commented Oct 3, 2017

JSX is now supported in CS2: http://coffeescript.org/#jsx

It would be awesome to have the syntax supported in coffeelint (it is currently reporting errors).

@swang
Copy link
Collaborator

swang commented Oct 4, 2017

what exactly do you want linted?

@renchap
Copy link
Author

renchap commented Oct 4, 2017

Currently with a simple CS2 file with JSX I am getting lint errors:

# content-text.coffee
import React from 'react'

export default class ContentText extends React.Component
  render: ->
    <div className="td-content-text">
      Content Text
    </div>
$ coffeelint --version
2.0.5
$ coffeelint content_text.coffee
  ✗ content_text.coffee
     ✗ #5: Colon assignment without proper spacing. Incorrect spacing around column 18.
     ✗ #5: a space is required after commas.
     ✗ #5: a space is required after commas.

✗ Lint! » 3 errors and 0 warnings in 1 file

The only JSX specific rule that I have in mind would be for the quotes style (simple/double).

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

No branches or pull requests

2 participants