diff --git a/.eslintrc b/.eslintrc index 35fa3df..7b782ad 100644 --- a/.eslintrc +++ b/.eslintrc @@ -62,10 +62,12 @@ "space-before-blocks": 1, "no-empty": 1, - "space-before-function-parentheses": [1, "never"], + "space-before-function-paren": [1, "never"], "wrap-iife": 1, - "space-in-brackets": [1, "never"], + "object-curly-spacing": [1, "never"], + "array-bracket-spacing": [1, "never"], + "computed-property-spacing": [1, "never"], "space-in-parens": [1, "never"], "space-infix-ops": 1, diff --git a/demo/app.js b/demo/app.js index 5756099..ce34414 100644 --- a/demo/app.js +++ b/demo/app.js @@ -5,8 +5,8 @@ import ReactDom from 'react-dom'; import Shuffle from '../src/Shuffle'; const alphabet = [ - 'a','b','c','d','e','f','g','h','i','j','k','l','m', - 'n','o','p','q','r','s','t','u','v','w','x','y','z'] + 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', + 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'] const App = React.createClass({ getInitialState() { @@ -17,8 +17,8 @@ const App = React.createClass({ }, filterChildren() { if (this.state.filtered === false) { - let newChildren = this.state.children.filter(function(child,index){ - if (index % 2 ===0) { + let newChildren = this.state.children.filter(function(child, index) { + if (index % 2 === 0) { return child } }); @@ -38,11 +38,11 @@ const App = React.createClass({