Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Everyone likes to flow these days #52

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Everyone likes to flow these days #52

wants to merge 5 commits into from

Conversation

jirikolarik
Copy link
Member

@jirikolarik jirikolarik commented Oct 24, 2017

// Create final store using all reducers and applying middleware
import { createBrowserHistory } from 'history';
// Redux utility functions
import { compose, createStore, combineReducers, applyMiddleware } from 'redux';
import { routerMiddleware, connectRouter } from 'connected-react-router';
// Import all reducers
import * as reducers from 'reducers';
import * as reducers from 'reducers/index';

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unable to resolve path to module 'reducers/index' import/no-unresolved
Missing file extension for "reducers/index" import/extensions

@@ -1,10 +1,12 @@
// @flow

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Resolve error: package.json not found in path import/no-unresolved
Resolve error: package.json not found in path import/no-duplicates
Resolve error: package.json not found in path import/extensions
Resolve error: package.json not found in path import/no-absolute-path

@@ -1,3 +1,5 @@
// @flow

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Resolve error: package.json not found in path import/no-unresolved
Resolve error: package.json not found in path import/no-duplicates
Resolve error: package.json not found in path import/extensions
Resolve error: package.json not found in path import/no-absolute-path
Resolve error: package.json not found in path import/no-named-as-default
Resolve error: package.json not found in path import/no-named-as-default-member

// @flow

import type { Dispatch } from 'actions/index';
import type { AppState } from './app';

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unable to resolve path to module './app' import/no-unresolved
Missing file extension for "./app" import/extensions

@@ -1,3 +1,18 @@
// @flow

import type { Dispatch } from 'actions/index';

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unable to resolve path to module 'actions/index' import/no-unresolved
Missing file extension for "actions/index" import/extensions

@@ -1,3 +1,5 @@
// @flow

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Resolve error: package.json not found in path import/no-unresolved
Resolve error: package.json not found in path import/no-duplicates
Resolve error: package.json not found in path import/extensions
Resolve error: package.json not found in path import/no-absolute-path
Resolve error: package.json not found in path import/no-named-as-default
Resolve error: package.json not found in path import/no-named-as-default-member


render() {
if (!this.props.loaded) {
const { loaded } = this.props;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'loaded' is missing in props validation react/prop-types

componentDidMount() {
this.props.dispatch(loadApp());
}
const { dispatch } = this.props;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'dispatch' is missing in props validation react/prop-types

import React, { Component } from 'react';
import { connect } from 'react-redux';
import { loadApp } from 'actions/app';
import type { Dispatch } from 'actions/index';
import type { State } from 'reducers/index';

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unable to resolve path to module 'reducers/index' import/no-unresolved
Missing file extension for "reducers/index" import/extensions

import React, { Component } from 'react';
import { connect } from 'react-redux';
import { loadApp } from 'actions/app';
import type { Dispatch } from 'actions/index';

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unable to resolve path to module 'actions/index' import/no-unresolved
Missing file extension for "actions/index" import/extensions

@@ -1,6 +1,12 @@
// @flow

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Resolve error: package.json not found in path import/no-unresolved
Resolve error: package.json not found in path import/no-duplicates


import type {
LoadApp
} from './app';

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unable to resolve path to module './app' import/no-unresolved
Missing file extension for "./app" import/extensions

@@ -0,0 +1,9 @@
// @flow

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Resolve error: package.json not found in path import/no-unresolved
Resolve error: package.json not found in path import/no-duplicates
Resolve error: package.json not found in path import/extensions

import React, { Component } from 'react';
import { connect } from 'react-redux';
import { loadApp } from 'actions/app';
import type { MapStateToProps } from 'react-redux';
import type { Dispatch } from 'actions/index';
import type { State } from 'reducers/index';

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unable to resolve path to module 'reducers/index' import/no-unresolved
Missing file extension for "reducers/index" import/extensions

@@ -1,6 +1,12 @@
// @flow

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Resolve error: package.json not found in path import/no-unresolved
Resolve error: package.json not found in path import/no-duplicates


import type {
LoadApp
} from './app';

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unable to resolve path to module './app' import/no-unresolved
Missing file extension for "./app" import/extensions

@@ -0,0 +1,9 @@
// @flow

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Resolve error: package.json not found in path import/no-unresolved
Resolve error: package.json not found in path import/no-duplicates
Resolve error: package.json not found in path import/extensions

import React, { Component } from 'react';
import { connect } from 'react-redux';
import { loadApp } from 'actions/app';
import type { MapStateToProps } from 'react-redux';
import type { Dispatch } from 'actions/index';
import type { State } from 'reducers/index';

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unable to resolve path to module 'reducers/index' import/no-unresolved
Missing file extension for "reducers/index" import/extensions

import React, { Component } from 'react';
import { connect } from 'react-redux';
import { loadApp } from 'actions/app';
import type { MapStateToProps } from 'react-redux';
import type { Dispatch } from 'actions/index';

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unable to resolve path to module 'actions/index' import/no-unresolved
Missing file extension for "actions/index" import/extensions

import React, { Component } from 'react';
import { connect } from 'react-redux';
import { loadApp } from 'actions/app';
import type { MapStateToProps } from 'react-redux';

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unable to resolve path to module 'react-redux' import/no-unresolved
Missing file extension for "react-redux" import/extensions

@@ -1,22 +1,32 @@
// @flow

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Resolve error: package.json not found in path import/no-unresolved
Resolve error: package.json not found in path import/no-duplicates
Resolve error: package.json not found in path import/extensions
Resolve error: package.json not found in path import/no-named-as-default
Resolve error: package.json not found in path import/no-named-as-default-member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants