Skip to content
This repository was archived by the owner on Jul 19, 2019. It is now read-only.

Commit 3f51ede

Browse files
committed
Enable eslint rule: semi
1 parent 7e03db2 commit 3f51ede

File tree

5 files changed

+224
-225
lines changed

5 files changed

+224
-225
lines changed

.eslintrc

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
"react/jsx-uses-vars": "error",
99
"array-bracket-spacing": 0,
1010
"comma-dangle": 0,
11-
"semi": 0,
1211
"space-before-blocks": 0,
1312
"space-before-function-paren": 0
1413
}

examples/managed-menu-visibility/app.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import DOM from 'react-dom'
33
import Autocomplete from '../../lib/index'
44
import { getStates, matchStateToTerm, styles } from '../../lib/utils'
55

6-
const STATES = getStates();
6+
const STATES = getStates()
77

88
class App extends Component {
99

lib/Autocomplete.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -336,9 +336,9 @@ let Autocomplete = React.createClass({
336336
const node = this.refs.input
337337
const rect = node.getBoundingClientRect()
338338
const computedStyle = global.window.getComputedStyle(node)
339-
const marginBottom = parseInt(computedStyle.marginBottom, 10) || 0;
340-
const marginLeft = parseInt(computedStyle.marginLeft, 10) || 0;
341-
const marginRight = parseInt(computedStyle.marginRight, 10) || 0;
339+
const marginBottom = parseInt(computedStyle.marginBottom, 10) || 0
340+
const marginLeft = parseInt(computedStyle.marginLeft, 10) || 0
341+
const marginRight = parseInt(computedStyle.marginRight, 10) || 0
342342
this.setState({
343343
menuTop: rect.bottom + marginBottom,
344344
menuLeft: rect.left + marginLeft,
@@ -351,7 +351,7 @@ let Autocomplete = React.createClass({
351351
},
352352

353353
selectItemFromMouse (item) {
354-
const value = this.props.getItemValue(item);
354+
const value = this.props.getItemValue(item)
355355
this.setState({
356356
isOpen: false,
357357
highlightedIndex: null
@@ -426,7 +426,7 @@ let Autocomplete = React.createClass({
426426

427427
composeEventHandlers (internal, external) {
428428
return external
429-
? e => { internal(e); external(e); }
429+
? e => { internal(e); external(e) }
430430
: internal
431431
},
432432

0 commit comments

Comments
 (0)