You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.
So I think it would be good to enable this, but perhaps only for errors and not warnings (ie: we should use overlay: true, which does exactly that). This would mean a compile not completing due to an error would at least result in a message being shown in the page content, rather than the blank page etc.
The only question is what we should do with issues found by eslint-loader. ESLint itself has concepts of "errors" and "warnings", but many presets (such as AirBnb) set most rules to "error". I think it's a bit too noisy to surface all of these in the devserver overlay - for example when prototyping a quick change it seems unhelpful to block the entire page view to warn about incorrect indentation.
So perhaps enabling the overlay needs to be blocked on also setting emitWarning: true (which forces all issues to be treated as warnings) in @neutrinojs/eslint when in development?
So perhaps enabling the overlay needs to be blocked on also setting emitWarning: true (which forces all issues to be treated as warnings) in @neutrinojs/eslint when in development?
See:
https://webpack.js.org/configuration/dev-server/#devserver-overlay
Note this change 'relies' on #1216, in that without that change all
linter errors would be displayed in the overlay too, which is likely
too noisy (given that many rules are for stylistic issues that should
not block viewing the dev-server page output).
Fixes#1131.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
This seems like it might be a DX win (eg CRA has an overlay, albeit a custom one):
https://webpack.js.org/configuration/dev-server/#devserver-overlay
The text was updated successfully, but these errors were encountered: