Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions src/components/Support/Support.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,15 @@
import Tooltip from "../Tooltip/Tooltip.jsx";
import Additional from "./AdditionalSupporters.mjs";
/* eslint import/no-unresolved: ["error", { ignore: ["_supporters\.json$"] }] */
import Backers from "./_supporters.json";
let supporters = [];

Check failure on line 10 in src/components/Support/Support.jsx

View workflow job for this annotation

GitHub Actions / Lint (ubuntu-latest, lts/*)

Expected blank line before this statement

const SUPPORTERS = [...Backers];
try {
supporters = require("./_supporters.json");

Check failure on line 13 in src/components/Support/Support.jsx

View workflow job for this annotation

GitHub Actions / Lint (ubuntu-latest, lts/*)

'require' is not defined
} catch (error) {

Check failure on line 14 in src/components/Support/Support.jsx

View workflow job for this annotation

GitHub Actions / Lint (ubuntu-latest, lts/*)

'error' is defined but never used. Allowed unused caught errors must match /^_/u

Check failure on line 14 in src/components/Support/Support.jsx

View workflow job for this annotation

GitHub Actions / Lint (ubuntu-latest, lts/*)

Remove unused catch binding `error`
console.warn("_supporters.json not found, using empty list");
}

const SUPPORTERS = [...supporters];

// Merge or add additional backers/sponsors
for (const additional of Additional) {
Expand Down
Loading