Skip to content

Commit

Permalink
Fix linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ekosz committed Jan 16, 2017
1 parent f77b232 commit 850c4df
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 19 deletions.
3 changes: 0 additions & 3 deletions examples/universal-connected-redux/.eslintrc

This file was deleted.

9 changes: 0 additions & 9 deletions examples/universal-connected-redux/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,5 @@
"redux": "^3.6.0",
"webpack": "^2.1.0-beta.27",
"webpack-dev-middleware": "^1.8.4"
},
"devDependencies": {
"babel-eslint": "^7.0.0",
"eslint": "^3.8.1",
"eslint-config-react-app": "^0.5.0",
"eslint-plugin-flowtype": "^2.21.0",
"eslint-plugin-import": "^2.0.1",
"eslint-plugin-jsx-a11y": "^2.2.3",
"eslint-plugin-react": "^6.4.1"
}
}
1 change: 1 addition & 0 deletions examples/universal-connected-redux/src/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { BrowserProtocol } from 'farce';
import render from './render';
import genStore from './genStore';

// eslint-disable-next-line no-underscore-dangle
const store = genStore(new BrowserProtocol(), window.__PRELOADED_STATE__);
const matchContext = { store };
const ConnectedRouter = createConnectedRouter({ render });
Expand Down
7 changes: 0 additions & 7 deletions examples/universal-connected-redux/src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ import render from './render';
const PORT = 3000;
const app = express();

process.on('unhandledRejection', r => console.log(r));

const webpackConfig = {
entry: './src/client',

Expand Down Expand Up @@ -93,11 +91,6 @@ app.use(async (req, res) => {
));
});

app.use((err, req, res, next) => {
console.error(err.stack)
res.status(500).send({ error: 'Something failed!' })
});

app.listen(PORT, () => {
console.log(`listening on port ${PORT}`); // eslint-disable-line no-console
});

0 comments on commit 850c4df

Please sign in to comment.