Skip to content

Commit

Permalink
Enable the no-class-assign (#1398)
Browse files Browse the repository at this point in the history
* Enable the no-class-assign

* Fix Row export
  • Loading branch information
amanmahajan7 authored Nov 26, 2018
1 parent cb4fdc4 commit fd6bed9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
1 change: 1 addition & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"no-new-symbol": 2,
"no-this-before-super": 2,
"arrow-spacing": 1,
"no-class-assign": 2,
/**
* Variables
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,8 @@ DraggableHeaderCell.propTypes = {
children: PropTypes.element.isRequired
};

DraggableHeaderCell = DropTarget('Column', target, targetCollect)(
DraggableHeaderCell
export default DragSource('Column', headerCellSource, collect)(
DropTarget('Column', target, targetCollect)(
DraggableHeaderCell
)
);
DraggableHeaderCell = DragSource('Column', headerCellSource, collect)(
DraggableHeaderCell
);

export default DraggableHeaderCell;
7 changes: 5 additions & 2 deletions packages/react-data-grid/src/index.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
import Grid from './ReactDataGrid';
import RowComparer from 'common/utils/RowComparer';
import Cell from './Cell';
import Row from './Row';
import EmptyChildRow from './EmptyChildRow';

module.exports = Grid;
module.exports.Row = require('./Row');
module.exports.Row = Row;
module.exports.Cell = Cell;
module.exports.HeaderCell = require('./HeaderCell');
module.exports.RowComparer = RowComparer;
module.exports.EmptyChildRow = require('./EmptyChildRow');
module.exports.EmptyChildRow = EmptyChildRow;
module.exports.editors = require('common/editors');
module.exports.formatters = require('./formatters');
module.exports.shapes = require('common/prop-shapes');
Expand Down

0 comments on commit fd6bed9

Please sign in to comment.