Radish alpha
r
Radicle web interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
Use multiline eslint ignores where needed
Sebastian Martinez committed 1 year ago
commit b379109b33701b4e46eb90ca74517eefb6f44b16
parent 06cc5595c86eaa6a7589543c043ee35caec3b3b0
4 files changed +10 -9
modified src/lib/markdown.ts
@@ -13,10 +13,10 @@ import { routeToPath } from "@app/lib/router";
import { canonicalize, isUrl } from "@app/lib/utils";

dompurify.setConfig({
-
  // eslint-disable-next-line @typescript-eslint/naming-convention
+
  /* eslint-disable @typescript-eslint/naming-convention */
  SANITIZE_DOM: false,
-
  // eslint-disable-next-line @typescript-eslint/naming-convention
  FORBID_TAGS: ["textarea", "style"],
+
  /* eslint-enable @typescript-eslint/naming-convention */
});

// Converts self closing anchor tags into empty anchor tags, to avoid erratic wrapping behaviour
modified src/modals/ColorPaletteModal.svelte
@@ -11,22 +11,18 @@
        (acc, sheet) =>
          (acc = [
            ...acc,
-
            // eslint-disable-next-line @typescript-eslint/ban-ts-comment
+
            /* eslint-disable @typescript-eslint/ban-ts-comment */
            // @ts-ignore
            ...Array.from(sheet.cssRules).reduce(
              (def, rule) =>
-
                // eslint-disable-next-line @typescript-eslint/ban-ts-comment
                // @ts-ignore
                (def =
-
                  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
                  // @ts-ignore
                  rule.selectorText === ":root"
                    ? [
                        ...def,
-
                        // eslint-disable-next-line @typescript-eslint/ban-ts-comment
                        // @ts-ignore
                        ...Array.from(rule.style).filter(name =>
-
                          // eslint-disable-next-line @typescript-eslint/ban-ts-comment
                          // @ts-ignore
                          name.startsWith(variableName),
                        ),
@@ -34,6 +30,7 @@
                    : def),
              [],
            ),
+
            /* eslint-enable @typescript-eslint/ban-ts-comment */
          ]),
        [],
      );
modified tests/support/fixtures.ts
@@ -1,4 +1,3 @@
-
/* eslint-disable @typescript-eslint/naming-convention */
import type { Config } from "@http-client";
import type { PeerManager, RadiclePeer } from "./peerManager.js";
import type * as Stream from "node:stream";
@@ -617,6 +616,7 @@ export const nodeRemote = "z6MktULudTtAsAhRegYPiZ6631RV3viv12qd4GQF8z1xB22S";
export const shortNodeRemote = "z6MktU…1xB22S";
export const defaultHttpdPort = 8081;
export const gitOptions = {
+
  /* eslint-disable @typescript-eslint/naming-convention */
  alice: {
    GIT_AUTHOR_NAME: "Alice Liddell",
    GIT_AUTHOR_EMAIL: "alice@radicle.xyz",
@@ -633,6 +633,7 @@ export const gitOptions = {
    GIT_COMMITTER_EMAIL: "bob@radicle.xyz",
    GIT_COMMITTER_DATE: "1671627600",
  },
+
  /* eslint-enable @typescript-eslint/naming-convention */
};
export const defaultConfig: Config = {
  publicExplorer: "https://app.radicle.xyz/nodes/$host/$rid$path",
modified tests/support/peerManager.ts
@@ -1,4 +1,3 @@
-
/* eslint-disable @typescript-eslint/naming-convention */
import type { Config, BaseUrl } from "@http-client";
import type * as Execa from "execa";

@@ -209,10 +208,12 @@ export class RadiclePeer {

    const env = {
      ...gitOptions,
+
      /* eslint-disable @typescript-eslint/naming-convention */
      RAD_HOME: radHome,
      RAD_PASSPHRASE: "asdf",
      RAD_KEYGEN_SEED: node,
      RAD_SOCKET: socket,
+
      /* eslint-enable @typescript-eslint/naming-convention */
    };

    await execa("rad", ["auth", "--alias", name], { env });
@@ -380,6 +381,7 @@ export class RadiclePeer {
    const childProcess = execa(cmd, args, {
      ...opts,
      env: {
+
        /* eslint-disable @typescript-eslint/naming-convention */
        GIT_CONFIG_GLOBAL: "/dev/null",
        GIT_CONFIG_NOSYSTEM: "1",
        RAD_HOME: this.#radHome,
@@ -387,6 +389,7 @@ export class RadiclePeer {
        RAD_LOCAL_TIME: "1671125284",
        RAD_KEYGEN_SEED: this.#radSeed,
        RAD_SOCKET: this.#socket,
+
        /* eslint-enable @typescript-eslint/naming-convention */
        ...opts?.env,
        ...this.#gitOptions,
      },