-
-
Notifications
You must be signed in to change notification settings - Fork 70
chore: update plugin #230
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: update plugin #230
Conversation
|
Hi @jsg2021 |
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.
At a high level, it looks good to me. Any idea why it doesn't work with threads?
@jsg2021 |
|
I managed to solve it by writing the result, strange, but it worked ... // Reset result to work with worker
return results.map((result) => {
return {
source: result.source,
errored: result.errored,
ignored: result.ignored,
warnings: result.warnings,
deprecations: result.deprecations,
invalidOptionWarnings: result.invalidOptionWarnings,
};
}); |
Codecov Report
@@ Coverage Diff @@
## master #230 +/- ##
==========================================
Coverage 100.00% 100.00%
==========================================
Files 7 8 +1
Lines 125 231 +106
Branches 25 54 +29
==========================================
+ Hits 125 231 +106
Continue to review full report at Codecov.
|
alexander-akait
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.
Honestly, I ran quickly and everything looks good, did we solve the problem with fileDependencies?
|
@alexander-akait unfortunately not, I commented here https://github.com/webpack-contrib/stylelint-webpack-plugin/blob/feat-update-plugin/src/index.js#L183 |
|
@ricardogobbosouza It is only for initial lint? |
|
@alexander-akait it is like this:
|
|
The idea was to get the dependencies of the stylesheet module, to really linting only the files used, but the only way I found was using |
|
@ricardogobbosouza sorry for delay, I agree, let's postpone, also we can improve it in any time in future |
|
@ricardogobbosouza friendly ping |
|
@alexander-akait I'm waiting for your review 😄 |
This PR contains a:
Motivation / Use-Case
✨ New Options
options.context)jsonfile for use for reporting)Refactor
Setting only emitError to true will no longer exclusively print files with errors
and disregard the files with warnings. Similarly, setting only emitWarning to true
will no longer exclusively print files with warnings disregard the files with errors.
and emitWarning to false
Additional Info
This plugin has been rewritten to work only with import graph files, reducing its execution time and linting necessary files.
It will probably be the last release with support for webpack 4.