Removed manual wrapping of JSX code to bypass jshint errors and advised usage of JSXHint.

Signed-off-by: Simon Bailey <simon@newtriks.com>
This commit is contained in:
Simon Bailey
2014-05-15 20:49:21 +01:00
parent d6d216d05d
commit f8e3d3c6eb
5 changed files with 7 additions and 9 deletions
+4 -2
View File
@@ -65,7 +65,6 @@ Produces `src/scripts/components/Foo.jsx` (*javascript - JSX*):
var React = require('react/addons');
var Foo = React.createClass({
/*jshint ignore:start */
render: function () {
return (
<div>
@@ -73,7 +72,6 @@ var Foo = React.createClass({
</div>
)
}
/*jshint ignore:end */
});
module.exports = Foo;
@@ -164,6 +162,10 @@ Out the box the [Gruntfile](http://gruntjs.com/api/grunt.file) is configured wit
Included in the project is [Eric Meyer's reset.css](http://meyerweb.com/eric/tools/css/reset/) script. There is also a `src/styles/main.css` script that's required by the core `src/scripts/components/App.js` component using Webpack.
### JSHint
Please use [JSXHint](https://github.com/STRML/JSXHint) for linting JSX and the corresponding Sublime package if using SLT3 [SublimeLinter-jsxhint](https://github.com/SublimeLinter/SublimeLinter-jsxhint). Note this is a global npm install and JSX files will need to be associated with the JSX file type withing SLT3.
## Props
Thanks to all who contributed to [generator-angular](https://github.com/yeoman/generator-angular) as the majority of code here has been shamelessy sourced from that repos.