Skip to content
This repository was archived by the owner on Apr 11, 2019. It is now read-only.

Commit ac81ecf

Browse files
committed
Feat: update eslint and fix broken rules
1 parent 299fff6 commit ac81ecf

14 files changed

+20
-9203
lines changed

.eslintrc.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@ module.exports = {
88
"node": true,
99
"jest": true
1010
},
11+
"settings": {
12+
"import/resolver": {
13+
"webpack": {
14+
"config": "webpack.config.babel.js"
15+
}
16+
}
17+
},
1118
"rules": {
1219
"func-names": 0,
1320
"eol-last": 0,

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,15 @@ The setup includes the ability to generate the boilerplate to create GraphQL / A
5252

5353
Take a look at the [Example Apps](https://github.com/RyanCCollins/scalable-react-boilerplate#example-apps) section to see examples of GraphQL configuration in practice.
5454

55+
### Flow
56+
Static types are all the rage in Front End JavaScript land right now.
57+
58+
We feel that the use of Static types is paramount in the evolution of JavaScript and as such have integrated the Flow static type-checking library.
59+
60+
The nice thing about Flow is that you can gradually introduce it into your app, much like we have done with the example code of this boilerplate. You can see a couple of examples of Flow in use in the project in the components directory. If this is not a feature you desire, then do not add the `// @flow` comment in any files.
61+
62+
We have provided library definitions within the [`config/flow-typed`](https://github.com/RyanCCollins/scalable-react-boilerplate/tree/master/config/flow-typed) folder and have also provided some useful configuration within the `.flowconfig` file.
63+
5564
# Documentation
5665

5766
## Getting Started

app/src/containers/AppContainer/actions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as types from './constants';
1+
import types from './constants';
22

33
// appContainerdefaultAction :: None -> {Action}
44
export const appContainerDefaultAction = () => ({ // eslint-disable-line
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
export const APPCONTAINER_DEFAULT_ACTION = 'APPCONTAINER_DEFAULT_ACTION';
1+
const APPCONTAINER_DEFAULT_ACTION = 'APPCONTAINER_DEFAULT_ACTION';
2+
export default APPCONTAINER_DEFAULT_ACTION;

app/src/containers/AppContainer/reducer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as types from './constants';
1+
import types from './constants';
22

33
export const initialState = {
44
isMobile: false,

server/public/0.e88acf300be901ae9c0b.chunk.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

server/public/1.a51bdce0735c6d783171.chunk.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

server/public/2.a8e4d14f99bd767fc6be.chunk.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)