isorted-fmt

This commit is contained in:
Untone 2024-05-07 18:17:31 +03:00
parent f992cf9377
commit ec0c2cf136
14 changed files with 21 additions and 48 deletions

View File

@ -1,21 +1,8 @@
{
"$schema": "https://biomejs.dev/schemas/1.5.3/schema.json",
"files": {
"include": [
"*.tsx",
"*.ts",
"*.js",
"*.json"
],
"ignore": [
"./dist",
"./node_modules",
".husky",
"docs",
"gen",
"*.gen.ts",
"*.d.ts"
]
"include": ["*.tsx", "*.ts", "*.js", "*.json"],
"ignore": ["./dist", "./node_modules", ".husky", "docs", "gen", "*.gen.ts", "*.d.ts"]
},
"vcs": {
"defaultBranch": "dev",
@ -23,19 +10,13 @@
},
"organizeImports": {
"enabled": true,
"ignore": [
"./api",
"./gen"
]
"ignore": ["./api", "./gen"]
},
"formatter": {
"indentStyle": "space",
"indentWidth": 2,
"lineWidth": 108,
"ignore": [
"./src/graphql/schema",
"./gen"
]
"ignore": ["./src/graphql/schema", "./gen"]
},
"javascript": {
"formatter": {
@ -48,13 +29,7 @@
}
},
"linter": {
"ignore": [
"*.scss",
"*.md",
".DS_Store",
"*.svg",
"*.d.ts"
],
"ignore": ["*.scss", "*.md", ".DS_Store", "*.svg", "*.d.ts"],
"enabled": true,
"rules": {
"all": true,

View File

@ -16,7 +16,7 @@
"hygen": "HYGEN_TMPLS=gen hygen",
"postinstall": "npm run codegen && npx patch-package",
"check:code": "npx @biomejs/biome check src --log-kind=compact --verbose",
"check:code:fix": "npx @biomejs/biome lint src --log-kind=compact",
"check:code:fix": "npx @biomejs/biome check . --apply",
"lint": "npm run lint:code && stylelint **/*.{scss,css}",
"lint:code": "npx @biomejs/biome lint src --log-kind=compact --verbose",
"lint:code:fix": "npx @biomejs/biome lint src --apply-unsafe --log-kind=compact --verbose",
@ -140,7 +140,5 @@
"y-prosemirror": "1.2.2",
"yjs": "13.6.12"
},
"trustedDependencies": [
"@biomejs/biome"
]
"trustedDependencies": ["@biomejs/biome"]
}

View File

@ -1,8 +1,8 @@
import type { PageProps, RootSearchParams } from '../pages/types'
import { Meta, MetaProvider } from '../context/meta'
import { Component, createEffect, createMemo } from 'solid-js'
import { Dynamic } from 'solid-js/web'
import { Meta, MetaProvider } from '../context/meta'
import { ConfirmProvider } from '../context/confirm'
import { ConnectProvider } from '../context/connect'

View File

@ -2,11 +2,11 @@ import type { Author, Shout, Topic } from '../../graphql/schema/core.gen'
import { getPagePath } from '@nanostores/router'
import { createPopper } from '@popperjs/core'
import { Link, Meta } from '../../context/meta'
import { clsx } from 'clsx'
import { install } from 'ga-gtag'
import { For, Show, createEffect, createMemo, createSignal, on, onCleanup, onMount } from 'solid-js'
import { isServer } from 'solid-js/web'
import { Link, Meta } from '../../context/meta'
import { useLocalize } from '../../context/localize'
import { useReactions } from '../../context/reactions'

View File

@ -1,8 +1,8 @@
import type { Author } from '../../../graphql/schema/core.gen'
import { Meta } from '../../../context/meta'
import { clsx } from 'clsx'
import { For, Show, createMemo, createSignal } from 'solid-js'
import { Meta } from '../../../context/meta'
import { useLocalize } from '../../../context/localize'
import { useRouter } from '../../../stores/router'

View File

@ -1,9 +1,9 @@
import type { Topic } from '../../../graphql/schema/core.gen'
import { Meta } from '../../../context/meta'
import { clsx } from 'clsx'
import { For, Show, createEffect, createMemo, createSignal } from 'solid-js'
import { useLocalize } from '../../../context/localize'
import { Meta } from '../../../context/meta'
import { useTopics } from '../../../context/topics'
import { useRouter } from '../../../stores/router'
import { capitalize } from '../../../utils/capitalize'

View File

@ -1,9 +1,9 @@
import type { Author, Reaction, Shout, Topic } from '../../../graphql/schema/core.gen'
import { getPagePath } from '@nanostores/router'
import { Meta, Title } from '../../../context/meta'
import { clsx } from 'clsx'
import { For, Match, Show, Switch, createEffect, createMemo, createSignal, on, onMount } from 'solid-js'
import { Meta, Title } from '../../../context/meta'
import { useFollowing } from '../../../context/following'
import { useLocalize } from '../../../context/localize'

View File

@ -1,9 +1,9 @@
import { getPagePath } from '@nanostores/router'
import { Meta } from '../../../context/meta'
import { clsx } from 'clsx'
import { For, Show, createEffect, createMemo, createSignal, on, onMount } from 'solid-js'
import { useLocalize } from '../../../context/localize'
import { Meta } from '../../../context/meta'
import { useReactions } from '../../../context/reactions'
import { useSession } from '../../../context/session'
import { useTopics } from '../../../context/topics'

View File

@ -1,8 +1,8 @@
import { LoadShoutsOptions, Shout, Topic } from '../../graphql/schema/core.gen'
import { Meta } from '../../context/meta'
import { clsx } from 'clsx'
import { For, Show, createEffect, createMemo, createSignal, on, onMount } from 'solid-js'
import { Meta } from '../../context/meta'
import { useLocalize } from '../../context/localize'
import { useTopics } from '../../context/topics'

View File

@ -1,7 +1,7 @@
import type { JSX } from 'solid-js'
import { Link } from '../../../context/meta'
import { splitProps } from 'solid-js'
import { Link } from '../../../context/meta'
import { getImageUrl } from '../../../utils/getImageUrl'

View File

@ -1,8 +1,8 @@
import type { JSX } from 'solid-js'
import { Title } from '../../context/meta'
import { clsx } from 'clsx'
import { Show, createEffect, createSignal } from 'solid-js'
import { Title } from '../../context/meta'
import { Footer } from '../Discours/Footer'
import { Header } from '../Nav/Header'

View File

@ -1,11 +1,11 @@
import {
Component,
JSX,
ParentComponent,
createContext,
createRenderEffect,
createSignal,
JSX,
onCleanup,
ParentComponent,
useContext,
} from 'solid-js'
import { isServer, spread } from 'solid-js/web'

View File

@ -1,6 +1,6 @@
import { redirectPage } from '@nanostores/router'
import { Meta } from '../context/meta'
import { clsx } from 'clsx'
import { Meta } from '../context/meta'
import { AuthGuard } from '../components/AuthGuard'
import { Button } from '../components/_shared/Button'

View File

@ -1,7 +1,7 @@
import ssrPlugin from 'vike/plugin'
import { defineConfig } from 'vite'
import mkcert from 'vite-plugin-mkcert'
import { nodePolyfills } from 'vite-plugin-node-polyfills';
import { nodePolyfills } from 'vite-plugin-node-polyfills'
import sassDts from 'vite-plugin-sass-dts'
import solidPlugin from 'vite-plugin-solid'