Fix(lint): Add import eslint and fix import errors

This commit is contained in:
Berkeley Martinez
2016-06-23 20:05:30 -07:00
parent cc0543d5df
commit 668bd74690
27 changed files with 103 additions and 144 deletions

View File

@@ -1,5 +1,7 @@
import { Observable } from 'rx';
/* eslint-disable import/no-unresolved */
import loopProtect from 'loop-protect';
/* eslint-enable import/no-unresolved */
import { updateContents } from '../../common/utils/polyvinyl';

View File

@@ -1,5 +1,7 @@
import Rx, { Observable, Subject } from 'rx';
/* eslint-disable import/no-unresolved */
import loopProtect from 'loop-protect';
/* eslint-enable import/no-unresolved */
import types from '../../common/app/routes/challenges/redux/types';
import {
updateOutput,

View File

@@ -1,5 +1,6 @@
import { hardGoTo } from '../../common/app/redux/types';
import types from '../../common/app/redux/types';
const { hardGoTo } = types;
export default function hardGoToSaga(action$, getState, { history }) {
return action$
.filter(({ type }) => type === hardGoTo)

View File

@@ -1,7 +1,8 @@
import { Observable } from 'rx';
import { initWindowHeight } from '../../common/app/redux/types';
import types from '../../common/app/redux/types';
import { updateWindowHeight } from '../../common/app/redux/actions';
const { initWindowHeight } = types;
function getWindowSize(document, window) {
const body = document.getElementsByTagName('body')[0];
return window.innerHeight ||