Skip to content

Commit 860e3e7

Browse files
committed
style: remove prettier config override
1 parent c08fd72 commit 860e3e7

14 files changed

Lines changed: 127 additions & 128 deletions

.prettierrc.cjs

Lines changed: 0 additions & 3 deletions
This file was deleted.

src/build.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ async function emitDom() {
112112
));
113113
const widlStandardTypes = (
114114
await Promise.all(getLatestSpecNames().map(convertWidl))
115-
).filter(i => i) as ReturnType<typeof convert>[];
115+
).filter((i) => i) as ReturnType<typeof convert>[];
116116

117117
async function convertWidl(shortName: string) {
118118
// Specs that need to fix their syntax, etc.
@@ -150,8 +150,8 @@ async function emitDom() {
150150
) {
151151
const namespaces = arrayToMap(
152152
idl.namespaces!,
153-
i => i.name,
154-
i => i
153+
(i) => i.name,
154+
(i) => i
155155
);
156156
for (const [key, value] of Object.entries(descriptions)) {
157157
const target = idl.interfaces!.interface[key] || namespaces[key];
@@ -168,8 +168,8 @@ async function emitDom() {
168168
) {
169169
const namespaces = arrayToMap(
170170
idl.namespaces!,
171-
i => i.name,
172-
i => i
171+
(i) => i.name,
172+
(i) => i
173173
);
174174
for (const [key, value] of Object.entries(descriptions)) {
175175
const target = idl.interfaces!.interface[key] || namespaces[key];
@@ -231,7 +231,7 @@ async function emitDom() {
231231
}
232232
}
233233
for (const partial of w.partialNamespaces) {
234-
const base = webidl.namespaces?.find(n => n.name === partial.name);
234+
const base = webidl.namespaces?.find((n) => n.name === partial.name);
235235
if (base) {
236236
if (base.exposed) resolveExposure(partial, base.exposed);
237237
merge(base.methods, partial.methods, true);

src/build/bcd.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ function hasMultipleImplementations(support: SupportBlock, prefix?: string) {
217217
}
218218
const latest = !Array.isArray(browser)
219219
? browser
220-
: browser.find(i => i.prefix === prefix); // first one if no prefix
220+
: browser.find((i) => i.prefix === prefix); // first one if no prefix
221221
if (!latest) {
222222
return false;
223223
}
@@ -364,7 +364,7 @@ function mapToBcdCompat(
364364
mapInterfaceLike
365365
);
366366
const mixins = filterMapRecord(webidl.mixins?.mixin, mapInterfaceLike);
367-
const namespaces = mapDefined(webidl.namespaces, n =>
367+
const namespaces = mapDefined(webidl.namespaces, (n) =>
368368
mapInterfaceLike(n.name, n)
369369
);
370370
if (

src/build/browser-specs.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ const browserSpecs = require("browser-specs") as any[];
55

66
export function getLatestSpecNames(): string[] {
77
return [
8-
...new Set(browserSpecs.map(spec => spec.series.shortname)),
8+
...new Set(browserSpecs.map((spec) => spec.series.shortname)),
99
...browserSpecs
10-
.filter(spec => spec.seriesComposition === "delta")
11-
.map(spec => spec.shortname),
10+
.filter((spec) => spec.seriesComposition === "delta")
11+
.map((spec) => spec.shortname),
1212

1313
// https://wiki.whatwg.org/wiki/DOM_XSLTProcessor
1414
"xsltprocessor",

0 commit comments

Comments
 (0)