Linting JSX files (#941)

`.jsx` linting is now in-scope for the `npm run lint` command, and
I linted the base files and some of the viz, there's still quite a bit
of work there, but that's a first pass on it.
This commit is contained in:
Maxime Beauchemin
2016-08-22 13:21:30 -07:00
committed by GitHub
parent 7f2805a3c5
commit a8fd23dfa4
26 changed files with 1443 additions and 1425 deletions

View File

@@ -3,7 +3,7 @@ import React, { PropTypes } from 'react';
import update from 'immutability-helper';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
import Modal from './Modal.jsx';
require('../../../node_modules/react-bootstrap-table/css/react-bootstrap-table.css');
require('react-bootstrap-table/css/react-bootstrap-table.css');
const propTypes = {
dashboard: PropTypes.object.isRequired,
@@ -129,7 +129,8 @@ class SliceAdder extends React.Component {
render() {
const hideLoad = this.slicesLoaded || this.errored;
const enableAddSlice = this.state.selectionMap && Object.keys(this.state.selectionMap).some(function (key) {
let enableAddSlice = this.state.selectionMap && Object.keys(this.state.selectionMap);
enableAddSlice = enableAddSlice.some(function (key) {
return this.state.selectionMap[key];
}, this);
const modalContent = (