Skip to content

Commit 8f855ab

Browse files
authored
Bump prettier (#570)
1 parent 2c4fdd0 commit 8f855ab

59 files changed

Lines changed: 1311 additions & 1401 deletions

Some content is hidden

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

.eslintrc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
"prefer-arrow-callback": "error",
5757
"object-shorthand": "error",
5858
"no-inner-declarations": "off",
59+
"no-loss-of-precision": "off",
5960
"consistent-return": "off",
6061
"no-floating-decimal": "error",
6162
"no-self-compare": "error",

css/elements.css

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,9 @@ body {
9999
word-wrap: break-word;
100100
font-size: 18px;
101101
line-height: 1.5;
102-
font-family: IBM Plex Serif, serif;
102+
font-family:
103+
IBM Plex Serif,
104+
serif;
103105
font-variant-numeric: slashed-zero;
104106
padding: 0;
105107
margin: 0;
@@ -153,7 +155,9 @@ span.e-user-code::before {
153155
line-height: normal;
154156
vertical-align: middle;
155157
text-transform: uppercase;
156-
font-family: IBM Plex Sans, sans-serif;
158+
font-family:
159+
IBM Plex Sans,
160+
sans-serif;
157161
font-weight: 900;
158162
font-size: x-small;
159163
}
@@ -176,7 +180,10 @@ span.e-user-code::before {
176180

177181
code {
178182
font-weight: bold;
179-
font-family: Comic Code, IBM Plex Mono, monospace;
183+
font-family:
184+
Comic Code,
185+
IBM Plex Mono,
186+
monospace;
180187
white-space: pre;
181188
}
182189

@@ -241,7 +248,9 @@ var.referenced6 {
241248
}
242249

243250
emu-const {
244-
font-family: IBM Plex Sans, sans-serif;
251+
font-family:
252+
IBM Plex Sans,
253+
sans-serif;
245254
font-variant: small-caps;
246255
text-transform: uppercase;
247256
}
@@ -440,7 +449,9 @@ emu-rhs emu-nt {
440449

441450
emu-t {
442451
display: inline-block;
443-
font-family: IBM Plex Mono, monospace;
452+
font-family:
453+
IBM Plex Mono,
454+
monospace;
444455
font-weight: bold;
445456
white-space: nowrap;
446457
text-indent: 0;
@@ -475,7 +486,9 @@ emu-mods {
475486
emu-params,
476487
emu-opt {
477488
margin-right: 1ex;
478-
font-family: IBM Plex Mono, monospace;
489+
font-family:
490+
IBM Plex Mono,
491+
monospace;
479492
}
480493

481494
emu-params,
@@ -489,7 +502,9 @@ emu-opt {
489502

490503
emu-gprose {
491504
font-size: 0.9em;
492-
font-family: IBM Plex Sans, sans-serif;
505+
font-family:
506+
IBM Plex Sans,
507+
sans-serif;
493508
}
494509

495510
emu-production emu-gprose {

filter-entities.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ let transformed = Object.fromEntries(
2020
return [k, null];
2121
}
2222
return [k, v.characters];
23-
})
23+
}),
2424
);
2525
fs.writeFileSync('./entities-processed.json', JSON.stringify(transformed), 'utf8');

js/listNumbers.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// https://w3c.github.io/csswg-drafts/css-counter-styles/
1010

1111
const lowerLetters = Array.from({ length: 26 }, (_, i) =>
12-
String.fromCharCode('a'.charCodeAt(0) + i)
12+
String.fromCharCode('a'.charCodeAt(0) + i),
1313
);
1414
// Implement the lower-alpha 'alphabetic' algorithm,
1515
// adjusting for indexing from 0 rather than 1.
@@ -80,7 +80,7 @@ const counterByDepth = [];
8080
function addStepNumberText(
8181
ol,
8282
depth = 0,
83-
special = [...ol.classList].some(c => c.startsWith('nested-'))
83+
special = [...ol.classList].some(c => c.startsWith('nested-')),
8484
) {
8585
let counter = !special && counterByDepth[depth];
8686
if (!counter) {

js/menu.js

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ function Search(menu) {
1111

1212
this.$searchBox.addEventListener(
1313
'keydown',
14-
debounce(this.searchBoxKeydown.bind(this), { stopPropagation: true })
14+
debounce(this.searchBoxKeydown.bind(this), { stopPropagation: true }),
1515
);
1616
this.$searchBox.addEventListener(
1717
'keyup',
18-
debounce(this.searchBoxKeyup.bind(this), { stopPropagation: true })
18+
debounce(this.searchBoxKeyup.bind(this), { stopPropagation: true }),
1919
);
2020

2121
// Perform an initial search if the box is not empty.
@@ -215,7 +215,6 @@ Search.prototype.displayResults = function (results) {
215215
}
216216

217217
if (text) {
218-
// prettier-ignore
219218
html += `<li class=menu-search-result-${cssClass}><a href="${makeLinkToId(id)}">${text}</a></li>`;
220219
}
221220
});
@@ -397,7 +396,7 @@ function findActiveClause(root, path) {
397396
let marginTop = Math.max(
398397
0,
399398
parseInt(clauseStyles['margin-top']),
400-
parseInt(getComputedStyle($header)['margin-top'])
399+
parseInt(getComputedStyle($header)['margin-top']),
401400
);
402401
let marginBottom = Math.max(0, parseInt(clauseStyles['margin-bottom']));
403402
let crossesMidpoint =
@@ -495,7 +494,6 @@ Menu.prototype.addPinEntry = function (id) {
495494
} else {
496495
prefix = '';
497496
}
498-
// prettier-ignore
499497
text = `${prefix}${entry.titleHTML}`;
500498
} else {
501499
text = getKey(entry);
@@ -842,7 +840,6 @@ let referencePane = {
842840
e.parentNode.replaceChild(document.createTextNode(e.textContent), e);
843841
});
844842

845-
// prettier-ignore
846843
this.$headerText.innerHTML = `Syntax-Directed Operations for<br><a href="${makeLinkToId(alternativeId)}" class="menu-pane-header-production"><emu-nt>${parentName}</emu-nt> ${colons.outerHTML} </a>`;
847844
this.$headerText.querySelector('a').append(rhs);
848845
this.showSDOsBody(sdos, alternativeId);
@@ -1115,7 +1112,7 @@ function init() {
11151112
'mouseover',
11161113
debounce(e => {
11171114
Toolbox.activateIfMouseOver(e);
1118-
})
1115+
}),
11191116
);
11201117
document.addEventListener(
11211118
'keydown',
@@ -1126,7 +1123,7 @@ function init() {
11261123
}
11271124
document.getElementById('shortcuts-help').classList.remove('active');
11281125
}
1129-
})
1126+
}),
11301127
);
11311128
}
11321129

js/sdoMap.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,6 @@ document.addEventListener('DOMContentLoaded', () => {
7777
if (e.code === 'Escape') {
7878
sdoBox.deactivate();
7979
}
80-
})
80+
}),
8181
);
8282
});

0 commit comments

Comments
 (0)