Skip to content

Commit

Permalink
deps update (#58)
Browse files Browse the repository at this point in the history
* eslint update

* update flow-typed

* update test

* webpack update

* fix router dep
  • Loading branch information
zhenyulin committed Jul 9, 2018
1 parent a448aa0 commit c89d9f8
Show file tree
Hide file tree
Showing 97 changed files with 14,322 additions and 8,004 deletions.
27 changes: 14 additions & 13 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
parser: babel-eslint
parserOptions:
ecmaFeatures: {jsx: true}
Expand Down Expand Up @@ -29,27 +30,27 @@ plugins:
rules:
global-require: warn
no-underscore-dangle:
- error
- allow: [_id]
- error
- allow: [_id]
import/extensions: [warn, {js: never}]
import/no-extraneous-dependencies: off
import/no-named-as-default: off
jsx-a11y/no-noninteractive-element-interactions: off
import/no-extraneous-dependencies: 'off'
import/no-named-as-default: 'off'
jsx-a11y/no-noninteractive-element-interactions: 'off'
react/jsx-indent-props: [2, 2]
react/require-default-props: off
react/require-default-props: 'off'
react/jsx-filename-extension:
- warn
- extensions: [.js, .jsx]
- warn
- extensions: [.js, .jsx]
jest/no-disabled-tests: warn
jest/no-focused-tests: error
jest/no-identical-title: error
jest/valid-expect: error
prettier/prettier:
- error
- {
singleQuote: true,
trailingComma: all
}
- error
- {
singleQuote: true,
trailingComma: all
}
settings:
import/resolver:
node:
Expand Down
1 change: 1 addition & 0 deletions .stylelintrc.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
processors:
- stylelint-processor-styled-components
extends:
Expand Down
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
sudo: required
language: node_js
services:
Expand Down Expand Up @@ -31,5 +32,5 @@ branches:
cache:
yarn: true
directories:
- node_modules
- $CACHE_DIR
- node_modules
- $CACHE_DIR
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`basic-button renders 1`] = `
<button>
<button
type="button"
>
test
</button>
`;
2 changes: 1 addition & 1 deletion client/components/elements/basic-button.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export class BasicButton extends React.PureComponent {
const { className, text } = this.props;
const { func } = this.props;
return (
<button className={className} onClick={() => func()}>
<button className={className} type="button" onClick={() => func()}>
{text}
</button>
);
Expand Down
5 changes: 4 additions & 1 deletion client/containers/home.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,7 @@ const component = styled(Page)`
}
`;

export default connect(mapStateToProps, mapDispatchToProps)(component);
export default connect(
mapStateToProps,
mapDispatchToProps,
)(component);
9 changes: 5 additions & 4 deletions client/containers/second.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ const mapStateToProps = state => ({
selectedPost: getSelectedPost(state),
});

const mapDispatchToProps = dispatch => ({
const mapDispatchToProps = (dispatch: *) => ({
navigate: url => dispatch(push(url)),
get: () => dispatch(postActions.get()),
select: id => dispatch(postActions.select(id)),
Expand Down Expand Up @@ -143,6 +143,7 @@ const component = styled(Page)`
}
`;

export default connect(mapStateToProps, mapDispatchToProps)(
immutableToJS(component),
);
export default connect(
mapStateToProps,
mapDispatchToProps,
)(immutableToJS(component));
2 changes: 1 addition & 1 deletion client/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { createLogicMiddleware } from 'redux-logic';
import { createTracker } from 'redux-segment';

import reducer from './controllers/reducers';
import logics from './controllers/logics/';
import logics from './controllers/logics';

export default function setupStore(history) {
const middleware = [
Expand Down
1 change: 1 addition & 0 deletions config/webpack.client.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ const path = require('path');
const webpack = require('webpack');

module.exports = {
mode: 'development',
devtool: 'cheap-module-source-map',
target: 'web',
entry: [
Expand Down
8 changes: 1 addition & 7 deletions config/webpack.client.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ const path = require('path');
const webpack = require('webpack');

module.exports = {
mode: 'production',
devtool: 'source-map',
target: 'web',
entry: ['babel-polyfill', path.resolve('./client/index.js')],
Expand Down Expand Up @@ -46,12 +47,5 @@ module.exports = {
NODE_ENV: JSON.stringify('production'),
},
}),
new webpack.optimize.UglifyJsPlugin({
sourceMap: true,
minimize: true,
compress: {
warnings: false,
},
}),
],
};
1 change: 1 addition & 0 deletions config/webpack.server.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const nodeExternals = require('webpack-node-externals');
const StartServerPlugin = require('start-server-webpack-plugin');

module.exports = {
mode: 'development',
devtool: 'cheap-module-source-map',
watch: true,
target: 'node',
Expand Down
8 changes: 1 addition & 7 deletions config/webpack.server.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ const path = require('path');
const nodeExternals = require('webpack-node-externals');

module.exports = {
mode: 'production',
devtool: 'source-map',
target: 'node',
entry: ['babel-polyfill', path.resolve('./server/index')],
Expand Down Expand Up @@ -56,12 +57,5 @@ module.exports = {
NODE_ENV: JSON.stringify('production'),
},
}),
new webpack.optimize.UglifyJsPlugin({
sourceMap: true,
minimize: true,
compress: {
warnings: false,
},
}),
],
};
4 changes: 2 additions & 2 deletions flow-typed/npm/babel-core_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: e3993769a6a7a32cee11878c3b8f6a9d
// flow-typed version: <<STUB>>/babel-core_v^6.25.0/flow_v0.64.0
// flow-typed signature: c8cffb70bc2dd393a86ffecd84ccbfdb
// flow-typed version: <<STUB>>/babel-core_v^6.26.3/flow_v0.76.0

/**
* This is an autogenerated libdef stub for:
Expand Down
4 changes: 2 additions & 2 deletions flow-typed/npm/babel-eslint_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: 2fc3bcbc528edef12bb41914dcd1c38c
// flow-typed version: <<STUB>>/babel-eslint_v^8.0.1/flow_v0.64.0
// flow-typed signature: d32950bc6566fd7bff23ce06a674bb51
// flow-typed version: <<STUB>>/babel-eslint_v^8.2.5/flow_v0.76.0

/**
* This is an autogenerated libdef stub for:
Expand Down
4 changes: 2 additions & 2 deletions flow-typed/npm/babel-loader_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: c315b9737fb406838d3c91c38d85061b
// flow-typed version: <<STUB>>/babel-loader_v^7.0.0/flow_v0.64.0
// flow-typed signature: 07345949e04d5aed7f9e8dde8db078ab
// flow-typed version: <<STUB>>/babel-loader_v^7.1.5/flow_v0.76.0

/**
* This is an autogenerated libdef stub for:
Expand Down
11 changes: 9 additions & 2 deletions flow-typed/npm/babel-plugin-styled-components_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: 442551853e82802261c1f53be95ced08
// flow-typed version: <<STUB>>/babel-plugin-styled-components_v^1.3.0/flow_v0.64.0
// flow-typed signature: f168e6e1f8b3e89e74cedff42e196f06
// flow-typed version: <<STUB>>/babel-plugin-styled-components_v^1.5.1/flow_v0.76.0

/**
* This is an autogenerated libdef stub for:
Expand Down Expand Up @@ -94,6 +94,10 @@ declare module 'babel-plugin-styled-components/lib/visitors/templateLiterals/tra
declare module.exports: any;
}

declare module 'babel-plugin-styled-components/lib/visitors/uglifyPure' {
declare module.exports: any;
}

// Filename aliases
declare module 'babel-plugin-styled-components/lib/css/placeholderUtils.js' {
declare module.exports: $Exports<'babel-plugin-styled-components/lib/css/placeholderUtils'>;
Expand Down Expand Up @@ -149,3 +153,6 @@ declare module 'babel-plugin-styled-components/lib/visitors/templateLiterals/pre
declare module 'babel-plugin-styled-components/lib/visitors/templateLiterals/transpile.js' {
declare module.exports: $Exports<'babel-plugin-styled-components/lib/visitors/templateLiterals/transpile'>;
}
declare module 'babel-plugin-styled-components/lib/visitors/uglifyPure.js' {
declare module.exports: $Exports<'babel-plugin-styled-components/lib/visitors/uglifyPure'>;
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: 71eaa6501e20e1832e20487e9a867837
// flow-typed version: <<STUB>>/babel-plugin-transform-class-properties_v^6.24.1/flow_v0.64.0
// flow-typed signature: eebd75aac9101b8de7b9d665f7d1cbc0
// flow-typed version: <<STUB>>/babel-plugin-transform-class-properties_v^6.24.1/flow_v0.76.0

/**
* This is an autogenerated libdef stub for:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: 28ecf42a27d3b1e5a8b0e738b6f0dc85
// flow-typed version: <<STUB>>/babel-plugin-transform-flow-strip-types_v^6.22.0/flow_v0.64.0
// flow-typed signature: 7e06d1262f0f379fdffc8b4b1302b1ec
// flow-typed version: <<STUB>>/babel-plugin-transform-flow-strip-types_v^6.22.0/flow_v0.76.0

/**
* This is an autogenerated libdef stub for:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: 588c53f04a79dc222c91da56a94a1bfc
// flow-typed version: <<STUB>>/babel-plugin-transform-object-rest-spread_v^6.26.0/flow_v0.64.0
// flow-typed signature: 7e69a48cd48beeefe11bbc4016d6f041
// flow-typed version: <<STUB>>/babel-plugin-transform-object-rest-spread_v^6.26.0/flow_v0.76.0

/**
* This is an autogenerated libdef stub for:
Expand Down
4 changes: 2 additions & 2 deletions flow-typed/npm/babel-polyfill_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: 8644411ce2efd413a83482df63ae608a
// flow-typed version: <<STUB>>/babel-polyfill_v^6.23.0/flow_v0.64.0
// flow-typed signature: 5c6c253a9de1df5249dd28226ae62d43
// flow-typed version: <<STUB>>/babel-polyfill_v^6.23.0/flow_v0.76.0

/**
* This is an autogenerated libdef stub for:
Expand Down
4 changes: 2 additions & 2 deletions flow-typed/npm/babel-preset-env_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: ef2d9bfec8329a2eb219a3b6492893fa
// flow-typed version: <<STUB>>/babel-preset-env_v^1.6.1/flow_v0.64.0
// flow-typed signature: d2d3446f7ce3c0b79e6edd78c14c671e
// flow-typed version: <<STUB>>/babel-preset-env_v^1.6.1/flow_v0.76.0

/**
* This is an autogenerated libdef stub for:
Expand Down
4 changes: 2 additions & 2 deletions flow-typed/npm/babel-preset-react_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: af5f91c3ca9c86b67467f6ebf3e2607a
// flow-typed version: <<STUB>>/babel-preset-react_v^6.24.1/flow_v0.64.0
// flow-typed signature: b5ef6ceeb087ce6c619609f6d363cf76
// flow-typed version: <<STUB>>/babel-preset-react_v^6.24.1/flow_v0.76.0

/**
* This is an autogenerated libdef stub for:
Expand Down
46 changes: 44 additions & 2 deletions flow-typed/npm/concurrently_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: 32c24d945cf6dab59fd973919467e0b0
// flow-typed version: <<STUB>>/concurrently_v^3.5.0/flow_v0.64.0
// flow-typed signature: 6b22af9967ccd80bd524fa8c00e69962
// flow-typed version: <<STUB>>/concurrently_v^3.6.0/flow_v0.76.0

/**
* This is an autogenerated libdef stub for:
Expand All @@ -22,32 +22,74 @@ declare module 'concurrently' {
* require those files directly. Feel free to delete any files that aren't
* needed.
*/
declare module 'concurrently/src/findChild' {
declare module.exports: any;
}

declare module 'concurrently/src/main' {
declare module.exports: any;
}

declare module 'concurrently/src/parseCmds' {
declare module.exports: any;
}

declare module 'concurrently/src/pkgInfo' {
declare module.exports: any;
}

declare module 'concurrently/test/support/read-echo' {
declare module.exports: any;
}

declare module 'concurrently/test/support/signal' {
declare module.exports: any;
}

declare module 'concurrently/test/test-findChild' {
declare module.exports: any;
}

declare module 'concurrently/test/test-functional' {
declare module.exports: any;
}

declare module 'concurrently/test/test-parseCmds' {
declare module.exports: any;
}

declare module 'concurrently/test/utils' {
declare module.exports: any;
}

// Filename aliases
declare module 'concurrently/src/findChild.js' {
declare module.exports: $Exports<'concurrently/src/findChild'>;
}
declare module 'concurrently/src/main.js' {
declare module.exports: $Exports<'concurrently/src/main'>;
}
declare module 'concurrently/src/parseCmds.js' {
declare module.exports: $Exports<'concurrently/src/parseCmds'>;
}
declare module 'concurrently/src/pkgInfo.js' {
declare module.exports: $Exports<'concurrently/src/pkgInfo'>;
}
declare module 'concurrently/test/support/read-echo.js' {
declare module.exports: $Exports<'concurrently/test/support/read-echo'>;
}
declare module 'concurrently/test/support/signal.js' {
declare module.exports: $Exports<'concurrently/test/support/signal'>;
}
declare module 'concurrently/test/test-findChild.js' {
declare module.exports: $Exports<'concurrently/test/test-findChild'>;
}
declare module 'concurrently/test/test-functional.js' {
declare module.exports: $Exports<'concurrently/test/test-functional'>;
}
declare module 'concurrently/test/test-parseCmds.js' {
declare module.exports: $Exports<'concurrently/test/test-parseCmds'>;
}
declare module 'concurrently/test/utils.js' {
declare module.exports: $Exports<'concurrently/test/utils'>;
}
4 changes: 2 additions & 2 deletions flow-typed/npm/coveralls_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: d1b15bb8a91a692e77141944aa2a23c9
// flow-typed version: <<STUB>>/coveralls_v^3.0.0/flow_v0.64.0
// flow-typed signature: aff9585304b5893d9c77767312af1473
// flow-typed version: <<STUB>>/coveralls_v^3.0.2/flow_v0.76.0

/**
* This is an autogenerated libdef stub for:
Expand Down

0 comments on commit c89d9f8

Please sign in to comment.