lint fixes

feat/users
Tomáš Mládek 2024-02-19 22:59:19 +01:00
parent 121c615642
commit 0b488d9384
7 changed files with 24 additions and 25 deletions

View File

@ -2,12 +2,12 @@
module.exports = { module.exports = {
root: true, root: true,
extends: [ extends: [
"eslint:recommended", 'eslint:recommended',
"plugin:@typescript-eslint/recommended", 'plugin:@typescript-eslint/recommended',
"plugin:svelte/recommended", 'plugin:svelte/recommended',
"prettier", 'prettier',
"plugin:storybook/recommended" 'plugin:storybook/recommended'
], ],
parser: '@typescript-eslint/parser', parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'], plugins: ['@typescript-eslint'],
parserOptions: { parserOptions: {

View File

@ -11,7 +11,7 @@
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch", "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
"lint": "prettier --check . && eslint .", "lint": "prettier --check . && eslint .",
"format": "prettier --write .", "format": "prettier --write .",
"storybook": "concurrently \"npm run storybook:serve\" \"cargo run -- serve ../example_vault --clean --no-browser --reinitialize --rescan-mode mirror --bind 127.0.0.1:8099\"", "storybook": "concurrently \"npm run storybook:serve\" \"cargo run -- serve ../example_vault --clean --no-browser --reinitialize --rescan-mode mirror --bind 127.0.0.1:8099\"",
"storybook:serve": "storybook dev -p 6006", "storybook:serve": "storybook dev -p 6006",
"build-storybook": "storybook build" "build-storybook": "storybook build"
}, },

View File

@ -1,6 +1,6 @@
<script lang="ts"> <script lang="ts">
import type { UpEntry } from '@upnd/upend'; import type { UpEntry } from '@upnd/upend';
import { attributeLabels } from '../../util/labels'; import { attributeLabels } from '$lib/util/labels';
import UpObject from './UpObject.svelte'; import UpObject from './UpObject.svelte';
export let resolve = true; export let resolve = true;

View File

@ -11,7 +11,7 @@
import { vaultInfo } from '$lib/util/info'; import { vaultInfo } from '$lib/util/info';
import type { BrowseContext } from '$lib/util/browse'; import type { BrowseContext } from '$lib/util/browse';
import { Query, type UpObject } from '@upnd/upend'; import { Query, type UpObject } from '@upnd/upend';
import type { ADDRESS_TYPE, EntityInfo, IValue } from '@upnd/upend/types'; import type { ADDRESS_TYPE, EntityInfo } from '@upnd/upend/types';
import { useEntity } from '$lib/entity'; import { useEntity } from '$lib/entity';
import { i18n } from '$lib/i18n'; import { i18n } from '$lib/i18n';
import api from '$lib/api'; import api from '$lib/api';
@ -29,7 +29,7 @@
export let labels: string[] | undefined = undefined; export let labels: string[] | undefined = undefined;
export let link = false; export let link = false;
export let banner = false; export let banner = false;
export let resolve = !(labels || []).length || banner; export let resolve: boolean = !(labels || []).length || banner;
export let backpath = 0; export let backpath = 0;
export let select = true; export let select = true;
export let plain = false; export let plain = false;

View File

@ -1,11 +1,11 @@
<slot /> <slot />
<style> <style>
:global(body.sb-main-fullscreen) { :global(body.sb-main-fullscreen) {
height: 100vh; height: 100vh;
} }
:global(#storybook-root) { :global(#storybook-root) {
display: contents; display: contents;
} }
</style> </style>

View File

@ -1,11 +1,9 @@
export const imageAddress = "zb2rhYSdmX5kD5vkUErWkmTpyhGugBX8WqBuLLQdgox8ztwwx"; export const imageAddress = 'zb2rhYSdmX5kD5vkUErWkmTpyhGugBX8WqBuLLQdgox8ztwwx';
export const imageVerticalAddress = export const imageVerticalAddress = 'zb2rhmTC5cXbcQ3kgXkcksWWBbR4VrzU5L3S9kbyMPCicVy9L';
"zb2rhmTC5cXbcQ3kgXkcksWWBbR4VrzU5L3S9kbyMPCicVy9L";
export const audioAddress = "zb2rhj3LpjUDtka3WuygZJGcEbgmrEyjBY6Y6ya9PVVEkbkke"; export const audioAddress = 'zb2rhj3LpjUDtka3WuygZJGcEbgmrEyjBY6Y6ya9PVVEkbkke';
export const videoAddress = "zb2rhnhv2Me2ZWohSYp7kyf1KAQbZ1zsLficHsaWTgoex67iJ"; export const videoAddress = 'zb2rhnhv2Me2ZWohSYp7kyf1KAQbZ1zsLficHsaWTgoex67iJ';
export const videoVerticalAddress = export const videoVerticalAddress = 'zb2rhocWjf4rc39Wi7TDv6KaVxs2iTQqN6CVYR6m7M8AYgp9c';
"zb2rhocWjf4rc39Wi7TDv6KaVxs2iTQqN6CVYR6m7M8AYgp9c";
export const stlAddress = "zb2rhbprcQL38kifW8aMW8cvgWymtaBEe6fK9n3nzDum25Paf"; export const stlAddress = 'zb2rhbprcQL38kifW8aMW8cvgWymtaBEe6fK9n3nzDum25Paf';

View File

@ -10,7 +10,8 @@
"sourceMap": true, "sourceMap": true,
"strict": true, "strict": true,
"moduleResolution": "bundler" "moduleResolution": "bundler"
} },
"exclude": ["node_modules", "dist", "src/stories"]
// Path aliases are handled by https://kit.svelte.dev/docs/configuration#alias // Path aliases are handled by https://kit.svelte.dev/docs/configuration#alias
// //
// If you want to overwrite includes/excludes, make sure to copy over the relevant includes/excludes // If you want to overwrite includes/excludes, make sure to copy over the relevant includes/excludes