Skip to content

Commit 3db1b83

Browse files
committed
npm run format
Signed-off-by: Sora Morimoto <[email protected]>
1 parent d3da84b commit 3db1b83

File tree

217 files changed

+2085
-828
lines changed

Some content is hidden

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

217 files changed

+2085
-828
lines changed

.eleventy.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module.exports = function(eleventyConfig) {
1+
module.exports = function (eleventyConfig) {
22
eleventyConfig.addPassthroughCopy('assets');
33
return {
44
dir: {

.eslintrc.json

+1-4
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,7 @@
33
"es2021": true,
44
"node": true
55
},
6-
"extends": [
7-
"eslint:recommended",
8-
"prettier"
9-
],
6+
"extends": ["eslint:recommended", "prettier"],
107
"plugins": ["prettier"],
118
"reportUnusedDisableDirectives": true,
129
"root": true,

_includes/intro.html

+5-15
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,17 @@
22
<div class="g-row intro">
33
<div class="g-col-4">
44
<h2 class="section-headline">{{ intro["TC39"]["title"] }}</h2>
5-
<p>
6-
{{ intro["TC39"]["desc"] }}
7-
</p><p>
8-
{{ intro["TC39"]["ecma-logo"] }}
9-
</p>
5+
<p>{{ intro["TC39"]["desc"] }}</p>
6+
<p>{{ intro["TC39"]["ecma-logo"] }}</p>
107
</div>
118
<div class="g-col-4">
129
<h2 class="section-headline">{{ intro["contribute"]["title"] }}</h2>
13-
<p>
14-
{{ intro["contribute"]["desc"] }}
15-
</p>
16-
<p>
17-
{{ intro["contribute"]["join-ecma"] }}
18-
</p>
10+
<p>{{ intro["contribute"]["desc"] }}</p>
11+
<p>{{ intro["contribute"]["join-ecma"] }}</p>
1912
</div>
2013
<div class="g-col-4">
2114
<h2 class="section-headline">{{ intro["specs"]["title"] }}</h2>
22-
<p>
23-
{{ intro["specs"]["desc"] }}
24-
</p>
15+
<p>{{ intro["specs"]["desc"] }}</p>
2516
</div>
2617
</div>
2718
</section>
28-

_includes/proposals.html

+80-93
Original file line numberDiff line numberDiff line change
@@ -3,52 +3,46 @@ <h2 id="proposals" class="section-headline text-end">
33
{{ site["navigation"]["state-of-proposals"] }}
44
</h2>
55
<div class="featurelist">
6-
<h3>
7-
{{ proposals["title"] }}
8-
</h3>
9-
<i class="featurelist__desc">
10-
{{ proposals["description"] }}
11-
</i>
6+
<h3>{{ proposals["title"] }}</h3>
7+
<i class="featurelist__desc"> {{ proposals["description"] }} </i>
128
{% if site.active_lang != site.default_lang %}
13-
<p>
14-
{{ proposals.community_translations }}
15-
</p>
9+
<p>{{ proposals.community_translations }}</p>
1610
{% endif %}
1711
<details class="featurelist__legend">
18-
<summary><strong>
19-
{{ proposals["how-to-read"]["title"] }}
20-
</strong></summary>
21-
<p>
22-
{{ proposals["how-to-read"]["description"] }}
23-
</p>
12+
<summary>
13+
<strong> {{ proposals["how-to-read"]["title"] }} </strong>
14+
</summary>
15+
<p>{{ proposals["how-to-read"]["description"] }}</p>
2416

25-
26-
<strong>
27-
{{ proposals["how-to-read"]["tags"]["title"] }}
28-
</strong>
17+
<strong> {{ proposals["how-to-read"]["tags"]["title"] }} </strong>
2918
<ul class="featurelist__legend__tags">
30-
<li>
31-
{{ proposals["how-to-read"]["tags"]["last-presented"] }}:
32-
<div class="featurelist__item__presented featurelist__item__tag">
33-
<a href="{{ presentation.url }}" title='{{ proposals["last-presented-alt"] }}'>{{ proposals["how-to-read"]["tags"]["last-presented-fake-date"] }}</a>
34-
</div>
35-
</li>
36-
<li>
37-
{{ proposals["how-to-read"]["tags"]["tests"] }}:
38-
<div class="featurelist__item__tests featurelist__item__tag">
39-
<a title='{{ proposals["tests-alt"] }}'>
40-
{{ proposals["tests"] }}
41-
</a>
42-
</div>
43-
</li>
44-
<li>
45-
{{ proposals["how-to-read"]["tags"]["spec"] }}:
46-
<div class="featurelist__item__spec featurelist__item__tag">
47-
<a title='{{ proposals["specification-alt"] }}'>
48-
{{ proposals["specification"] }}
49-
</a>
50-
</div>
51-
</li>
19+
<li>
20+
{{ proposals["how-to-read"]["tags"]["last-presented"] }}:
21+
<div class="featurelist__item__presented featurelist__item__tag">
22+
<a
23+
href="{{ presentation.url }}"
24+
title='{{ proposals["last-presented-alt"] }}'
25+
>{{ proposals["how-to-read"]["tags"]["last-presented-fake-date"]
26+
}}</a
27+
>
28+
</div>
29+
</li>
30+
<li>
31+
{{ proposals["how-to-read"]["tags"]["tests"] }}:
32+
<div class="featurelist__item__tests featurelist__item__tag">
33+
<a title='{{ proposals["tests-alt"] }}'>
34+
{{ proposals["tests"] }}
35+
</a>
36+
</div>
37+
</li>
38+
<li>
39+
{{ proposals["how-to-read"]["tags"]["spec"] }}:
40+
<div class="featurelist__item__spec featurelist__item__tag">
41+
<a title='{{ proposals["specification-alt"] }}'>
42+
{{ proposals["specification"] }}
43+
</a>
44+
</div>
45+
</li>
5246
</ul>
5347
</details>
5448
</div>
@@ -59,78 +53,73 @@ <h3>
5953
<div class="featurelist__item__intro">
6054
<header class="g-row">
6155
<h4 class="featurelist__item__title flex-grow">
62-
<a href="https://github.com/tc39/{{ proposal[0] }}">{{ proposal[1].title }}</a>
56+
<a href="https://github.com/tc39/{{ proposal[0] }}"
57+
>{{ proposal[1].title }}</a
58+
>
6359
</h4>
6460
<div class="featurelist__item__tags">
6561
<ul class="featurelist__item__status featurelist__item__tags">
6662
{% unless proposal[1].description %}
6763
<li class="featurelist__item__translation featurelist__item__tag">
68-
<a href="{{ proposals.needs_translation_url }}" title='{{ proposals.needs_translation }}'>
69-
{{ proposals.needs_translation }}</a>
64+
<a
65+
href="{{ proposals.needs_translation_url }}"
66+
title="{{ proposals.needs_translation }}"
67+
>
68+
{{ proposals.needs_translation }}</a
69+
>
7070
</li>
71-
{% endunless %}
72-
{% if proposal[1].presented | size %}
73-
{% for presentation in proposal[1].presented %}
71+
{% endunless %} {% if proposal[1].presented | size %} {% for
72+
presentation in proposal[1].presented %}
7473
<li class="featurelist__item__presented featurelist__item__tag">
7574
{%- if presentation.url -%}
76-
<a href="{{ presentation.url }}" title='{{ proposals["last-presented-alt"] }}'>
75+
<a
76+
href="{{ presentation.url }}"
77+
title='{{ proposals["last-presented-alt"] }}'
78+
>
7779
{{ proposals.months[presentation.month] }} {{ presentation.year}}
7880
</a>
7981
{%- else -%}
80-
<span>{{ proposals.months[presentation.month] }} {{ presentation.year}}</span>
82+
<span
83+
>{{ proposals.months[presentation.month] }} {{
84+
presentation.year}}</span
85+
>
8186
{%- endif -%}
8287
</li>
83-
{% endfor %}
84-
{% endif %}
85-
{% if proposal[1].tests | size %}
86-
{% for url in proposal[1].tests %}
87-
<li class="featurelist__item__tests featurelist__item__tag">
88-
<a href="{{ url }}" title='{{ proposals["test-alt"] }}'>
89-
{{ proposals["tests"] }}
90-
</a>
91-
</li>
92-
{% endfor %}
93-
{% endif %}
94-
{% if proposal[1].has_specification %}
95-
<li class="featurelist__item__spec featurelist__item__tag">
96-
<a href="https://tc39.es/{{ proposal[1].id }}" title='{{ proposals["specification-alt"] }}'>
97-
{{ proposals["specification"] }}
98-
</a>
99-
</li>
88+
{% endfor %} {% endif %} {% if proposal[1].tests | size %} {% for url
89+
in proposal[1].tests %}
90+
<li class="featurelist__item__tests featurelist__item__tag">
91+
<a href="{{ url }}" title='{{ proposals["test-alt"] }}'>
92+
{{ proposals["tests"] }}
93+
</a>
94+
</li>
95+
{% endfor %} {% endif %} {% if proposal[1].has_specification %}
96+
<li class="featurelist__item__spec featurelist__item__tag">
97+
<a
98+
href="https://tc39.es/{{ proposal[1].id }}"
99+
title='{{ proposals["specification-alt"] }}'
100+
>
101+
{{ proposals["specification"] }}
102+
</a>
103+
</li>
100104
{% endif %}
101105
</ul>
102106
</div>
103107
</header>
104108
<div class="featurelist__item__author">
105-
{% if proposal[1].authors == proposal[1].champions %}
106-
{{ proposals["authors-and-champions"] }}:
107-
{{ proposal[1].authors }}
108-
{% else %}
109-
{% if proposal[1].authors | size %}
110-
{% if proposal[1].authors.size > 1 %}
111-
{{ proposals["authors"] }}:
112-
{% else %}
113-
{{ proposals["author"] }}:
114-
{% endif %}
115-
{{ proposal[1].authors | join: ", " }}
116-
{% endif %}
117-
{% if proposal[1].champions | size %}
118-
|
119-
{% if proposal[1].champions.size > 1 %}
120-
{{ proposals["champions"] }}:
121-
{% else %}
122-
{{ proposals["champion"] }}
123-
{% endif %}
124-
{{ proposal[1].champions | join: ", " }}
125-
{% endif %}
126-
{% endif %}
109+
{% if proposal[1].authors == proposal[1].champions %} {{
110+
proposals["authors-and-champions"] }}: {{ proposal[1].authors }} {% else
111+
%} {% if proposal[1].authors | size %} {% if proposal[1].authors.size > 1
112+
%} {{ proposals["authors"] }}: {% else %} {{ proposals["author"] }}: {%
113+
endif %} {{ proposal[1].authors | join: ", " }} {% endif %} {% if
114+
proposal[1].champions | size %} | {% if proposal[1].champions.size > 1 %}
115+
{{ proposals["champions"] }}: {% else %} {{ proposals["champion"] }} {%
116+
endif %} {{ proposal[1].champions | join: ", " }} {% endif %} {% endif %}
127117
</div>
128118
{% if proposal[1].description %}
129119
<div class="featurelist__item__desc">{{ proposal[1].description }}</div>
130120
{% else %}
131121
<div class="featurelist__item__desc">{{ proposal[1].description }}</div>
132-
{% endif %}
133-
{% if proposal[1].example %}
122+
{% endif %} {% if proposal[1].example %}
134123
<div
135124
class="featurelist__item__example"
136125
aria-controls="example-{{ proposal[1].id }}"
@@ -154,7 +143,5 @@ <h4 class="featurelist__item__title flex-grow">
154143
</article>
155144
{% endfor %}
156145
<section class="featurelist__more">
157-
<a href="https://github.com/tc39/proposals">
158-
{{ proposals["see-more"] }}
159-
</a>
146+
<a href="https://github.com/tc39/proposals"> {{ proposals["see-more"] }} </a>
160147
</section>

_layouts/default.html

+36-18
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,50 @@
11
<!DOCTYPE html>
22
<html lang='{{ locale | default: "en-US" }}'>
33
<head>
4-
<meta charset="UTF-8">
5-
<meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1">
6-
<meta name="theme-color" content="#157878">
7-
<title>
8-
TC39 – {{ site["title"] }}
9-
</title>
4+
<meta charset="UTF-8" />
5+
<meta
6+
name="viewport"
7+
content="width=device-width,minimum-scale=1,initial-scale=1"
8+
/>
9+
<meta name="theme-color" content="#157878" />
10+
<title>TC39 – {{ site["title"] }}</title>
1011
<link rel="icon" type="image/png" href="favicon-32x32.png" sizes="32x32" />
1112
<link rel="icon" type="image/png" href="favicon-16x16.png" sizes="16x16" />
12-
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600&family=Source+Sans+Pro:wght@300;400;600&display=swap" rel="stylesheet">
13-
<link rel="stylesheet" href="{{ '/assets/css/normalize.css' | url }}">
14-
<link rel="stylesheet" href="{{ '/assets/css/style.css?v=' | append: site.github.build_revision | url}}">
15-
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/default.min.css">
16-
<script defer src="{{ '/assets/js/main.js?v=' | append: site.github.build_revision | url }}"></script>
13+
<link
14+
href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600&family=Source+Sans+Pro:wght@300;400;600&display=swap"
15+
rel="stylesheet"
16+
/>
17+
<link rel="stylesheet" href="{{ '/assets/css/normalize.css' | url }}" />
18+
<link
19+
rel="stylesheet"
20+
href="{{ '/assets/css/style.css?v=' | append: site.github.build_revision | url}}"
21+
/>
22+
<link
23+
rel="stylesheet"
24+
href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/default.min.css"
25+
/>
26+
<script
27+
defer
28+
src="{{ '/assets/js/main.js?v=' | append: site.github.build_revision | url }}"
29+
></script>
1730
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/highlight.min.js"></script>
18-
<script>hljs.initHighlightingOnLoad();</script>
31+
<script>
32+
hljs.initHighlightingOnLoad();
33+
</script>
1934
</head>
2035
<body class="no-js">
2136
{% include "./page_header.html" %}
2237
<main class="container">
23-
<h1 id="content" class="page-title">{{ site["title"] }}</h1>
24-
<section class="main-content">
25-
{% include "intro.html" %}
26-
{% include "proposals.html" %}
27-
</section>
38+
<h1 id="content" class="page-title">{{ site["title"] }}</h1>
39+
<section class="main-content">
40+
{% include "intro.html" %} {% include "proposals.html" %}
41+
</section>
2842
</main>
2943
{% include "./page_footer.html" %}
30-
<img class="hidden" src="https://d3nrsflo8ae6b5.cloudfront.net/1x1.png" alt="pixel" />
44+
<img
45+
class="hidden"
46+
src="https://d3nrsflo8ae6b5.cloudfront.net/1x1.png"
47+
alt="pixel"
48+
/>
3149
</body>
3250
</html>

0 commit comments

Comments
 (0)