Skip to content

Commit

Permalink
Update dev dependencies
Browse files Browse the repository at this point in the history
No functional changes.
  • Loading branch information
domenic committed Dec 4, 2024
1 parent cb19f3e commit 5115e7e
Show file tree
Hide file tree
Showing 14 changed files with 1,122 additions and 623 deletions.
8 changes: 0 additions & 8 deletions .eslintignore

This file was deleted.

7 changes: 0 additions & 7 deletions .eslintrc.json

This file was deleted.

1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
node-version:
- 18
- 20
- 22
- latest
steps:
- uses: actions/checkout@v4
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ jobs:
- run: npm ci
- name: Setup Pages
id: pages
uses: actions/configure-pages@v3
uses: actions/configure-pages@v5
- name: Build into _site
run: bash scripts/deploy-live-viewer.sh
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
uses: actions/upload-pages-artifact@v3
deploy:
runs-on: ubuntu-latest
needs: build
Expand All @@ -36,4 +36,4 @@ jobs:
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
uses: actions/deploy-pages@v4
37 changes: 37 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
import domenicConfig from "@domenic/eslint-config";
import globals from "globals";
export default [
{
ignores: [
"coverage/",
"test/web-platform-tests/",
"live-viewer/whatwg-url.mjs",
"lib/VoidFunction.js",
"lib/Function.js",
"lib/URL.js",
"lib/URLSearchParams.js",
"lib/utils.js"
]
},
{
files: ["**/*.js"],
languageOptions: {
sourceType: "commonjs",
globals: globals.node
}
},
{
files: ["live-viewer/**.mjs"],
languageOptions: {
sourceType: "module",
globals: globals.browser
}
},
...domenicConfig,
{
files: ["scripts/**.js"],
rules: {
"no-console": "off"
}
}
];
11 changes: 0 additions & 11 deletions live-viewer/.eslintrc.json

This file was deleted.

4 changes: 2 additions & 2 deletions live-viewer/live-viewer.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -123,14 +123,14 @@ function setFromFragment() {
const [, urlEncoded, baseEncoded] = pieces;
try {
inputEl.value = decodeFromBase64(urlEncoded);
} catch (e) {
} catch {
// eslint-disable-next-line no-console
console.warn("url hash parameter was not deserializable.");
}

try {
baseEl.value = decodeFromBase64(baseEncoded);
} catch (e) {
} catch {
// eslint-disable-next-line no-console
console.warn("base hash parameter was not deserializable.");
}
Expand Down
Loading

0 comments on commit 5115e7e

Please sign in to comment.