React

//ES5 with createClass()
const Contacts = React.createClass({
  render() {
    return (
      <div></div>
    );
  }
});
//Using an ES6 class
class Contacts extends React.Component {
  constructor(props) {
    super(props);
  }
  render() {
    return (
      <div></div>
    );
  }
}
// This also gets linted

/* eslint quotes: [2, "double"] */

function hello() {
    console.log("Hello, world!");
}
hello();
// This gets linted too
var div = <div className="jsx"></div>;
// And this
console.log(process.version);
This is plain text and doesn't get linted.

results matching ""

    No results matching ""