This commit is contained in:
Benjamin Palko 2025-03-08 12:26:57 -05:00
parent 89df268533
commit 908e503360
19 changed files with 100 additions and 100 deletions

View file

@ -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"
}
}
]
}

View file

@ -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.',
},
],
},
}
);

View file

@ -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}

View file

@ -53,7 +53,7 @@
{@render label()}
{/if}
</span>
<span class="label-text-alt font-semibold text-error">
<span class="label-text-alt text-error font-semibold">
{#if typeof error === 'string'}
{error}
{:else if error}

View file

@ -43,7 +43,7 @@
{@render label()}
{/if}
</span>
<span class="label-text-alt font-semibold text-error">
<span class="label-text-alt text-error font-semibold">
{#if typeof error === 'string'}
{error}
{:else if error}

View file

@ -18,7 +18,7 @@
{/snippet}
{#snippet end()}
<div class="avatar placeholder">
<div class="w-8 rounded-full bg-neutral text-neutral-content">
<div class="bg-neutral text-neutral-content w-8 rounded-full">
<span class="text-xs">UI</span>
</div>
</div>

View file

@ -4,7 +4,7 @@
let { start, center, end }: { start?: Snippet; center?: Snippet; end?: Snippet } = $props();
</script>
<header class="navbar justify-between rounded-box bg-base-200 px-4">
<header class="navbar rounded-box bg-base-200 justify-between px-4">
<div class="navbar-start">{@render start?.()}</div>
<div class="navbar-center">{@render center?.()}</div>
<div class="navbar-end">{@render end?.()}</div>

View file

@ -1,10 +1,10 @@
export type DaisyColor =
| "neutral"
| "primary"
| "secondary"
| "accent"
| "ghost"
| "info"
| "success"
| "warning"
| "error";
| 'neutral'
| 'primary'
| 'secondary'
| 'accent'
| 'ghost'
| 'info'
| 'success'
| 'warning'
| 'error';

View file

@ -1 +1 @@
export type DaisySize = "xs" | "sm" | "lg";
export type DaisySize = 'xs' | 'sm' | 'lg';

View file

@ -1,2 +1,2 @@
export * from "./daisy-colors";
export * from "./daisy-sizes";
export * from './daisy-colors';
export * from './daisy-sizes';

View file

@ -1,12 +1,12 @@
import { vitePreprocess } from "@sveltejs/vite-plugin-svelte";
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
/** @type {import('@sveltejs/kit').Config} */
const config = {
// Consult https://kit.svelte.dev/docs/integrations#preprocessors
// for more information about preprocessors
preprocess: vitePreprocess(),
// Consult https://kit.svelte.dev/docs/integrations#preprocessors
// for more information about preprocessors
preprocess: vitePreprocess(),
kit: {},
kit: {},
};
export default config;