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
[JENKINS-68904] Run stylelint fix
for less
#6720
Conversation
This PR is not a fix for JENKINS-68887, nor does it get us any closer to a fix; while valuable, it is an orthogonal change. The problem described in JENKINS-68887 is that linting |
No but it does reduce the linting warnings a lot, is there a reason you haven’t approved this? it says see jira which is where the context is as a big list of linting warnings was posted there |
Of course, that is why I wrote it was a valuable but orthogonal change.
Sure but those warnings were posted as an example of the correct behavior (on Linux), not the incorrect behavior (the fatal error on Windows). I wanted to make sure we were all on the same page that this PR was not a fix for the reported issue but an orthogonal cleanup. Alex updated the description to read "relates to" so I think we are all on the same page.
Well I haven't reviewed the code, nor did I originally plan to. It seems there has been a lack of reviews, though, so I can try and review this later this morning to unblock. In general frontend reviews take some effort for me, as I typically have to educate myself about unfamiliar areas. But I am willing to acquire new skills; I do not give up. |
Tim did 👀
This PR is not urgent or blocks other work, there are enough people on the ux team who can review this PR as well, no worries. |
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.
Fixes 112 warnings! 👍
The only issue I see is with the fixes for selector-list-comma-newline-after
. The automatic fix action put each one on a new line, indenting it by one space. That indentation is wrong: existing precedent in these files shows that each entry should be on a new line, indented by the same amount of space as the first entry. And this is much easier to read as well. I gave a few examples in the suggestions, but I didn't go through all of them. Once that is fixed I am happy to approve this.
There seems to be no format option that does exactly what you want, but with
we can achieve the following and restore what is already in place and used to be used before, which reads better imo &__button, &__icon {
svg, .build-status-icon__wrapper, img {
width: 24px !important;
height: 24px !important;
}
} instead of
or your recommendation
|
That sounds great! |
I filed two additional tickets, for a total of three tickets:
This PR chips away at (but does not fully solve) JENKINS-68904. I opened #6744 to close JENKINS-68887. Once JENKINS-68904 is closed, JENKINS-68903 can be implemented. That will prevent bugs like JENKINS-68887 from ever occurring again. To track related tickets in one central place, I have created a new epic:
As time goes on and discovery work is completed to identify frontend build system and dependency related technical debt, additional tickets should be placed in this epic. (BTW, this is a great example of the power of Jira) |
stylelint fix
for less
Meh, I don't really like this outcome, but I didn't find a rule that is auto fixable for proper line breaks :/ |
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.
This PR is now ready for merge. We will merge it after approximately 24 hours if there is no negative feedback. Please see the merge process documentation for more information about the merge process. Thanks!
relates to JENKINS-68887
The change proposed is generated by invoking
lint:css:fix
via npx, as defined in war/package.jsonKeep in mind that this change doesn't address all violations, determining
no-descending-specificity
for false positives and eslint for js is still up.Proposed changelog entries
Proposed upgrade guidelines
N/A
Submitter checklist
Proposed changelog entries
section only if there are breaking changes or other changes which may require extra steps from users during the upgrade@Restricted
or have@since TODO
Javadoc, as appropriate.@Deprecated(since="TODO")
or@Deprecated(since="TODO", forRemoval=true)
if applicable.Desired reviewers
@mention
Maintainer checklist
Before the changes are marked as
ready-for-merge
:Proposed changelog entries
are accurate, human-readable, and in the imperative moodupgrade-guide-needed
label is set and there is aProposed upgrade guidelines
section in the PR title. (example)lts-candidate
to be considered (see query).