-
Notifications
You must be signed in to change notification settings - Fork 51
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
Latest changes to clock preset cause broken builds post v2.1.8 #80
Comments
Hi @rollbrettler, thanks for bringing this to my attention. Do the additional errors relate to the changes made to the "clock" preset? (v2.1.8...v2.1.9#diff-a916af6f3b09319c594cc1659fd03a6cL16) |
Yes, exactly. In my case it was only v2.1.8...v2.1.9#diff-a916af6f3b09319c594cc1659fd03a6cR33 but as far as I can see all changes in that file are additional rules. |
Unfortunately, this is down to the misassumption on my part that anyone outside of @clocklimited would be using that particular preset, as in all honestly it is in flux given that many rules are still to be added to pug-lint 😄 Sorry about that! While in hindsight bumping the minor version would have been the appropriate course of action, I'm going to suggest that you adjust your config to revert those values that were changed in this commit. I'm suggestion this because work is afoot in #79 to deprecate presets in favour of the ability to extend configs from external locations in the same way |
Thanks for the heads up. I solved the issue by following the linter and adding the missing attribute, which I love to do. I like to have one source of truth for linting unless Iam fully aware of what I do. On the otherside I also want to fix new linting rules only when updating minor or major versions so I know I have the time to do so 😉 |
I'll shortly be publishing npm install --save-dev [email protected]
npm install --save-dev [email protected] And update your {
- "preset": "clock"
+ "extends": "clock"
...
} |
So updating to |
@rollbrettler, it still does, but its usage is not encouraged. So no, it's a minor bump. |
Introduced with the update from patch version v2.1.8 to v2.1.9 you introduced new validation rules, which actually can break builds. This could be seen as a addition to current behavior so it should raise the minor version instead of the patch version.
See: v2.1.8...v2.1.9#diff-a916af6f3b09319c594cc1659fd03a6cR33
The text was updated successfully, but these errors were encountered: