diff --git a/.prettierrc b/.prettierrc index 8a8a39f..1b5c8a9 100644 --- a/.prettierrc +++ b/.prettierrc @@ -1,21 +1,21 @@ { - "useTabs": true, - "singleQuote": true, - "trailingComma": "es5", - "printWidth": 100, - "endOfLine": "lf", - "arrowParens": "always", - "jsxSingleQuote": false, - "semi": true, - "quoteProps": "as-needed", - "tabWidth": 4, - "plugins": ["prettier-plugin-svelte", "prettier-plugin-tailwindcss"], - "overrides": [ - { - "files": "*.svelte", - "options": { - "parser": "svelte" - } - } - ] + "useTabs": true, + "singleQuote": true, + "trailingComma": "es5", + "printWidth": 100, + "endOfLine": "lf", + "arrowParens": "always", + "jsxSingleQuote": false, + "semi": true, + "quoteProps": "as-needed", + "tabWidth": 4, + "plugins": ["prettier-plugin-svelte", "prettier-plugin-tailwindcss"], + "overrides": [ + { + "files": "*.svelte", + "options": { + "parser": "svelte" + } + } + ] } diff --git a/eslint.config.js b/eslint.config.js index e0f8ed2..5b2744d 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -1,55 +1,55 @@ -import prettier from "eslint-config-prettier"; -import js from "@eslint/js"; -import { includeIgnoreFile } from "@eslint/compat"; -import svelte from "eslint-plugin-svelte"; -import globals from "globals"; -import { fileURLToPath } from "node:url"; -import ts from "typescript-eslint"; -const gitignorePath = fileURLToPath(new URL("./.gitignore", import.meta.url)); +import prettier from 'eslint-config-prettier'; +import js from '@eslint/js'; +import { includeIgnoreFile } from '@eslint/compat'; +import svelte from 'eslint-plugin-svelte'; +import globals from 'globals'; +import { fileURLToPath } from 'node:url'; +import ts from 'typescript-eslint'; +const gitignorePath = fileURLToPath(new URL('./.gitignore', import.meta.url)); export default ts.config( - includeIgnoreFile(gitignorePath), - js.configs.recommended, - ...ts.configs.recommended, - ...svelte.configs["flat/recommended"], - prettier, - ...svelte.configs["flat/prettier"], - { - languageOptions: { - globals: { - ...globals.browser, - ...globals.node, - }, - }, - }, - { - files: ["**/*.svelte"], + includeIgnoreFile(gitignorePath), + js.configs.recommended, + ...ts.configs.recommended, + ...svelte.configs['flat/recommended'], + prettier, + ...svelte.configs['flat/prettier'], + { + languageOptions: { + globals: { + ...globals.browser, + ...globals.node, + }, + }, + }, + { + files: ['**/*.svelte'], - languageOptions: { - parserOptions: { - parser: ts.parser, - }, - }, - }, - { - rules: { - "@typescript-eslint/no-unused-vars": [ - "error", - { - argsIgnorePattern: "^_", - varsIgnorePattern: "^_", - caughtErrorsIgnorePattern: "^_", - }, - ], - "no-restricted-syntax": [ - "error", - { - selector: - 'CallExpression:matches([callee.object.object.name="prisma"], [callee.object.object.name="prismaTransactionClient"], [callee.object.object.name="transactionClient"]):matches([callee.property.name="findFirst"], [callee.property.name="findMany"], [callee.property.name="updateMany"], [callee.property.name="deleteMany"], [callee.property.name="count"], [callee.property.name="aggregate"], [callee.property.name="groupBy"]):not(:has(ObjectExpression > Property[key.name="where"] > ObjectExpression > Property[key.name="tenantId"]))', - message: - "Please filter on the current tenant when using findFirst, findMany, updateMany, deleteMany, count, aggregate or groupBy.", - }, - ], - }, - }, + languageOptions: { + parserOptions: { + parser: ts.parser, + }, + }, + }, + { + rules: { + '@typescript-eslint/no-unused-vars': [ + 'error', + { + argsIgnorePattern: '^_', + varsIgnorePattern: '^_', + caughtErrorsIgnorePattern: '^_', + }, + ], + 'no-restricted-syntax': [ + 'error', + { + selector: + 'CallExpression:matches([callee.object.object.name="prisma"], [callee.object.object.name="prismaTransactionClient"], [callee.object.object.name="transactionClient"]):matches([callee.property.name="findFirst"], [callee.property.name="findMany"], [callee.property.name="updateMany"], [callee.property.name="deleteMany"], [callee.property.name="count"], [callee.property.name="aggregate"], [callee.property.name="groupBy"]):not(:has(ObjectExpression > Property[key.name="where"] > ObjectExpression > Property[key.name="tenantId"]))', + message: + 'Please filter on the current tenant when using findFirst, findMany, updateMany, deleteMany, count, aggregate or groupBy.', + }, + ], + }, + } ); diff --git a/package.json b/package.json index 5c159e3..741e586 100644 --- a/package.json +++ b/package.json @@ -24,4 +24,4 @@ "prettier-plugin-svelte": "^3.2.6", "prettier-plugin-tailwindcss": "^0.6.5" } -} \ No newline at end of file +} diff --git a/packages/svelte/package.json b/packages/svelte/package.json index c20a1f3..38f6af9 100644 --- a/packages/svelte/package.json +++ b/packages/svelte/package.json @@ -66,4 +66,4 @@ "svelte": "^5.0.0", "tailwindcss": "^3.4.9" } -} \ No newline at end of file +} diff --git a/packages/svelte/postcss.config.js b/packages/svelte/postcss.config.js index 5b756c1..7b75c83 100644 --- a/packages/svelte/postcss.config.js +++ b/packages/svelte/postcss.config.js @@ -3,4 +3,4 @@ export default { tailwindcss: {}, autoprefixer: {}, }, -}; \ No newline at end of file +}; diff --git a/packages/svelte/src/lib/components/DataDisplay/Avatar.svelte b/packages/svelte/src/lib/components/DataDisplay/Avatar.svelte index 56b314c..69fe6b7 100644 --- a/packages/svelte/src/lib/components/DataDisplay/Avatar.svelte +++ b/packages/svelte/src/lib/components/DataDisplay/Avatar.svelte @@ -36,7 +36,7 @@ 'w-16': size === 'sm', 'w-20': size === 'md', 'w-32': size === 'lg', - 'avatar-ring ring ring-offset-2 ring-offset-base-100': !!ring, + 'avatar-ring ring-offset-base-100 ring ring-offset-2': !!ring, }) )} class:bg-neutral={placeholder} diff --git a/packages/svelte/src/lib/components/DataInput/TextInput.svelte b/packages/svelte/src/lib/components/DataInput/TextInput.svelte index e148b5b..8405675 100644 --- a/packages/svelte/src/lib/components/DataInput/TextInput.svelte +++ b/packages/svelte/src/lib/components/DataInput/TextInput.svelte @@ -53,7 +53,7 @@ {@render label()} {/if} - + {#if typeof error === 'string'} {error} {:else if error} diff --git a/packages/svelte/src/lib/components/DataInput/Textarea.svelte b/packages/svelte/src/lib/components/DataInput/Textarea.svelte index 27ac120..a666b7b 100644 --- a/packages/svelte/src/lib/components/DataInput/Textarea.svelte +++ b/packages/svelte/src/lib/components/DataInput/Textarea.svelte @@ -43,7 +43,7 @@ {@render label()} {/if} - + {#if typeof error === 'string'} {error} {:else if error} diff --git a/packages/svelte/src/lib/components/Navigation/Navbar/Navbar.stories.svelte b/packages/svelte/src/lib/components/Navigation/Navbar/Navbar.stories.svelte index 0b35c92..49ff9a1 100644 --- a/packages/svelte/src/lib/components/Navigation/Navbar/Navbar.stories.svelte +++ b/packages/svelte/src/lib/components/Navigation/Navbar/Navbar.stories.svelte @@ -18,7 +18,7 @@ {/snippet} {#snippet end()}
-
+
UI
diff --git a/packages/svelte/src/lib/components/Navigation/Navbar/Navbar.svelte b/packages/svelte/src/lib/components/Navigation/Navbar/Navbar.svelte index 841f780..93cf1fc 100644 --- a/packages/svelte/src/lib/components/Navigation/Navbar/Navbar.svelte +++ b/packages/svelte/src/lib/components/Navigation/Navbar/Navbar.svelte @@ -4,7 +4,7 @@ let { start, center, end }: { start?: Snippet; center?: Snippet; end?: Snippet } = $props(); -