Skip to content

Commit

Permalink
chore: update eslint plugins to get commit hooks working
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesLMilner committed Oct 8, 2023
1 parent 74e78e6 commit fa054f4
Show file tree
Hide file tree
Showing 103 changed files with 1,490 additions and 947 deletions.
10 changes: 5 additions & 5 deletions development/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ import SimpleMarkerSymbol from "@arcgis/core/symbols/SimpleMarkerSymbol";

const addModeChangeHandler = (
draw: TerraDraw,
currentSelected: { button: undefined | HTMLButtonElement; mode: string }
currentSelected: { button: undefined | HTMLButtonElement; mode: string },
) => {
[
"select",
Expand All @@ -67,18 +67,18 @@ const addModeChangeHandler = (
currentSelected.button.style.color = "565656";
}
currentSelected.button = document.getElementById(
mode
mode,
) as HTMLButtonElement;
currentSelected.button.style.color = "#27ccff";
}
},
);
});

(document.getElementById("clear") as HTMLButtonElement).addEventListener(
"click",
() => {
draw.clear();
}
},
);
};

Expand Down Expand Up @@ -335,7 +335,7 @@ const example = {
zoom: this.zoom,
clickableIcons: false,
mapId: process.env.GOOGLE_MAP_ID,
}
},
);

map.addListener("projection_changed", () => {
Expand Down
36 changes: 18 additions & 18 deletions docs/assets/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
e || !t || !t.__esModule
? ae(n, "default", { value: t, enumerable: !0 })
: n,
t
t,
)
);
var de = _e((ce, he) => {
Expand Down Expand Up @@ -73,7 +73,7 @@
continue;
}
throw new TypeError(
"clone is not deep and does not support nested objects"
"clone is not deep and does not support nested objects",
);
}
return n;
Expand Down Expand Up @@ -151,7 +151,7 @@
: e === t.Set.empty
? this
: new t.Set(
Object.keys(this.elements).concat(Object.keys(e.elements))
Object.keys(this.elements).concat(Object.keys(e.elements)),
);
}),
(t.idf = function (e, n) {
Expand Down Expand Up @@ -185,7 +185,7 @@
return e.map(function (m) {
return new t.Token(
t.utils.asString(m).toLowerCase(),
t.utils.clone(n)
t.utils.clone(n),
);
});
for (
Expand Down Expand Up @@ -228,7 +228,7 @@
t.utils.warn(
`Function is not registered with pipeline. This may cause problems when serialising the index.
`,
e
e,
);
}),
(t.Pipeline.load = function (e) {
Expand Down Expand Up @@ -1021,7 +1021,7 @@
t.version +
"' does not match serialized index '" +
e.version +
"'"
"'",
);
for (var l = 0; l < i.length; l++) {
var h = i[l],
Expand Down Expand Up @@ -1067,7 +1067,7 @@
(t.Builder.prototype.field = function (e, n) {
if (/\//.test(e))
throw new RangeError(
"Field '" + e + "' contains illegal character '/'"
"Field '" + e + "' contains illegal character '/'",
);
this._fields[e] = n || {};
}),
Expand Down Expand Up @@ -1190,7 +1190,7 @@
}),
(t.Builder.prototype.createTokenSet = function () {
this.tokenSet = t.TokenSet.fromArray(
Object.keys(this.invertedIndex).sort()
Object.keys(this.invertedIndex).sort(),
);
}),
(t.Builder.prototype.build = function () {
Expand Down Expand Up @@ -1241,7 +1241,7 @@
this.metadata[i][a][h] == null
? (this.metadata[i][a][h] = e.metadata[i][a][h])
: (this.metadata[i][a][h] = this.metadata[i][a][h].concat(
e.metadata[i][a][h]
e.metadata[i][a][h],
));
}
}
Expand Down Expand Up @@ -1649,7 +1649,7 @@
this.createComponents(document.body),
this.ensureFocusedElementVisible(),
window.addEventListener("hashchange", () =>
this.ensureFocusedElementVisible()
this.ensureFocusedElementVisible(),
);
}
createComponents(e) {
Expand Down Expand Up @@ -1730,11 +1730,11 @@
(this.navigation = document.querySelector(".col-menu")),
window.addEventListener(
"scroll",
ne(() => this.onScroll(), 10)
ne(() => this.onScroll(), 10),
),
window.addEventListener(
"resize",
ne(() => this.onResize(), 10)
ne(() => this.onResize(), 10),
),
(this.searchInput = document.querySelector("#tsd-search input")),
this.searchInput &&
Expand Down Expand Up @@ -1853,7 +1853,7 @@
r = document.querySelector("#tsd-search .results");
if (!n || !r)
throw new Error(
"The input field or the result list wrapper was not found"
"The input field or the result list wrapper was not found",
);
let i = !1;
r.addEventListener("mousedown", () => (i = !0)),
Expand All @@ -1872,7 +1872,7 @@
"input",
ue(() => {
He(t, e, n, r);
}, 200)
}, 200),
);
let i = !1;
n.addEventListener("keydown", (s) => {
Expand Down Expand Up @@ -1969,7 +1969,7 @@
for (; o != -1; )
i.push(
ie(t.substring(s, o)),
`<b>${ie(t.substring(o, o + r.length))}</b>`
`<b>${ie(t.substring(o, o + r.length))}</b>`,
),
(s = o + r.length),
(o = n.indexOf(r, s));
Expand All @@ -1994,7 +1994,7 @@
Be = !1,
A = !1,
xe = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(
navigator.userAgent
navigator.userAgent,
);
document.documentElement.classList.add(xe ? "is-mobile" : "not-mobile");
xe &&
Expand Down Expand Up @@ -2100,7 +2100,7 @@
document.querySelectorAll(".tsd-index-section").forEach((n) => {
n.style.display = "block";
let r = Array.from(n.querySelectorAll(".tsd-index-link")).every(
(i) => i.offsetParent == null
(i) => i.offsetParent == null,
);
n.style.display = r ? "none" : "block";
});
Expand Down Expand Up @@ -2166,7 +2166,7 @@
this.getIconRotation(i),
],
},
o
o,
)
.addEventListener("finish", () => {
this.icon.style.transform = this.getIconRotation(i);
Expand Down
2 changes: 1 addition & 1 deletion docs/assets/search.js

Large diffs are not rendered by default.

Loading

0 comments on commit fa054f4

Please sign in to comment.