Skip to content

Commit 4022743

Browse files
authored
Linting errors (#3994)
* Stylelint fixes * Markdown linting * Remove bad rule
1 parent b2ba05d commit 4022743

9 files changed

Lines changed: 11 additions & 16 deletions

File tree

.github/linters/.stylelintrc.json

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,8 @@
2525
}
2626
],
2727
"length-zero-no-unit": null,
28-
"max-line-length": null,
28+
"media-feature-range-notation": null,
2929
"no-descending-specificity": null,
30-
"no-eol-whitespace": [
31-
true,
32-
{
33-
"ignore": ["empty-lines"]
34-
}
35-
],
3630
"property-no-unknown": [
3731
true,
3832
{
@@ -45,15 +39,13 @@
4539
"ignoreProperties": ["appearance", "grid-row", "grid-column", "text-size-adjust", "transform", "transition"]
4640
}
4741
],
48-
"selector-list-comma-newline-after": "always",
4942
"selector-pseudo-element-no-unknown": [
5043
true,
5144
{
5245
"ignorePseudoElements": ["footnote-call","footnote-marker"]
5346
}
5447
],
5548
"shorthand-property-no-redundant-values": null,
56-
"string-quotes": null,
5749
"value-keyword-case": [
5850
"lower",
5951
{

src/content/en/2019/media.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ The utility of `srcset` is usually dependent on the precision of the `sizes` med
322322

323323
{{ figure_markup(
324324
image="fig16_top_patterns_of_img_sizes.png",
325-
caption="Top patterns of <code><img sizes></code>.",
325+
caption="Top patterns of `<img sizes>`.",
326326
description="Bar chart showing 11.3 million images use 'img sizes=`(max-width: 300px) 100vw, 300px`', 1.60 million use 'auto', 1.00 million use 'img sizes=`(max-width: 767px) 89vw...etc.`', 0.23 million use '100vw' and 0.13 million use '300px'",
327327
chart_url="https://docs.google.com/spreadsheets/d/e/2PACX-1vSViHIntdF6-bHAI0cl1HelY_X8rR4lf0P3W2Y8I5SyVMxG-ptggTHfWA0qrrU47RvuAydLE6Zex6L3/pubchart?oid=663985412&format=interactive"
328328
)

src/content/es/2019/media.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ La utilidad de `srcset` normalmente depende de la precisión de la media query `
322322

323323
{{ figure_markup(
324324
image="fig16_top_patterns_of_img_sizes.png",
325-
caption="Top de patrones de <code><img sizes></code>.",
325+
caption="Top de patrones de `<img sizes>`.",
326326
description="Gráfico de barras que muestra que 11,3 millones de imágenes usan 'img sizes=`(max-width: 300px) 100vw, 300px`', 1,60 millones usan 'auto', 1 millón usan 'img sizes=`(max-width: 767px) 89vw...etc.`', 0,23 millones usan '100vw' y 0,13 millones usan '300px'",
327327
chart_url="https://docs.google.com/spreadsheets/d/e/2PACX-1vSViHIntdF6-bHAI0cl1HelY_X8rR4lf0P3W2Y8I5SyVMxG-ptggTHfWA0qrrU47RvuAydLE6Zex6L3/pubchart?oid=663985412&format=interactive"
328328
)

src/content/fr/2019/media.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ L’utilité de `srcset` dépend généralement de la précision de la requête
322322

323323
{{ figure_markup(
324324
image="fig16_top_patterns_of_img_sizes.png",
325-
caption="Principaux modèles de conception de <code><img sizes></code>.",
325+
caption="Principaux modèles de conception de `<img sizes>`.",
326326
description="Diagramme à barres montrant que 11,3 millions d’images utilisent 'img sizes=`(max-width: 300px) 100vw, 300px`', 1,60 million utilisent 'auto', 1,00 million utilisent 'img sizes=`(max-width : 767px) 89vw...etc.`', 0,23 million utilisent '100vw' et 0,13 million utilisent '300px'.",
327327
chart_url="https://docs.google.com/spreadsheets/d/e/2PACX-1vSViHIntdF6-bHAI0cl1HelY_X8rR4lf0P3W2Y8I5SyVMxG-ptggTHfWA0qrrU47RvuAydLE6Zex6L3/pubchart?oid=663985412&format=interactive"
328328
)

src/content/ja/2019/media.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ CSSピクセルと自然ピクセル量を見ると、中央値のウェブサ
322322

323323
{{ figure_markup(
324324
image="fig16_top_patterns_of_img_sizes.png",
325-
caption="<code><img sizes></code> のトップパターン。",
325+
caption="`<img sizes>` のトップパターン。",
326326
description="1,130万枚の画像が「img sizes=`(max-width: 300px) 100vw, 300px`」を使用しており、「auto」が160万枚、「img sizes=`(max-width: 767px) 89vwなどなど`」が100万枚、「100vw」が23万枚、「300px」が13万枚であることを棒グラフで示しています。",
327327
chart_url="https://docs.google.com/spreadsheets/d/e/2PACX-1vSViHIntdF6-bHAI0cl1HelY_X8rR4lf0P3W2Y8I5SyVMxG-ptggTHfWA0qrrU47RvuAydLE6Zex6L3/pubchart?oid=663985412&format=interactive"
328328
)

src/static/css/almanac.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,6 @@ header .cta {
612612
}
613613

614614
.search-button {
615-
border-color: #000;
616615
background-color: #f7f779;
617616
padding: 6px 27px;
618617
width: auto;

src/static/css/ebook.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,7 @@ section.chapter {
376376
}
377377

378378
#toc a::after {
379+
/* stylelint-disable-next-line declaration-property-value-no-unknown */
379380
content: leader('.') target-counter(attr(href), page);
380381
}
381382

@@ -483,6 +484,7 @@ section.chapter {
483484

484485
.fn {
485486
display: inline;
487+
/* stylelint-disable-next-line declaration-property-value-no-unknown */
486488
float: footnote;
487489
counter-increment: footnote;
488490
font-size: 10px;
@@ -499,7 +501,6 @@ section.chapter {
499501
font-size: 6px;
500502
font-size: 0.375rem;
501503
vertical-align: super;
502-
line-height: none;
503504
}
504505

505506
.fn::footnote-marker {

src/static/css/index.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@ p {
613613
margin-left: 20px;
614614
margin-left: min(20px, 5vw);
615615
margin-right: 20px;
616-
margin-right: min (20px, 5vw);
616+
margin-right: min(20px, 5vw);
617617
}
618618

619619
.people {

src/static/css/page.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -685,6 +685,7 @@ figure .big-number {
685685
font: bold 128px/1em 'Poppins', sans-serif;
686686
font: bold 8rem/1em 'Poppins', sans-serif;
687687
color: #62718b;
688+
/* stylelint-disable-next-line declaration-property-value-keyword-no-deprecated */
688689
word-break: break-word;
689690
overflow-wrap: break-word;
690691
margin: 0.1em 0;
@@ -695,6 +696,7 @@ figure .medium-number {
695696
font: bold 48px/1em 'Poppins', sans-serif;
696697
font: bold 3rem/1em 'Poppins', sans-serif;
697698
color: #62718b;
699+
/* stylelint-disable-next-line declaration-property-value-keyword-no-deprecated */
698700
word-break: break-word;
699701
overflow-wrap: break-word;
700702
}
@@ -704,6 +706,7 @@ figure .really-big-number {
704706
font: bold 24px/1em 'Poppins', sans-serif;
705707
font: bold 1.5rem/1em 'Poppins', sans-serif;
706708
color: #62718b;
709+
/* stylelint-disable-next-line declaration-property-value-keyword-no-deprecated */
707710
word-break: break-word;
708711
overflow-wrap: break-word;
709712
}

0 commit comments

Comments
 (0)