Comments (5)
This is actually a pretty nice idea, @Piero87. I've played a bit with the loader and it seems to be working great with webpack 3.
Something I've been thinking is, should I keep the eslint rules as it is, using Airbnb's config, or rework them to return warnings instead of errors (similar to create-react-app). What do you thing?
Regardless of that, I would most certainly integrate eslint-loader to the project. I will first test it a bit more on a branch, react-webpack-boilerplate/eslint-loader, and I hope to add it to the project by the end of the week.
Once again, thanks for the great suggestion! 🎉
from react-webpack-boilerplate.
I appreciate you think is a good idea, I think that to write a good JavaScript You have to stick to the guides, otherwise you risk only with the warnings of not looking and writing maybe in a bad way. If you work in a team for example is really important that everyone write the same code As if everyone was the same person, giving continuity to the code. So the Eslint give you a block with error that you must to fix before go on. I take that suggestion reading this amazing blog:
https://www.robinwieruch.de/react-eslint-webpack-babel/#eslintBabel
https://www.robinwieruch.de/minimal-react-webpack-babel-setup/#babelSetup
from react-webpack-boilerplate.
From what I understand you favor eslint's errors more than the warnings, right?
from react-webpack-boilerplate.
Yes, I'm always in favor of writing a good javascript, so I in this way is better the error than the warning. I don't know if it's possible in webpack, but you could use a parameter to enable or disable it at the startup of the script, maybe with two start different start script.
from react-webpack-boilerplate.
With #148, the project now supports continuous linting.
from react-webpack-boilerplate.
Related Issues (20)
- commands not working in Windows environment HOT 2
- Unused dependency: postcss-loader HOT 1
- Build: react-hot-loader should be a dev-dependency HOT 1
- What's the correct path of assets? HOT 3
- Problem with loading fonts. File-loader HOT 2
- Able to to add an Express server (to serve App + Provide an API) HOT 1
- Add Server Side Rendering HOT 2
- Update React to version 16
- URL Loader Invalid Options HOT 4
- Tests runs fails
- Use babel-env instead of stage presets HOT 1
- Refresh on deeper links does not work HOT 4
- Warning and Bug: in react-hot-loader: 4.0.0-beta.1 HOT 2
- browser not hot loading
- Test script throws error when prop-types are imported HOT 1
- Update webpack to version 4
- Blank Screen after rendering in production HOT 2
- Replace open-browser-webpack-plugin with opn
- Cannot find module '@babel/core' HOT 2
- Async await throws error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-webpack-boilerplate.