Skip to content
This repository was archived by the owner on Feb 19, 2022. It is now read-only.

Conversation

@kenwheeler
Copy link
Contributor

  • Updates dependencies
  • Swaps Airbnb for eslint-config-formidable
  • Adds PWA prerequisites

- Swaps Airbnb for eslint-config-formidable
- Adds PWA prerequisites
@coveralls
Copy link

coveralls commented Jan 12, 2017

Coverage Status

Coverage remained the same at 50.0% when pulling 3222f58 on update-dependencies into 06a8941 on master.

@coveralls
Copy link

coveralls commented Jan 12, 2017

Coverage Status

Coverage remained the same at 50.0% when pulling b563226 on update-dependencies into 06a8941 on master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage remained the same at 50.0% when pulling b563226 on update-dependencies into 06a8941 on master.

@kenwheeler kenwheeler merged commit 86dc723 into master Jan 12, 2017
Copy link
Member

@ryan-roemer ryan-roemer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mostly minor stuff and future tickets. Nice work Ken!

extends: 'airbnb',
extends: 'formidable/configurations/es6-react',
env: {
browser: true,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Future work -- this eslint should be split and more nuanced. It combines both the Test and App eslint configs. In the future, remove the test stuff and add test/.eslintrc or something...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should probably split for server code too huh?

options: {
eslint: {
configFile: path.resolve('./configuration/eslint/eslint.js'),
useEslintrc: false
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should use eslintrc as a future ticket so editors can pick things up, etc.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It works in my editor (VSCode). Which editors are you aware of it not working in?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was just thinking editors probably pick up DIR/.eslintrc more easily but without any actual research on my part 😛

Whatever you think is best as long as we have "good" editor support.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And when I made comment, I didn't see your package.json entry. If we split directories we might need to switch to one-off's anyways....

But, feel free to keep a "base" in ./configuration/eslint/** if you'd like and otherwise need to split .eslintrc's across dirs!

new HtmlWebpackInlineSourcePlugin(),
new webpack.LoaderOptionsPlugin({
options: {
eslint: {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here.

<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="theme-color" content="#db5945">
<title>Formidable React App Starter</title>
<link rel="manifest" href="/manifest.webmanifest">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can manifest be relative?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

presumably

"description": "A modern ReactJS starter template.",
"icons": [
{
"src": "/icons/icon-72x72.png",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can these be relative?

"coveralls": "^2.11.12",
"cross-env": "^2.0.0",
"css-loader": "^0.23.1",
"cross-env": "^3.1.4",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Future ticket: remove cross-env, use builder --env='{"NAME":"value"}'

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

</AppContainer>,
document.getElementById('root')
);
if (process.env.NODE_ENV !== 'development') {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want to make this stronger and actually production|staging? Just thinking about test, etc.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably.

if (module.hot) {
module.hot.accept('./routes', () => {
// TODO: Remove console override when
// https://github.com/reactjs/react-router/issues/2704 is fixed
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a tracking issue in our repo too.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants