Skip to content

Commit 476bb0c

Browse files
committedDec 10, 2024
Bug 1837658 - enable Stylelint length-zero-no-unit r=frontend-codestyle-reviewers,desktop-theme-reviewers,mtigley,settings-reviewers,pip-reviewers,credential-management-reviewers,devtools-reviewers,tabbrowser-reviewers,translations-reviewers,android-reviewers,backup-reviewers,nchevobbe,dao,mconley,tthibaud
This use of units for zero length occasionally gets flagged during theme reviews so it makes sense to establish our preference and automate checks via Stylelint. Differential Revision: https://phabricator.services.mozilla.com/D230287
1 parent 68cfb76 commit 476bb0c

File tree

78 files changed

+154
-147
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+154
-147
lines changed
 

‎.stylelintrc.js

+8-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ module.exports = {
3131
],
3232
ignoreFiles,
3333
rules: {
34-
"stylelint-plugin-mozilla/no-base-design-tokens": true,
3534
/* Disabled because of `-moz-element(#foo)` which gets misparsed. */
3635
"color-no-invalid-hex": null,
3736
"font-family-no-missing-generic-family-keyword": [
@@ -57,6 +56,13 @@ module.exports = {
5756
},
5857
],
5958

59+
"length-zero-no-unit": [
60+
true,
61+
{
62+
ignore: ["custom-properties"],
63+
},
64+
],
65+
6066
"max-nesting-depth": [
6167
3,
6268
{
@@ -261,6 +267,7 @@ module.exports = {
261267
ignorePseudoElements: ["slider-track", "slider-fill", "slider-thumb"],
262268
},
263269
],
270+
"stylelint-plugin-mozilla/no-base-design-tokens": true,
264271
},
265272

266273
overrides: [

‎browser/components/aboutlogins/content/components/login-message-popup.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,6 @@
5656
top: 100%;
5757
left: 50%;
5858
transform: translateX(-50%) rotate(270deg);
59-
margin-top: 0px;
59+
margin-top: 0;
6060
}
6161
}

0 commit comments

Comments
 (0)
Failed to load comments.