Lint
This commit is contained in:
parent
030dfd383b
commit
5c64321c17
@ -4,7 +4,9 @@
|
||||
"rules": {
|
||||
"arrow-body-style":[0, "as-needed"], // fix `this` shortcut on ES6 classes
|
||||
"react/jsx-no-bind": 0, // Makes difficult to pass args to prop functions
|
||||
"react/jsx-curly-spacing": [2, "always"], // Spaces inside curlies
|
||||
"react/jsx-curly-spacing": [2, "always", {"spacing": {
|
||||
"objectLiterals": "never"
|
||||
}}], // Spaces inside curlies, except prop={{}}
|
||||
"react/prefer-stateless-function": 0, // Don't prefer stateless components
|
||||
"no-else-return": 0,
|
||||
},
|
||||
|
@ -30,7 +30,7 @@ window.stores = stores;
|
||||
|
||||
let DevTools;
|
||||
if (__DEV__) {
|
||||
DevTools = require('mobx-react-devtools').default;
|
||||
DevTools = require('mobx-react-devtools').default; // eslint-disable-line global-require
|
||||
}
|
||||
|
||||
function requireAuth(nextState, replace) {
|
||||
@ -43,7 +43,7 @@ function requireAuth(nextState, replace) {
|
||||
}
|
||||
|
||||
render((
|
||||
<div style={ { display: 'flex', flex: 1, minHeight: '100%' } }>
|
||||
<div style={{ display: 'flex', flex: 1, minHeight: '100%' }}>
|
||||
<Provider { ...stores }>
|
||||
<Router history={ History }>
|
||||
<Route path="/" component={ Application }>
|
||||
@ -75,6 +75,6 @@ render((
|
||||
</Route>
|
||||
</Router>
|
||||
</Provider>
|
||||
{ __DEV__ && <DevTools position={ { bottom: 0, right: 0 } } /> }
|
||||
{ __DEV__ && <DevTools position={{ bottom: 0, right: 0 }} /> }
|
||||
</div>
|
||||
), document.getElementById('root'));
|
||||
|
Reference in New Issue
Block a user