-
Notifications
You must be signed in to change notification settings - Fork 10
Update boilerplate #52
Conversation
kenwheeler
commented
Jan 12, 2017
- Updates dependencies
- Swaps Airbnb for eslint-config-formidable
- Adds PWA prerequisites
- Swaps Airbnb for eslint-config-formidable - Adds PWA prerequisites
1 similar comment
ryan-roemer
left a comment
There was a problem hiding this 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, |
There was a problem hiding this comment.
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...
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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: { |
There was a problem hiding this comment.
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"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can manifest be relative?
There was a problem hiding this comment.
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", |
There was a problem hiding this comment.
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", |
There was a problem hiding this comment.
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"}'
There was a problem hiding this comment.
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') { |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍