format
This commit is contained in:
parent
89df268533
commit
908e503360
19 changed files with 100 additions and 100 deletions
38
.prettierrc
38
.prettierrc
|
|
@ -1,21 +1,21 @@
|
||||||
{
|
{
|
||||||
"useTabs": true,
|
"useTabs": true,
|
||||||
"singleQuote": true,
|
"singleQuote": true,
|
||||||
"trailingComma": "es5",
|
"trailingComma": "es5",
|
||||||
"printWidth": 100,
|
"printWidth": 100,
|
||||||
"endOfLine": "lf",
|
"endOfLine": "lf",
|
||||||
"arrowParens": "always",
|
"arrowParens": "always",
|
||||||
"jsxSingleQuote": false,
|
"jsxSingleQuote": false,
|
||||||
"semi": true,
|
"semi": true,
|
||||||
"quoteProps": "as-needed",
|
"quoteProps": "as-needed",
|
||||||
"tabWidth": 4,
|
"tabWidth": 4,
|
||||||
"plugins": ["prettier-plugin-svelte", "prettier-plugin-tailwindcss"],
|
"plugins": ["prettier-plugin-svelte", "prettier-plugin-tailwindcss"],
|
||||||
"overrides": [
|
"overrides": [
|
||||||
{
|
{
|
||||||
"files": "*.svelte",
|
"files": "*.svelte",
|
||||||
"options": {
|
"options": {
|
||||||
"parser": "svelte"
|
"parser": "svelte"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
102
eslint.config.js
102
eslint.config.js
|
|
@ -1,55 +1,55 @@
|
||||||
import prettier from "eslint-config-prettier";
|
import prettier from 'eslint-config-prettier';
|
||||||
import js from "@eslint/js";
|
import js from '@eslint/js';
|
||||||
import { includeIgnoreFile } from "@eslint/compat";
|
import { includeIgnoreFile } from '@eslint/compat';
|
||||||
import svelte from "eslint-plugin-svelte";
|
import svelte from 'eslint-plugin-svelte';
|
||||||
import globals from "globals";
|
import globals from 'globals';
|
||||||
import { fileURLToPath } from "node:url";
|
import { fileURLToPath } from 'node:url';
|
||||||
import ts from "typescript-eslint";
|
import ts from 'typescript-eslint';
|
||||||
const gitignorePath = fileURLToPath(new URL("./.gitignore", import.meta.url));
|
const gitignorePath = fileURLToPath(new URL('./.gitignore', import.meta.url));
|
||||||
|
|
||||||
export default ts.config(
|
export default ts.config(
|
||||||
includeIgnoreFile(gitignorePath),
|
includeIgnoreFile(gitignorePath),
|
||||||
js.configs.recommended,
|
js.configs.recommended,
|
||||||
...ts.configs.recommended,
|
...ts.configs.recommended,
|
||||||
...svelte.configs["flat/recommended"],
|
...svelte.configs['flat/recommended'],
|
||||||
prettier,
|
prettier,
|
||||||
...svelte.configs["flat/prettier"],
|
...svelte.configs['flat/prettier'],
|
||||||
{
|
{
|
||||||
languageOptions: {
|
languageOptions: {
|
||||||
globals: {
|
globals: {
|
||||||
...globals.browser,
|
...globals.browser,
|
||||||
...globals.node,
|
...globals.node,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
files: ["**/*.svelte"],
|
files: ['**/*.svelte'],
|
||||||
|
|
||||||
languageOptions: {
|
languageOptions: {
|
||||||
parserOptions: {
|
parserOptions: {
|
||||||
parser: ts.parser,
|
parser: ts.parser,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
rules: {
|
rules: {
|
||||||
"@typescript-eslint/no-unused-vars": [
|
'@typescript-eslint/no-unused-vars': [
|
||||||
"error",
|
'error',
|
||||||
{
|
{
|
||||||
argsIgnorePattern: "^_",
|
argsIgnorePattern: '^_',
|
||||||
varsIgnorePattern: "^_",
|
varsIgnorePattern: '^_',
|
||||||
caughtErrorsIgnorePattern: "^_",
|
caughtErrorsIgnorePattern: '^_',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
"no-restricted-syntax": [
|
'no-restricted-syntax': [
|
||||||
"error",
|
'error',
|
||||||
{
|
{
|
||||||
selector:
|
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"]))',
|
'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:
|
message:
|
||||||
"Please filter on the current tenant when using findFirst, findMany, updateMany, deleteMany, count, aggregate or groupBy.",
|
'Please filter on the current tenant when using findFirst, findMany, updateMany, deleteMany, count, aggregate or groupBy.',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
},
|
}
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@
|
||||||
'w-16': size === 'sm',
|
'w-16': size === 'sm',
|
||||||
'w-20': size === 'md',
|
'w-20': size === 'md',
|
||||||
'w-32': size === 'lg',
|
'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}
|
class:bg-neutral={placeholder}
|
||||||
|
|
|
||||||
|
|
@ -53,7 +53,7 @@
|
||||||
{@render label()}
|
{@render label()}
|
||||||
{/if}
|
{/if}
|
||||||
</span>
|
</span>
|
||||||
<span class="label-text-alt font-semibold text-error">
|
<span class="label-text-alt text-error font-semibold">
|
||||||
{#if typeof error === 'string'}
|
{#if typeof error === 'string'}
|
||||||
{error}
|
{error}
|
||||||
{:else if error}
|
{:else if error}
|
||||||
|
|
|
||||||
|
|
@ -43,7 +43,7 @@
|
||||||
{@render label()}
|
{@render label()}
|
||||||
{/if}
|
{/if}
|
||||||
</span>
|
</span>
|
||||||
<span class="label-text-alt font-semibold text-error">
|
<span class="label-text-alt text-error font-semibold">
|
||||||
{#if typeof error === 'string'}
|
{#if typeof error === 'string'}
|
||||||
{error}
|
{error}
|
||||||
{:else if error}
|
{:else if error}
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@
|
||||||
{/snippet}
|
{/snippet}
|
||||||
{#snippet end()}
|
{#snippet end()}
|
||||||
<div class="avatar placeholder">
|
<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>
|
<span class="text-xs">UI</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
let { start, center, end }: { start?: Snippet; center?: Snippet; end?: Snippet } = $props();
|
let { start, center, end }: { start?: Snippet; center?: Snippet; end?: Snippet } = $props();
|
||||||
</script>
|
</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-start">{@render start?.()}</div>
|
||||||
<div class="navbar-center">{@render center?.()}</div>
|
<div class="navbar-center">{@render center?.()}</div>
|
||||||
<div class="navbar-end">{@render end?.()}</div>
|
<div class="navbar-end">{@render end?.()}</div>
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
export type DaisyColor =
|
export type DaisyColor =
|
||||||
| "neutral"
|
| 'neutral'
|
||||||
| "primary"
|
| 'primary'
|
||||||
| "secondary"
|
| 'secondary'
|
||||||
| "accent"
|
| 'accent'
|
||||||
| "ghost"
|
| 'ghost'
|
||||||
| "info"
|
| 'info'
|
||||||
| "success"
|
| 'success'
|
||||||
| "warning"
|
| 'warning'
|
||||||
| "error";
|
| 'error';
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
export type DaisySize = "xs" | "sm" | "lg";
|
export type DaisySize = 'xs' | 'sm' | 'lg';
|
||||||
|
|
|
||||||
|
|
@ -1,2 +1,2 @@
|
||||||
export * from "./daisy-colors";
|
export * from './daisy-colors';
|
||||||
export * from "./daisy-sizes";
|
export * from './daisy-sizes';
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,12 @@
|
||||||
import { vitePreprocess } from "@sveltejs/vite-plugin-svelte";
|
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
|
||||||
|
|
||||||
/** @type {import('@sveltejs/kit').Config} */
|
/** @type {import('@sveltejs/kit').Config} */
|
||||||
const config = {
|
const config = {
|
||||||
// Consult https://kit.svelte.dev/docs/integrations#preprocessors
|
// Consult https://kit.svelte.dev/docs/integrations#preprocessors
|
||||||
// for more information about preprocessors
|
// for more information about preprocessors
|
||||||
preprocess: vitePreprocess(),
|
preprocess: vitePreprocess(),
|
||||||
|
|
||||||
kit: {},
|
kit: {},
|
||||||
};
|
};
|
||||||
|
|
||||||
export default config;
|
export default config;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue