Remove the rest of the flow nonsense
This commit is contained in:
parent
d7af05dc4b
commit
7e05dcbc2e
@ -10,7 +10,6 @@
|
|||||||
"compat/compat": "error",
|
"compat/compat": "error",
|
||||||
"consistent-return": "off",
|
"consistent-return": "off",
|
||||||
"comma-dangle": "off",
|
"comma-dangle": "off",
|
||||||
"flowtype-errors/show-errors": "error",
|
|
||||||
"generator-star-spacing": "off",
|
"generator-star-spacing": "off",
|
||||||
"import/no-unresolved": "error",
|
"import/no-unresolved": "error",
|
||||||
"import/no-extraneous-dependencies": "off",
|
"import/no-extraneous-dependencies": "off",
|
||||||
@ -29,8 +28,6 @@
|
|||||||
"react/prefer-stateless-function": "off"
|
"react/prefer-stateless-function": "off"
|
||||||
},
|
},
|
||||||
"plugins": [
|
"plugins": [
|
||||||
"flowtype",
|
|
||||||
"flowtype-errors",
|
|
||||||
"import",
|
"import",
|
||||||
"promise",
|
"promise",
|
||||||
"compat",
|
"compat",
|
||||||
|
9
.vscode/settings.json
vendored
9
.vscode/settings.json
vendored
@ -1,9 +0,0 @@
|
|||||||
{
|
|
||||||
"javascript.validate.enable": false,
|
|
||||||
"search.exclude": {
|
|
||||||
".git": true,
|
|
||||||
"node_modules": true,
|
|
||||||
"flow-typed": true,
|
|
||||||
"bower_components": true
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,9 +1,7 @@
|
|||||||
// @flow
|
|
||||||
import React, { Component } from 'react';
|
import React, { Component } from 'react';
|
||||||
import { Link } from 'react-router';
|
import { Link } from 'react-router';
|
||||||
import styles from './Home.css';
|
import styles from './Home.css';
|
||||||
|
|
||||||
|
|
||||||
export default class Home extends Component {
|
export default class Home extends Component {
|
||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
// @flow
|
|
||||||
import React, { Component } from 'react';
|
import React, { Component } from 'react';
|
||||||
import type { Children } from 'react';
|
import type { Children } from 'react';
|
||||||
|
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
// @flow
|
|
||||||
import React, { Component } from 'react';
|
import React, { Component } from 'react';
|
||||||
import Home from '../components/Home';
|
import Home from '../components/Home';
|
||||||
|
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
// @flow
|
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { Provider } from 'react-redux';
|
import { Provider } from 'react-redux';
|
||||||
import { Router } from 'react-router';
|
import { Router } from 'react-router';
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
/* eslint global-require: 1, flowtype-errors/show-errors: 0 */
|
/* eslint global-require: 1 */
|
||||||
// @flow
|
|
||||||
import { app, BrowserWindow } from 'electron';
|
import { app, BrowserWindow } from 'electron';
|
||||||
import MenuBuilder from './menu';
|
import MenuBuilder from './menu';
|
||||||
|
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
// @flow
|
|
||||||
import { app, Menu, shell, BrowserWindow } from 'electron';
|
import { app, Menu, shell, BrowserWindow } from 'electron';
|
||||||
|
|
||||||
export default class MenuBuilder {
|
export default class MenuBuilder {
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
// @flow
|
|
||||||
import { combineReducers } from 'redux';
|
import { combineReducers } from 'redux';
|
||||||
import { routerReducer as routing } from 'react-router-redux';
|
import { routerReducer as routing } from 'react-router-redux';
|
||||||
|
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
// @flow
|
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { Route, IndexRoute } from 'react-router';
|
import { Route, IndexRoute } from 'react-router';
|
||||||
import App from './containers/App';
|
import App from './containers/App';
|
||||||
|
@ -5,9 +5,7 @@ import { routerMiddleware, push } from 'react-router-redux';
|
|||||||
import { createLogger } from 'redux-logger';
|
import { createLogger } from 'redux-logger';
|
||||||
import rootReducer from '../reducers';
|
import rootReducer from '../reducers';
|
||||||
|
|
||||||
|
export default (initialState = {}) => {
|
||||||
|
|
||||||
export default (initialState: ?counterStateType) => {
|
|
||||||
// Redux Configuration
|
// Redux Configuration
|
||||||
const middleware = [];
|
const middleware = [];
|
||||||
const enhancers = [];
|
const enhancers = [];
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
// @flow
|
|
||||||
if (process.env.NODE_ENV === 'production') {
|
if (process.env.NODE_ENV === 'production') {
|
||||||
module.exports = require('./configureStore.production'); // eslint-disable-line global-require
|
module.exports = require('./configureStore.production'); // eslint-disable-line global-require
|
||||||
} else {
|
} else {
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
// @flow
|
|
||||||
import { createStore, applyMiddleware } from 'redux';
|
import { createStore, applyMiddleware } from 'redux';
|
||||||
import thunk from 'redux-thunk';
|
import thunk from 'redux-thunk';
|
||||||
import { hashHistory } from 'react-router';
|
import { hashHistory } from 'react-router';
|
||||||
|
11
package.json
11
package.json
@ -6,7 +6,7 @@
|
|||||||
"main": "main.js",
|
"main": "main.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "cross-env NODE_ENV=test BABEL_DISABLE_CACHE=1 node --trace-warnings ./test/runTests.js",
|
"test": "cross-env NODE_ENV=test BABEL_DISABLE_CACHE=1 node --trace-warnings ./test/runTests.js",
|
||||||
"test-all": "npm run lint && npm run flow && npm run test && npm run build",
|
"test-all": "npm run lint && npm run test && npm run build",
|
||||||
"test-watch": "npm test -- --watch",
|
"test-watch": "npm test -- --watch",
|
||||||
"test-e2e": "cross-env NODE_ENV=test BABEL_DISABLE_CACHE=1 node --trace-warnings ./test/runTests.js e2e",
|
"test-e2e": "cross-env NODE_ENV=test BABEL_DISABLE_CACHE=1 node --trace-warnings ./test/runTests.js e2e",
|
||||||
"lint": "eslint --cache --format=node_modules/eslint-formatter-pretty .",
|
"lint": "eslint --cache --format=node_modules/eslint-formatter-pretty .",
|
||||||
@ -17,8 +17,6 @@
|
|||||||
"build-main": "cross-env NODE_ENV=production node --trace-warnings -r babel-register ./node_modules/webpack/bin/webpack --config webpack.config.main.prod.js --progress --profile --colors",
|
"build-main": "cross-env NODE_ENV=production node --trace-warnings -r babel-register ./node_modules/webpack/bin/webpack --config webpack.config.main.prod.js --progress --profile --colors",
|
||||||
"build-renderer": "cross-env NODE_ENV=production node --trace-warnings -r babel-register ./node_modules/webpack/bin/webpack --config webpack.config.renderer.prod.js --progress --profile --colors",
|
"build-renderer": "cross-env NODE_ENV=production node --trace-warnings -r babel-register ./node_modules/webpack/bin/webpack --config webpack.config.renderer.prod.js --progress --profile --colors",
|
||||||
"start": "cross-env NODE_ENV=production electron ./app/",
|
"start": "cross-env NODE_ENV=production electron ./app/",
|
||||||
"flow": "flow",
|
|
||||||
"flow-typed": "flow-typed install",
|
|
||||||
"start-hot-renderer": "cross-env HOT=1 NODE_ENV=development electron -r babel-register -r babel-polyfill ./app/main.development",
|
"start-hot-renderer": "cross-env HOT=1 NODE_ENV=development electron -r babel-register -r babel-polyfill ./app/main.development",
|
||||||
"postinstall": "concurrently \"npm run build-dll\" \"install-app-deps\" \"node node_modules/fbjs-scripts/node/check-dev-engines.js package.json\"",
|
"postinstall": "concurrently \"npm run build-dll\" \"install-app-deps\" \"node node_modules/fbjs-scripts/node/check-dev-engines.js package.json\"",
|
||||||
"dev": "cross-env START_HOT=1 npm run hot-updates-server",
|
"dev": "cross-env START_HOT=1 npm run hot-updates-server",
|
||||||
@ -80,15 +78,11 @@
|
|||||||
"url": "https://github.com/chentsulin"
|
"url": "https://github.com/chentsulin"
|
||||||
},
|
},
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"bugs": {
|
|
||||||
"url": "https://github.com/chentsulin/electron-react-boilerplate/issues"
|
|
||||||
},
|
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"electron",
|
"electron",
|
||||||
"boilerplate",
|
"boilerplate",
|
||||||
"react",
|
"react",
|
||||||
"redux",
|
"redux",
|
||||||
"flow",
|
|
||||||
"sass",
|
"sass",
|
||||||
"webpack",
|
"webpack",
|
||||||
"hot",
|
"hot",
|
||||||
@ -119,7 +113,6 @@
|
|||||||
"babel-loader": "^6.4.1",
|
"babel-loader": "^6.4.1",
|
||||||
"babel-plugin-add-module-exports": "^0.2.1",
|
"babel-plugin-add-module-exports": "^0.2.1",
|
||||||
"babel-plugin-dev-expression": "^0.2.1",
|
"babel-plugin-dev-expression": "^0.2.1",
|
||||||
"babel-plugin-flow-runtime": "^0.10.0",
|
|
||||||
"babel-plugin-transform-class-properties": "^6.23.0",
|
"babel-plugin-transform-class-properties": "^6.23.0",
|
||||||
"babel-plugin-transform-es2015-classes": "^6.23.0",
|
"babel-plugin-transform-es2015-classes": "^6.23.0",
|
||||||
"babel-polyfill": "^6.23.0",
|
"babel-polyfill": "^6.23.0",
|
||||||
@ -146,8 +139,6 @@
|
|||||||
"eslint-formatter-pretty": "^1.1.0",
|
"eslint-formatter-pretty": "^1.1.0",
|
||||||
"eslint-import-resolver-webpack": "^0.8.1",
|
"eslint-import-resolver-webpack": "^0.8.1",
|
||||||
"eslint-plugin-compat": "^1.0.2",
|
"eslint-plugin-compat": "^1.0.2",
|
||||||
"eslint-plugin-flowtype": "^2.30.4",
|
|
||||||
"eslint-plugin-flowtype-errors": "^3.0.3",
|
|
||||||
"eslint-plugin-import": "^2.2.0",
|
"eslint-plugin-import": "^2.2.0",
|
||||||
"eslint-plugin-jest": "^19.0.1",
|
"eslint-plugin-jest": "^19.0.1",
|
||||||
"eslint-plugin-jsx-a11y": "^4.0.0",
|
"eslint-plugin-jsx-a11y": "^4.0.0",
|
||||||
|
Reference in New Issue
Block a user