Getting Facebook's react.js library JSX syntax to play nicely with jslint?

前端 未结 7 1388
死守一世寂寞
死守一世寂寞 2021-01-30 05:19

I am playing around with the Facebook\'s react.js library. I am trying to use their JSX syntax which describes creating a view in the following way.

/** @jsx Rea         


        
相关标签:
7条回答
  • 2021-01-30 06:06

    See JSXHint, a wrapper around JSHint I wrote that lints the output from react-tools. This is a step up from ignoring a block of lines as it will actually lint the generated javascript.

    It can be used with Sublime Text via SublimeLinter with this plugin.

    0 讨论(0)
提交回复
热议问题