Added JSHint and JSXHint for linting the code.

This commit is contained in:
Mario Basic
2015-06-18 13:39:47 +02:00
parent 5788f0755d
commit 4c968263f7
27 changed files with 35521 additions and 127 deletions

View File

@@ -9,12 +9,12 @@ require('bootstrap');
var React = require('react');
// React components
var Options = require('./components/Options.react');
var Options = require('./components/Options.jsx');
React.render(React.createElement(Options, null), document.getElementById('wakatime-options'));
}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
},{"./components/Options.react":3,"bootstrap":6,"jquery":20,"react":194}],2:[function(require,module,exports){
},{"./components/Options.jsx":3,"bootstrap":6,"jquery":20,"react":194}],2:[function(require,module,exports){
'use strict';
var React = require('react');
@@ -41,6 +41,8 @@ var Alert = React.createClass({
module.exports = Alert;
},{"classnames":19,"react":194}],3:[function(require,module,exports){
/* global chrome */
'use strict';
var React = require('react');
@@ -50,8 +52,8 @@ var ReactCSSTransitionGroup = ReactAddons.addons.CSSTransitionGroup;
var config = require('../config');
// React components
var Alert = require('./Alert.react');
var SitesList = require('./SitesList.react');
var Alert = require('./Alert.jsx');
var SitesList = require('./SitesList.jsx');
/**
* One thing to keep in mind is that you cannot use this.refs.blacklist if
@@ -159,7 +161,7 @@ var Options = React.createClass({
var that = this;
var alert = function alert() {
if (that.state.displayAlert == true) {
if (that.state.displayAlert === true) {
setTimeout(function () {
that.setState({ displayAlert: false });
@@ -307,7 +309,7 @@ var Options = React.createClass({
module.exports = Options;
},{"../config":5,"./Alert.react":2,"./SitesList.react":4,"react":194,"react/addons":22}],4:[function(require,module,exports){
},{"../config":5,"./Alert.jsx":2,"./SitesList.jsx":4,"react":194,"react/addons":22}],4:[function(require,module,exports){
'use strict';
var React = require('react');
@@ -359,9 +361,6 @@ module.exports = SitesList;
},{"react":194}],5:[function(require,module,exports){
'use strict';
Object.defineProperty(exports, '__esModule', {
value: true
});
var config = {
// Extension name
name: 'WakaTime',
@@ -415,8 +414,7 @@ var config = {
}
};
exports['default'] = config;
module.exports = exports['default'];
module.exports = config;
},{}],6:[function(require,module,exports){
// This file is autogenerated via the `commonjs` Grunt task. You can require() this file in a CommonJS environment.