-
Notifications
You must be signed in to change notification settings - Fork 94
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
Support for ESLint #254
Support for ESLint #254
Conversation
packages/eslint/README.md
Outdated
@@ -0,0 +1,35 @@ | |||
# webpack-blocks - TSLint |
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.
Copy 🍝 - needs to be ESLint
as well 🙂
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.
Oh, thanks :) These packages are very similar, so I've decided to copy files from the tslint
block.
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.
Sure, that's how I would have done as well 😉
Proposal: Let's extract the We can still link to them in the README here, but trimming down the number of packages here might be a good idea. Thoughts? |
Well, I think these packages must be included in the |
@andywer |
I would really like to see most blocks in their own repo - that's why I initially blocked the |
Then maybe let's postpone this decision (extra repo or not) for now 😉 @jvanbruegge That shouldn't be a breaking change. Should have no influence on user's where the sources reside. @dmitmel Yeah, but the block's are more utility than core functionality and the download count of the tslint block is quite low. The CI issue is quite annoying, though... We could try |
@andywer Would you like to add the eslint block or remove the tslint block? |
@dmitmel Let's add the eslint block for now and decide on the overall strategy afterwards. That discussion shouldn't be a reason to block new features :) |
packages/eslint/CHANGELOG.md
Outdated
@@ -0,0 +1,5 @@ | |||
# @webpack-blocks/eslint - Changelog | |||
|
|||
## Next release |
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.
In this case we can enter the version number already, since we will publish right away.
I'd move unpopular and framework-specific blocks out of the main repo (for example |
@dmitmel Thanks for the PR! Would be great to have a few test cases similar to ones other blocks have. |
d3c8308
to
ca6f458
Compare
@vlad-zhukov I've written some integration tests. Thanks for pointing out! |
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.
LGTM.
Nit: I'd also add an example and a test with a babel
block as it looks like it's a popular setup.
match('.js', [
eslint(),
babel(),
])
But we can do it later.
Awesome, thanks for your efforts! 😊 |
Published as |
I've found something wrong in the eslint block: it has |
Might be a copy-pasta mistake. I don't remember with certainty, but I think at some point we added that peer dependency to make explicit that the block only works with webpack-blocks v1 (not v0.x). It's not critical and the peer dependency is basically true 😉 |
@andywer Nice |
Almost like the
tslint
block, but for JavaScript.