Skip to content

Everyone likes to flow these days - #52

Open
jirikolarik wants to merge 5 commits into
masterfrom
flow
Open

Everyone likes to flow these days#52
jirikolarik wants to merge 5 commits into
masterfrom
flow

Conversation

@jirikolarik

@jirikolarik jirikolarik commented Oct 24, 2017

Copy link
Copy Markdown
Member
Comment thread src/store/index.js
import { routerMiddleware, connectRouter } from 'connected-react-router';
// Import all reducers
import * as reducers from 'reducers';
import * as reducers from 'reducers/index';

Copy link
Copy Markdown

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

Comment thread src/store/index.js
@@ -1,10 +1,12 @@
// @flow

Copy link
Copy Markdown

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

Comment thread src/routes.js
@@ -1,3 +1,5 @@
// @flow

Copy link
Copy Markdown

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

Comment thread src/reducers/index.js
// @flow

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

Copy link
Copy Markdown

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

Comment thread src/reducers/index.js
@@ -1,3 +1,18 @@
// @flow

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

Copy link
Copy Markdown

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

Comment thread src/containers/layout.js
@@ -1,3 +1,5 @@
// @flow

Copy link
Copy Markdown

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

Comment thread src/containers/app.js

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

Copy link
Copy Markdown

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

Comment thread src/containers/app.js
componentDidMount() {
this.props.dispatch(loadApp());
}
const { dispatch } = this.props;

Copy link
Copy Markdown

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

Comment thread src/containers/app.js
import { connect } from 'react-redux';
import { loadApp } from 'actions/app';
import type { Dispatch } from 'actions/index';
import type { State } from 'reducers/index';

Copy link
Copy Markdown

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

Comment thread src/containers/app.js
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { loadApp } from 'actions/app';
import type { Dispatch } from 'actions/index';

Copy link
Copy Markdown

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

Comment thread src/actions/app.js
@@ -1,6 +1,12 @@
// @flow

Copy link
Copy Markdown

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

Comment thread src/actions/index.js

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

Copy link
Copy Markdown

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

Comment thread src/actions/index.js
@@ -0,0 +1,9 @@
// @flow

Copy link
Copy Markdown

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

Comment thread src/containers/app.js
import { loadApp } from 'actions/app';
import type { MapStateToProps } from 'react-redux';
import type { Dispatch } from 'actions/index';
import type { State } from 'reducers/index';

Copy link
Copy Markdown

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

Comment thread src/actions/app.js
@@ -1,6 +1,12 @@
// @flow

Copy link
Copy Markdown

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

Comment thread src/actions/index.js

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

Copy link
Copy Markdown

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

Comment thread src/actions/index.js
@@ -0,0 +1,9 @@
// @flow

Copy link
Copy Markdown

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

Comment thread src/containers/app.js
import { loadApp } from 'actions/app';
import type { MapStateToProps } from 'react-redux';
import type { Dispatch } from 'actions/index';
import type { State } from 'reducers/index';

Copy link
Copy Markdown

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

Comment thread src/containers/app.js
import { connect } from 'react-redux';
import { loadApp } from 'actions/app';
import type { MapStateToProps } from 'react-redux';
import type { Dispatch } from 'actions/index';

Copy link
Copy Markdown

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

Comment thread src/containers/app.js
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { loadApp } from 'actions/app';
import type { MapStateToProps } from 'react-redux';

Copy link
Copy Markdown

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

Comment thread src/containers/app.js
@@ -1,22 +1,32 @@
// @flow

Copy link
Copy Markdown

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

2 participants