Merge pull request 'Update eslint' (#3057) from eslint into main

Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3057
This commit is contained in:
Mic92
2025-03-18 13:51:36 +00:00
6 changed files with 366 additions and 555 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -17,11 +17,11 @@
"@eslint/js": "^9.3.0", "@eslint/js": "^9.3.0",
"@tailwindcss/typography": "^0.5.13", "@tailwindcss/typography": "^0.5.13",
"@types/node": "^22.0.0", "@types/node": "^22.0.0",
"@typescript-eslint/parser": "^7.10.0", "@typescript-eslint/parser": "^8.0.0",
"autoprefixer": "^10.4.19", "autoprefixer": "^10.4.19",
"classnames": "^2.5.1", "classnames": "^2.5.1",
"daisyui": "^4.11.1", "daisyui": "^4.11.1",
"eslint": "^8.57.0", "eslint": "^9.0.0",
"eslint-plugin-tailwindcss": "^3.17.0", "eslint-plugin-tailwindcss": "^3.17.0",
"jsdom": "^26.0.0", "jsdom": "^26.0.0",
"postcss": "^8.4.38", "postcss": "^8.4.38",
@@ -30,7 +30,7 @@
"solid-devtools": "^0.33.0", "solid-devtools": "^0.33.0",
"tailwindcss": "^3.4.3", "tailwindcss": "^3.4.3",
"typescript": "^5.4.5", "typescript": "^5.4.5",
"typescript-eslint": "^7.10.0", "typescript-eslint": "^8.0.0",
"vite": "^6.0.0", "vite": "^6.0.0",
"vite-plugin-solid": "^2.8.2", "vite-plugin-solid": "^2.8.2",
"vitest": "^3.0.0" "vitest": "^3.0.0"

View File

@@ -86,7 +86,6 @@ export function useFloating<R extends ReferenceElement, F extends HTMLElement>(
const currentReference = reference(); const currentReference = reference();
const currentFloating = floating(); const currentFloating = floating();
options?.middleware;
placement(); placement();
strategy(); strategy();

View File

@@ -34,9 +34,7 @@ export type ErrorQuery<T extends OperationNames> = Extract<
>; >;
export type ErrorData<T extends OperationNames> = ErrorQuery<T>["errors"]; export type ErrorData<T extends OperationNames> = ErrorQuery<T>["errors"];
export type ClanOperations = { export type ClanOperations = Record<OperationNames, (str: string) => void>;
[K in OperationNames]: (str: string) => void;
};
export interface GtkResponse<T> { export interface GtkResponse<T> {
result: T; result: T;

View File

@@ -2,7 +2,7 @@ import { type JSX } from "solid-js";
type sizes = "small" | "medium" | "large"; type sizes = "small" | "medium" | "large";
const gapSizes: { [size in sizes]: string } = { const gapSizes: Record<sizes, string> = {
small: "gap-2", small: "gap-2",
medium: "gap-4", medium: "gap-4",
large: "gap-6", large: "gap-6",

View File

@@ -86,7 +86,6 @@ export function useFloating<R extends ReferenceElement, F extends HTMLElement>(
const currentReference = reference(); const currentReference = reference();
const currentFloating = floating(); const currentFloating = floating();
options?.middleware;
placement(); placement();
strategy(); strategy();