Skip to content
This repository was archived by the owner on Jun 3, 2024. It is now read-only.

Commit f05e229

Browse files
mjclawarchriddyp
authored andcommitted
- Remove spaces inside curly braces for named imports
- Add newlines at end of file. - Add a .editorconfig for newlines at end of file.
1 parent 78797e8 commit f05e229

17 files changed

+36
-32
lines changed

.editorconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
root = true
2+
3+
[*]
4+
insert_final_newline = true

src/components/Checklist.react.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import PropTypes from 'prop-types';
22
import {append, contains, without} from 'ramda';
3-
import React, { Component } from 'react';
3+
import React, {Component} from 'react';
44

55
/**
66
* Checklist is a component that encapsulates several checkboxes.
@@ -151,4 +151,4 @@ Checklist.defaultProps = {
151151
labelStyle: {},
152152
labelClassName: '',
153153
options: []
154-
};
154+
};

src/components/DatePickerRange.react.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import {DateRangePicker} from 'react-dates';
22
import moment from 'moment';
33
import PropTypes from 'prop-types';
44
import R from 'ramda';
5-
import React, { Component } from 'react';
5+
import React, {Component} from 'react';
66

77
/**
88
* DatePickerRange is a tailor made component designed for selecting
@@ -328,4 +328,4 @@ DatePickerRange.defaultProps = {
328328
reopen_calendar_on_clear: false,
329329
clearable: false,
330330
disabled: false
331-
};
331+
};

src/components/DatePickerSingle.react.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import {SingleDatePicker} from 'react-dates';
22
import moment from 'moment';
33
import PropTypes from 'prop-types';
44
import R from 'ramda';
5-
import React, { Component } from 'react';
5+
import React, {Component} from 'react';
66

77
/**
88
* DatePickerSingle is a tailor made component designed for selecting
@@ -284,4 +284,4 @@ DatePickerSingle.defaultProps = {
284284
reopen_calendar_on_clear: false,
285285
clearable: false,
286286
disabled: false
287-
};
287+
};

src/components/Dropdown.react.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import PropTypes from 'prop-types';
22
import R, {omit} from 'ramda';
3-
import React, { Component } from 'react';
3+
import React, {Component} from 'react';
44
import ReactDropdown from 'react-virtualized-select';
55
import createFilterOptions from 'react-select-fast-filter-options';
66

@@ -184,4 +184,4 @@ Dropdown.defaultProps = {
184184
disabled: false,
185185
multi: false,
186186
searchable: true
187-
}
187+
};

src/components/Graph.react.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { Component } from 'react';
1+
import React, {Component} from 'react';
22
import PropTypes from 'prop-types';
33
import {contains, filter, has, isNil, type} from 'ramda';
44
/* global Plotly:true */
@@ -513,4 +513,4 @@ PlotlyGraph.defaultProps = {
513513
topojsonURL: 'https://cdn.plot.ly/',
514514
mapboxAccessToken: null
515515
}
516-
};
516+
};

src/components/Input.react.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { Component } from 'react';
1+
import React, {Component} from 'react';
22
import PropTypes from 'prop-types';
33
import {omit} from 'ramda';
44

@@ -32,7 +32,7 @@ export default class Input extends Component {
3232
this.setState({value: e.target.value});
3333
if (setProps) {
3434
if (type === 'number') {
35-
setProps({value: Number(e.target.value)});
35+
setProps({value: Number(e.target.value)});
3636
}
3737
else {
3838
setProps({value: e.target.value});
@@ -250,4 +250,4 @@ Input.propTypes = {
250250
setProps: PropTypes.func,
251251

252252
dashEvents: PropTypes.oneOf(['blur', 'change'])
253-
};
253+
};

src/components/Interval.react.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import PropTypes from 'prop-types';
2-
import React, { Component } from 'react'; //eslint-disable-line no-unused-vars
2+
import React, {Component} from 'react'; //eslint-disable-line no-unused-vars
33

44
/**
55
* A component that repeatedly fires an event ("interval")
@@ -91,4 +91,4 @@ Interval.propTypes = {
9191
Interval.defaultProps = {
9292
interval: 1000,
9393
n_intervals: 0
94-
};
94+
};

src/components/Link.react.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import PropTypes from 'prop-types';
44

5-
import React, { Component } from 'react';
5+
import React, {Component} from 'react';
66

77
/*
88
* event polyfill for IE
@@ -67,4 +67,4 @@ Link.propTypes = {
6767

6868
Link.defaultProps = {
6969
refresh: false
70-
};
70+
};

src/components/Location.react.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Component } from 'react';
1+
import {Component} from 'react';
22
import PropTypes from 'prop-types';
33
import R from 'ramda';
44
/* global window:true */
@@ -125,4 +125,4 @@ Location.propTypes = {
125125

126126
Location.defaultProps = {
127127
refresh: true
128-
};
128+
};

0 commit comments

Comments
 (0)