diff --git a/.eslintrc b/.eslintrc index 07a8a70e..df066812 100644 --- a/.eslintrc +++ b/.eslintrc @@ -1,4 +1,5 @@ { + "parser": "babel-eslint", "env": { "browser": true, "node": true, @@ -10,7 +11,7 @@ "jsx": true, "templateStrings": true, "superInFunctions": false, - "classes": false, + "classes": true, "modules": [2] }, diff --git a/components/autocomplete/index.jsx b/components/autocomplete/index.jsx index 789c8ae0..ce78e245 100644 --- a/components/autocomplete/index.jsx +++ b/components/autocomplete/index.jsx @@ -1,6 +1,6 @@ import React from 'react'; import ReactDOM from 'react-dom'; -import autobind from 'autobind-decorator' +import autobind from 'autobind-decorator'; import utils from '../utils'; import Input from '../input'; import style from './style'; @@ -217,4 +217,4 @@ export default class Autocomplete extends React.Component { ); } -}; +} diff --git a/components/button/index.jsx b/components/button/index.jsx index d9d4b58d..86dfe467 100644 --- a/components/button/index.jsx +++ b/components/button/index.jsx @@ -1,5 +1,5 @@ import React from 'react'; -import autobind from 'autobind-decorator' +import autobind from 'autobind-decorator'; import FontIcon from '../font_icon'; import Ripple from '../ripple'; import style from './style.scss'; diff --git a/components/card/index.jsx b/components/card/index.jsx index 1df611b5..d1d8b13d 100644 --- a/components/card/index.jsx +++ b/components/card/index.jsx @@ -1,5 +1,5 @@ import React from 'react'; -import autobind from 'autobind-decorator' +import autobind from 'autobind-decorator'; import Navigation from '../navigation'; import Ripple from '../ripple'; import style from './style.scss'; @@ -93,4 +93,4 @@ export default class Card extends React.Component { loading (value) { this.setState({loading: value}); } -}; +} diff --git a/components/checkbox/index.jsx b/components/checkbox/index.jsx index 6b6be1d8..570efa20 100644 --- a/components/checkbox/index.jsx +++ b/components/checkbox/index.jsx @@ -1,5 +1,5 @@ import React from 'react'; -import autobind from 'autobind-decorator' +import autobind from 'autobind-decorator'; import Ripple from '../ripple'; import style from './style'; import events from '../utils/events'; @@ -91,4 +91,4 @@ export default class Checkbox extends React.Component { setValue (value) { this.setState({checked: value}); } -}; +} diff --git a/components/date_picker/calendar/day.jsx b/components/date_picker/calendar/day.jsx index c7423166..6dcc6ba9 100644 --- a/components/date_picker/calendar/day.jsx +++ b/components/date_picker/calendar/day.jsx @@ -1,5 +1,5 @@ import React from 'react'; -import autobind from 'autobind-decorator' +import autobind from 'autobind-decorator'; import time from '../../utils/time'; import style from './style'; @@ -34,4 +34,4 @@ export default class Day extends React.Component { ); } -}; +} diff --git a/components/date_picker/calendar/index.jsx b/components/date_picker/calendar/index.jsx index 2a3e9a2d..af9a29f7 100644 --- a/components/date_picker/calendar/index.jsx +++ b/components/date_picker/calendar/index.jsx @@ -1,5 +1,5 @@ import React from 'react'; -import autobind from 'autobind-decorator' +import autobind from 'autobind-decorator'; import CSSTransitionGroup from 'react-addons-css-transition-group'; import { SlideLeft, SlideRight } from '../../animations'; import FontIcon from '../../font_icon'; @@ -118,4 +118,4 @@ export default class Calendar extends React.Component { ); } -}; +} diff --git a/components/date_picker/calendar/month.jsx b/components/date_picker/calendar/month.jsx index 01b0936a..d7e9aefd 100644 --- a/components/date_picker/calendar/month.jsx +++ b/components/date_picker/calendar/month.jsx @@ -1,5 +1,5 @@ import React from 'react'; -import autobind from 'autobind-decorator' +import autobind from 'autobind-decorator'; import utils from '../../utils'; import Day from './day'; import style from './style'; @@ -47,4 +47,4 @@ export default class Month extends React.Component { ); } -}; +} diff --git a/components/date_picker/dialog.jsx b/components/date_picker/dialog.jsx index 50847a62..d2c530c4 100644 --- a/components/date_picker/dialog.jsx +++ b/components/date_picker/dialog.jsx @@ -1,5 +1,5 @@ import React from 'react'; -import autobind from 'autobind-decorator' +import autobind from 'autobind-decorator'; import style from './style'; import time from '../utils/time'; import Calendar from './calendar'; @@ -79,4 +79,4 @@ export default class CalendarDialog extends React.Component { ); } -}; +} diff --git a/components/date_picker/index.jsx b/components/date_picker/index.jsx index 04ee2bff..2e6eb2ee 100644 --- a/components/date_picker/index.jsx +++ b/components/date_picker/index.jsx @@ -1,5 +1,5 @@ import React from 'react'; -import autobind from 'autobind-decorator' +import autobind from 'autobind-decorator'; import style from './style'; import time from '../utils/time'; import events from '../utils/events'; @@ -63,4 +63,4 @@ export default class DatePicker extends React.Component { setValue (value) { this.setState({value: value}); } -}; +} diff --git a/components/dialog/index.jsx b/components/dialog/index.jsx index 405b46a1..cf8760cd 100644 --- a/components/dialog/index.jsx +++ b/components/dialog/index.jsx @@ -1,5 +1,5 @@ import React from 'react'; -import autobind from 'autobind-decorator' +import autobind from 'autobind-decorator'; import Button from '../button'; import style from './style'; @@ -58,4 +58,4 @@ export default class Dialog extends React.Component { hide () { this.setState({active: false}); } -}; +} diff --git a/components/drawer/index.jsx b/components/drawer/index.jsx index b7e14326..62747099 100644 --- a/components/drawer/index.jsx +++ b/components/drawer/index.jsx @@ -1,5 +1,5 @@ import React from 'react'; -import autobind from 'autobind-decorator' +import autobind from 'autobind-decorator'; import style from './style.scss'; @autobind @@ -48,4 +48,4 @@ export default class Drawer extends React.Component { hide () { this.setState({active: false}); } -}; +} diff --git a/components/dropdown/index.jsx b/components/dropdown/index.jsx index 2f8084ab..0464853e 100644 --- a/components/dropdown/index.jsx +++ b/components/dropdown/index.jsx @@ -1,5 +1,5 @@ import React from 'react'; -import autobind from 'autobind-decorator' +import autobind from 'autobind-decorator'; import ReactDOM from 'react-dom'; import Ripple from '../ripple'; import style from './style'; @@ -126,4 +126,4 @@ export default class Dropdown extends React.Component { setValue (data) { this.setState({selected: data}); } -}; +} diff --git a/components/font_icon/index.jsx b/components/font_icon/index.jsx index de62f946..2e6583d5 100644 --- a/components/font_icon/index.jsx +++ b/components/font_icon/index.jsx @@ -1,7 +1,7 @@ import React from 'react'; import style from './style'; -const FontIcon = props => { +const FontIcon = props => { let className = style[props.value]; if (props.className) className += ` ${props.className}`; return ( diff --git a/components/form/index.jsx b/components/form/index.jsx index 0bee7edf..e865cfe1 100644 --- a/components/form/index.jsx +++ b/components/form/index.jsx @@ -1,5 +1,5 @@ import React from 'react'; -import autobind from 'autobind-decorator' +import autobind from 'autobind-decorator'; import style from './style'; import Autocomplete from '../autocomplete'; import Button from '../button'; @@ -29,7 +29,7 @@ export default class Form extends React.Component { className: '' }; - state = { + state = { attributes: this.storage(this.props) }; @@ -163,4 +163,4 @@ export default class Form extends React.Component { } } } -}; +} diff --git a/components/input/index.jsx b/components/input/index.jsx index 1d912c42..512c9041 100644 --- a/components/input/index.jsx +++ b/components/input/index.jsx @@ -1,5 +1,5 @@ import React from 'react'; -import autobind from 'autobind-decorator' +import autobind from 'autobind-decorator'; import style from './style.scss'; import FontIcon from '../font_icon'; @@ -104,4 +104,4 @@ export default class Input extends React.Component { setValue (value) { this.setState({value: value}); } -}; +} diff --git a/components/link/index.jsx b/components/link/index.jsx index 48983944..50b047b5 100644 --- a/components/link/index.jsx +++ b/components/link/index.jsx @@ -4,17 +4,17 @@ import FontIcon from '../font_icon'; const Link = props => { let className = style.root; - if (this.props.className) className += ` ${this.props.className}`; + if (props.className) className += ` ${props.className}`; return ( - { this.props.icon ? : null } - { this.props.label ? {this.props.label} : null } - { this.props.count && parseInt(this.props.count) !== 0 ? {this.props.count} : null} + { props.icon ? : null } + { props.label ? {props.label} : null } + { props.count && parseInt(props.count) !== 0 ? {props.count} : null} ); }; diff --git a/components/list/item.jsx b/components/list/item.jsx index d8729a5f..ac7b5811 100644 --- a/components/list/item.jsx +++ b/components/list/item.jsx @@ -1,5 +1,5 @@ import React from 'react'; -import autobind from 'autobind-decorator' +import autobind from 'autobind-decorator'; import FontIcon from '../font_icon'; import ListItemContent from './content'; import Ripple from '../ripple'; @@ -57,4 +57,4 @@ export default class ListItem extends React.Component { ); } -}; +} diff --git a/components/list/list.jsx b/components/list/list.jsx index 9d89fbf9..b4f1dee0 100644 --- a/components/list/list.jsx +++ b/components/list/list.jsx @@ -1,5 +1,5 @@ import React from 'react'; -import autobind from 'autobind-decorator' +import autobind from 'autobind-decorator'; import ListItem from './item'; import style from './style'; @@ -40,4 +40,4 @@ export default class List extends React.Component { ); } -}; +} diff --git a/components/menu/icon_menu.jsx b/components/menu/icon_menu.jsx index 7f695cff..0fbc1374 100644 --- a/components/menu/icon_menu.jsx +++ b/components/menu/icon_menu.jsx @@ -1,5 +1,5 @@ import React from 'react'; -import autobind from 'autobind-decorator' +import autobind from 'autobind-decorator'; import FontIcon from '../font_icon'; import Menu from './menu'; import Ripple from '../ripple'; @@ -65,4 +65,4 @@ export default class IconMenu extends React.Component { ); } -}; +} diff --git a/components/menu/menu.jsx b/components/menu/menu.jsx index e526ddd6..af921899 100644 --- a/components/menu/menu.jsx +++ b/components/menu/menu.jsx @@ -1,6 +1,6 @@ import React from 'react'; import ReactDOM from 'react-dom'; -import autobind from 'autobind-decorator' +import autobind from 'autobind-decorator'; import MenuItem from './menu_item'; import utils from '../utils'; import style from './style.menu'; @@ -171,4 +171,4 @@ export default class Menu extends React.Component { hide () { this.setState({active: false}); } -}; +} diff --git a/components/menu/menu_divider.jsx b/components/menu/menu_divider.jsx index 8eac0f30..bb4e13a7 100644 --- a/components/menu/menu_divider.jsx +++ b/components/menu/menu_divider.jsx @@ -1,3 +1,4 @@ +/*eslint-disable no-unused-vars*/ import React from 'react'; import style from './style.menu_divider'; diff --git a/components/menu/menu_item.jsx b/components/menu/menu_item.jsx index d037a2b2..5608e30d 100644 --- a/components/menu/menu_item.jsx +++ b/components/menu/menu_item.jsx @@ -1,5 +1,5 @@ import React from 'react'; -import autobind from 'autobind-decorator' +import autobind from 'autobind-decorator'; import FontIcon from '../font_icon'; import Ripple from '../ripple'; import style from './style.menu_item'; @@ -53,4 +53,4 @@ export default class MenuItem extends React.Component { ); } -}; +} diff --git a/components/progress_bar/index.jsx b/components/progress_bar/index.jsx index cb22c3d2..29f974df 100644 --- a/components/progress_bar/index.jsx +++ b/components/progress_bar/index.jsx @@ -1,5 +1,5 @@ import React from 'react'; -import autobind from 'autobind-decorator' +import autobind from 'autobind-decorator'; import style from './style'; import prefixer from '../utils/prefixer'; @@ -86,4 +86,4 @@ export default class progressBar extends React.Component { ); } -}; +} diff --git a/components/radio/radio_button.jsx b/components/radio/radio_button.jsx index 25e21b3e..7b6f35f3 100644 --- a/components/radio/radio_button.jsx +++ b/components/radio/radio_button.jsx @@ -1,5 +1,5 @@ import React from 'react'; -import autobind from 'autobind-decorator' +import autobind from 'autobind-decorator'; import Ripple from '../ripple'; import style from './style'; import events from '../utils/events'; @@ -73,4 +73,4 @@ export default class RadioButton extends React.Component { focus () { this.refs.input.focus(); } -}; +} diff --git a/components/radio/radio_group.jsx b/components/radio/radio_group.jsx index 01d32afc..83497ba0 100644 --- a/components/radio/radio_group.jsx +++ b/components/radio/radio_group.jsx @@ -1,5 +1,5 @@ import React from 'react'; -import autobind from 'autobind-decorator' +import autobind from 'autobind-decorator'; import RadioButton from './radio_button'; @autobind @@ -58,4 +58,4 @@ export default class RadioGroup extends React.Component { setValue (value) { this.setState({value: value}); } -}; +} diff --git a/components/ripple/index.jsx b/components/ripple/index.jsx index 5a39cd4f..d90e6d58 100644 --- a/components/ripple/index.jsx +++ b/components/ripple/index.jsx @@ -1,6 +1,6 @@ import React from 'react'; import ReactDOM from 'react-dom'; -import autobind from 'autobind-decorator' +import autobind from 'autobind-decorator'; import style from './style.scss'; @autobind @@ -64,4 +64,4 @@ export default class Ripple extends React.Component { ); } -}; +} diff --git a/components/slider/index.jsx b/components/slider/index.jsx index 5b7fe55a..ee877c5a 100644 --- a/components/slider/index.jsx +++ b/components/slider/index.jsx @@ -1,6 +1,6 @@ import React from 'react'; import ReactDOM from 'react-dom'; -import autobind from 'autobind-decorator' +import autobind from 'autobind-decorator'; import style from './style'; import utils from '../utils'; import ProgressBar from '../progress_bar'; @@ -250,4 +250,4 @@ export default class Slider extends React.Component { setValue (value) { this.setState({value: value}); } -}; +} diff --git a/components/snackbar/index.jsx b/components/snackbar/index.jsx index 3266bc4b..cadb1d1f 100644 --- a/components/snackbar/index.jsx +++ b/components/snackbar/index.jsx @@ -1,5 +1,5 @@ import React from 'react'; -import autobind from 'autobind-decorator' +import autobind from 'autobind-decorator'; import style from './style'; import Button from '../button'; import FontIcon from '../font_icon'; @@ -66,4 +66,4 @@ export default class Slider extends React.Component { }, this.props.timeout * 1000); } } -}; +} diff --git a/components/switch/index.jsx b/components/switch/index.jsx index 2bba1845..0dc6352b 100644 --- a/components/switch/index.jsx +++ b/components/switch/index.jsx @@ -1,5 +1,5 @@ import React from 'react'; -import autobind from 'autobind-decorator' +import autobind from 'autobind-decorator'; import Ripple from '../ripple'; import style from './style'; import events from '../utils/events'; @@ -91,4 +91,4 @@ export default class Switch extends React.Component { setValue (value) { this.setState({checked: value}); } -}; +} diff --git a/components/tabs/tab.jsx b/components/tabs/tab.jsx index dd532bd4..6f7217d7 100644 --- a/components/tabs/tab.jsx +++ b/components/tabs/tab.jsx @@ -1,5 +1,5 @@ import React from 'react'; -import autobind from 'autobind-decorator' +import autobind from 'autobind-decorator'; import style from './style'; @autobind @@ -49,4 +49,4 @@ export default class Tab extends React.Component { this.props.onActive(this); } } -}; +} diff --git a/components/tabs/tabs.jsx b/components/tabs/tabs.jsx index c646d8b6..99c83240 100644 --- a/components/tabs/tabs.jsx +++ b/components/tabs/tabs.jsx @@ -1,5 +1,5 @@ import React from 'react'; -import autobind from 'autobind-decorator' +import autobind from 'autobind-decorator'; import style from './style'; @autobind @@ -100,4 +100,4 @@ export default class Tabs extends React.Component { this.props.onActive(this); } } -}; +} diff --git a/components/time_picker/clock/face.jsx b/components/time_picker/clock/face.jsx index f864e6ef..5105c4cd 100644 --- a/components/time_picker/clock/face.jsx +++ b/components/time_picker/clock/face.jsx @@ -1,5 +1,5 @@ import React from 'react'; -import autobind from 'autobind-decorator' +import autobind from 'autobind-decorator'; import style from './style'; @autobind @@ -53,4 +53,4 @@ export default class Face extends React.Component { ); } -}; +} diff --git a/components/time_picker/clock/hand.jsx b/components/time_picker/clock/hand.jsx index a1937c8f..77e58446 100644 --- a/components/time_picker/clock/hand.jsx +++ b/components/time_picker/clock/hand.jsx @@ -1,5 +1,5 @@ import React from 'react'; -import autobind from 'autobind-decorator' +import autobind from 'autobind-decorator'; import style from './style'; import utils from '../../utils'; @@ -106,4 +106,4 @@ export default class Hand extends React.Component { ); } -}; +} diff --git a/components/time_picker/clock/hours.jsx b/components/time_picker/clock/hours.jsx index cbbe88af..5809cc6d 100644 --- a/components/time_picker/clock/hours.jsx +++ b/components/time_picker/clock/hours.jsx @@ -1,5 +1,5 @@ import React from 'react'; -import autobind from 'autobind-decorator' +import autobind from 'autobind-decorator'; import utils from '../../utils'; import Face from './face'; import Hand from './hand'; @@ -91,4 +91,4 @@ export default class Hours extends React.Component { ); } -}; +} diff --git a/components/time_picker/clock/index.jsx b/components/time_picker/clock/index.jsx index 30f1cd0f..4e80ec96 100644 --- a/components/time_picker/clock/index.jsx +++ b/components/time_picker/clock/index.jsx @@ -1,5 +1,5 @@ import React from 'react'; -import autobind from 'autobind-decorator' +import autobind from 'autobind-decorator'; import style from './style'; import time from '../../utils/time'; import Hours from './hours'; @@ -114,4 +114,4 @@ export default class Clock extends React.Component { ); } -}; +} diff --git a/components/time_picker/clock/minutes.jsx b/components/time_picker/clock/minutes.jsx index 84f8753d..eab2d40d 100644 --- a/components/time_picker/clock/minutes.jsx +++ b/components/time_picker/clock/minutes.jsx @@ -1,5 +1,5 @@ import React from 'react'; -import autobind from 'autobind-decorator' +import autobind from 'autobind-decorator'; import utils from '../../utils'; import style from './style'; import Face from './face'; @@ -55,4 +55,4 @@ export default class Minutes extends React.Component { ); } -}; +} diff --git a/components/time_picker/dialog.jsx b/components/time_picker/dialog.jsx index b59745e9..1bc0f80f 100644 --- a/components/time_picker/dialog.jsx +++ b/components/time_picker/dialog.jsx @@ -1,5 +1,5 @@ import React from 'react'; -import autobind from 'autobind-decorator' +import autobind from 'autobind-decorator'; import style from './style'; import time from '../utils/time'; import Clock from './clock'; @@ -105,4 +105,4 @@ export default class TimePickerDialog extends React.Component { ); } -}; +} diff --git a/components/time_picker/index.jsx b/components/time_picker/index.jsx index f751755e..af4b5a47 100644 --- a/components/time_picker/index.jsx +++ b/components/time_picker/index.jsx @@ -1,5 +1,5 @@ import React from 'react'; -import autobind from 'autobind-decorator' +import autobind from 'autobind-decorator'; import time from '../utils/time'; import style from './style'; import events from '../utils/events'; @@ -66,4 +66,4 @@ export default class TimePicker extends React.Component { setValue (value) { this.setState({value: value}); } -}; +} diff --git a/package.json b/package.json index cdede9b0..aa5d5ccc 100644 --- a/package.json +++ b/package.json @@ -49,6 +49,7 @@ "devDependencies": { "autoprefixer-core": "^5.1.11", "babel-core": "^5.8.23", + "babel-eslint": "^4.1.3", "babel-loader": "^5.3.2", "babel-runtime": "^5.8.20", "css-loader": "^0.16.0", diff --git a/spec/components/autocomplete.jsx b/spec/components/autocomplete.jsx index fd2796d5..bff6cc1f 100644 --- a/spec/components/autocomplete.jsx +++ b/spec/components/autocomplete.jsx @@ -1,5 +1,5 @@ import React from 'react'; -import autobind from 'autobind-decorator' +import autobind from 'autobind-decorator'; import Autocomplete from '../../components/autocomplete'; @autobind @@ -45,4 +45,4 @@ export default class AutocompleteTest extends React.Component { ); } -}; +} diff --git a/spec/components/button.jsx b/spec/components/button.jsx index 3d2ebc42..641c4f7e 100644 --- a/spec/components/button.jsx +++ b/spec/components/button.jsx @@ -1,3 +1,4 @@ +/*eslint-disable no-unused-vars*/ import React from 'react'; import Button from '../../components/button'; diff --git a/spec/components/card.jsx b/spec/components/card.jsx index 47ff40ca..cf756d22 100644 --- a/spec/components/card.jsx +++ b/spec/components/card.jsx @@ -1,5 +1,5 @@ import React from 'react'; -import autobind from 'autobind-decorator' +import autobind from 'autobind-decorator'; import Card from '../../components/card'; @autobind @@ -36,4 +36,4 @@ export default class CardTest extends React.Component { ); } -}; +} diff --git a/spec/components/checkbox.jsx b/spec/components/checkbox.jsx index 329bc472..3a37fef7 100644 --- a/spec/components/checkbox.jsx +++ b/spec/components/checkbox.jsx @@ -1,5 +1,5 @@ import React from 'react'; -import autobind from 'autobind-decorator' +import autobind from 'autobind-decorator'; import Checkbox from '../../components/checkbox'; @autobind @@ -46,4 +46,4 @@ export default class CheckboxTest extends React.Component { ); } -}; +} diff --git a/spec/components/dialog.jsx b/spec/components/dialog.jsx index 206c9e75..f1051f27 100644 --- a/spec/components/dialog.jsx +++ b/spec/components/dialog.jsx @@ -1,5 +1,5 @@ import React from 'react'; -import autobind from 'autobind-decorator' +import autobind from 'autobind-decorator'; import Button from '../../components/button'; import Dialog from '../../components/dialog'; @@ -32,4 +32,4 @@ export default class DialogTest extends React.Component { ); } -}; +} diff --git a/spec/components/drawer.jsx b/spec/components/drawer.jsx index 29e18546..586477a6 100644 --- a/spec/components/drawer.jsx +++ b/spec/components/drawer.jsx @@ -1,5 +1,5 @@ import React from 'react'; -import autobind from 'autobind-decorator' +import autobind from 'autobind-decorator'; import Button from '../../components/button'; import Drawer from '../../components/drawer'; @@ -32,4 +32,4 @@ export default class DrawerTest extends React.Component { ); } -}; +} diff --git a/spec/components/dropdown.jsx b/spec/components/dropdown.jsx index 994e0418..8e89f09e 100644 --- a/spec/components/dropdown.jsx +++ b/spec/components/dropdown.jsx @@ -1,5 +1,5 @@ import React from 'react'; -import autobind from 'autobind-decorator' +import autobind from 'autobind-decorator'; import Dropdown from '../../components/dropdown'; @autobind @@ -50,4 +50,4 @@ export default class DropdownTest extends React.Component { ); } -}; +} diff --git a/spec/components/font_icon.jsx b/spec/components/font_icon.jsx index ba115a79..8caad367 100644 --- a/spec/components/font_icon.jsx +++ b/spec/components/font_icon.jsx @@ -1,3 +1,4 @@ +/*eslint-disable no-unused-vars*/ import React from 'react'; import FontIcon from '../../components/font_icon'; diff --git a/spec/components/form.jsx b/spec/components/form.jsx index 602f142e..2de1db2d 100644 --- a/spec/components/form.jsx +++ b/spec/components/form.jsx @@ -1,5 +1,5 @@ import React from 'react'; -import autobind from 'autobind-decorator' +import autobind from 'autobind-decorator'; import Form from '../../components/form'; @autobind @@ -42,4 +42,4 @@ export default class FormTest extends React.Component { ); } -}; +} diff --git a/spec/components/icon_menu.jsx b/spec/components/icon_menu.jsx index 7bcb0cb9..e657bf95 100644 --- a/spec/components/icon_menu.jsx +++ b/spec/components/icon_menu.jsx @@ -1,5 +1,5 @@ import React from 'react'; -import autobind from 'autobind-decorator' +import autobind from 'autobind-decorator'; import { MenuItem, IconMenu } from '../../components/menu'; @autobind @@ -43,4 +43,4 @@ export default class IconMenuTest extends React.Component { ); } -}; +} diff --git a/spec/components/input.jsx b/spec/components/input.jsx index dbb3bc11..467b6904 100644 --- a/spec/components/input.jsx +++ b/spec/components/input.jsx @@ -1,3 +1,4 @@ +/*eslint-disable no-unused-vars*/ import React from 'react'; import Input from '../../components/input'; diff --git a/spec/components/link.jsx b/spec/components/link.jsx index a409d1ae..48a29c47 100644 --- a/spec/components/link.jsx +++ b/spec/components/link.jsx @@ -1,3 +1,4 @@ +/*eslint-disable no-unused-vars*/ import React from 'react'; import Link from '../../components/link'; diff --git a/spec/components/menu.jsx b/spec/components/menu.jsx index 9d8d4392..5e74ede8 100644 --- a/spec/components/menu.jsx +++ b/spec/components/menu.jsx @@ -1,5 +1,5 @@ import React from 'react'; -import autobind from 'autobind-decorator' +import autobind from 'autobind-decorator'; import { Menu, MenuItem, MenuDivider } from '../../components/menu'; @autobind @@ -30,4 +30,4 @@ export default class MenuTest extends React.Component { ); } -}; +} diff --git a/spec/components/navigation.jsx b/spec/components/navigation.jsx index 80ff8c19..080829e4 100644 --- a/spec/components/navigation.jsx +++ b/spec/components/navigation.jsx @@ -1,5 +1,5 @@ import React from 'react'; -import autobind from 'autobind-decorator' +import autobind from 'autobind-decorator'; import Navigation from '../../components/navigation'; @autobind @@ -21,4 +21,4 @@ export default class NavigationTest extends React.Component { ); } -}; +} diff --git a/spec/components/pickers.jsx b/spec/components/pickers.jsx index 724a3e6b..60683573 100644 --- a/spec/components/pickers.jsx +++ b/spec/components/pickers.jsx @@ -1,3 +1,4 @@ +/*eslint-disable no-unused-vars*/ import React from 'react'; import DatePicker from '../../components/date_picker'; import TimePicker from '../../components/time_picker'; diff --git a/spec/components/progress.jsx b/spec/components/progress.jsx index 6aa96537..9b549483 100644 --- a/spec/components/progress.jsx +++ b/spec/components/progress.jsx @@ -1,5 +1,5 @@ import React from 'react'; -import autobind from 'autobind-decorator' +import autobind from 'autobind-decorator'; import ProgressBar from '../../components/progress_bar'; @autobind @@ -50,4 +50,4 @@ export default class ProgressBarTest extends React.Component { ); } -}; +} diff --git a/spec/components/radio.jsx b/spec/components/radio.jsx index 8967047c..d6bc82b3 100644 --- a/spec/components/radio.jsx +++ b/spec/components/radio.jsx @@ -1,5 +1,5 @@ import React from 'react'; -import autobind from 'autobind-decorator' +import autobind from 'autobind-decorator'; import { RadioGroup, RadioButton } from '../../components/radio'; @autobind @@ -31,4 +31,4 @@ export default class RadioGroupTest extends React.Component { ); } -}; +} diff --git a/spec/components/slider.jsx b/spec/components/slider.jsx index d16c4247..bf65429b 100644 --- a/spec/components/slider.jsx +++ b/spec/components/slider.jsx @@ -1,3 +1,4 @@ +/*eslint-disable no-unused-vars*/ import React from 'react'; import Slider from '../../components/slider'; diff --git a/spec/components/snackbar.jsx b/spec/components/snackbar.jsx index a3f7c40b..afe9e63c 100644 --- a/spec/components/snackbar.jsx +++ b/spec/components/snackbar.jsx @@ -1,5 +1,5 @@ import React from 'react'; -import autobind from 'autobind-decorator' +import autobind from 'autobind-decorator'; import Button from '../../components/button'; import Snackbar from '../../components/snackbar'; diff --git a/spec/components/switch.jsx b/spec/components/switch.jsx index 6c145433..8a96e8fd 100644 --- a/spec/components/switch.jsx +++ b/spec/components/switch.jsx @@ -1,5 +1,5 @@ import React from 'react'; -import autobind from 'autobind-decorator' +import autobind from 'autobind-decorator'; import Switch from '../../components/switch'; @autobind @@ -19,4 +19,4 @@ export default class SwitchTest extends React.Component { ); } -}; +} diff --git a/spec/components/tabs.jsx b/spec/components/tabs.jsx index 62b58573..2a3406cd 100644 --- a/spec/components/tabs.jsx +++ b/spec/components/tabs.jsx @@ -1,3 +1,4 @@ +/*eslint-disable no-unused-vars*/ import React from 'react'; import { Tabs, Tab } from '../../components/tabs';