Skip to content

Commit

Permalink
Enable import sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
smrtrfszm committed Oct 28, 2024
1 parent ef37030 commit c6e77fb
Show file tree
Hide file tree
Showing 11 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import js from '@eslint/js'
import solid from 'eslint-plugin-solid/configs/recommended'
import * as tsParser from '@typescript-eslint/parser'
import solid from 'eslint-plugin-solid/configs/recommended'
import ts from 'typescript-eslint'

export default [
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"dev": "vinxi dev",
"build": "vinxi build",
"start": "node ./.output/server/index.mjs",
"format": "biome format --write .",
"format": "biome format --write . && pnpm biome check --formatter-enabled=false --linter-enabled=false --organize-imports-enabled=true --write .",
"lint": "eslint ."
},
"type": "module",
Expand Down
4 changes: 2 additions & 2 deletions src/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ import previewImage from '~/assets/preview_image.png'
import Layout from '~/components/Layout'
import Title from '~/components/Title'
import '~/scss/global.scss'
import { loadColleaguesPage } from './data/colleagues.data'
import { loadHomePage } from './data/home.data'
import { loadInformationMenu } from './data/information.data'
import { loadPage } from './data/pages.data'
import { loadPost } from './data/post.data'
import { loadSearchPage } from './data/search.data'
import { loadInformationMenu } from './data/information.data'
import { loadColleaguesPage } from './data/colleagues.data'

const ROUTES: RouteDefinition[] = [
{
Expand Down
2 changes: 1 addition & 1 deletion src/components/InformationMenu.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { A } from '@solidjs/router'
import { For, Show, VoidComponent } from 'solid-js'
import { InternalOrExternalLinkMenuItem, MenuItem, PageLinkMenuItem } from '~/models/information'
import styles from './InformationMenu.module.scss'
import { A } from '@solidjs/router'

export type InformationMenuProps = {
menuItems: MenuItem[]
Expand Down
2 changes: 1 addition & 1 deletion src/components/PageRenderer.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Show, VoidComponent } from 'solid-js'
import styles from './PageRenderer.module.scss'
import { getSanitizer } from '~/utils/sanitize'
import styles from './PageRenderer.module.scss'

export type PageRendererProps = {
title?: string
Expand Down
2 changes: 1 addition & 1 deletion src/data/colleagues.data.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { gql, request } from '@solid-primitives/graphql'
import { cache, RoutePreloadFunc } from '@solidjs/router'
import { RoutePreloadFunc, cache } from '@solidjs/router'
import { GRAPHQL_BACKEND_URL } from '~/constants'
import { Category, Colleague } from '~/models/colleague'

Expand Down
2 changes: 1 addition & 1 deletion src/data/information.data.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { gql, request } from '@solid-primitives/graphql'
import { cache, RoutePreloadFunc } from '@solidjs/router'
import { RoutePreloadFunc, cache } from '@solidjs/router'
import { GRAPHQL_BACKEND_URL } from '~/constants'
import { MenuItem } from '~/models/information'

Expand Down
2 changes: 1 addition & 1 deletion src/data/pages.data.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { gql, request } from '@solid-primitives/graphql'
import { cache, redirect, RoutePreloadFunc } from '@solidjs/router'
import { RoutePreloadFunc, cache, redirect } from '@solidjs/router'
import { GRAPHQL_BACKEND_URL } from '~/constants'
import { Page } from '~/models/page'

Expand Down
2 changes: 1 addition & 1 deletion src/data/post.data.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { gql, request } from '@solid-primitives/graphql'
import { cache, redirect, RoutePreloadFunc } from '@solidjs/router'
import { RoutePreloadFunc, cache, redirect } from '@solidjs/router'
import { GRAPHQL_BACKEND_URL } from '~/constants'
import { Post } from '~/models/post'

Expand Down
6 changes: 3 additions & 3 deletions src/pages/Colleagues.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { createAsync, RouteSectionProps } from '@solidjs/router'
import { RouteSectionProps, createAsync } from '@solidjs/router'
import { Component, For, Show, VoidComponent } from 'solid-js'
import { queryColleaguesPage } from '~/data/colleagues.data'
import styles from './Colleagues.module.scss'
import Title from '~/components/Title'
import { queryColleaguesPage } from '~/data/colleagues.data'
import { Category as CategoryModel, Colleague as ColleagueModel } from '~/models/colleague'
import styles from './Colleagues.module.scss'

type ColleagueProps = {
colleague: ColleagueModel
Expand Down
4 changes: 2 additions & 2 deletions src/pages/Information.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { Navigate, RouteSectionProps, createAsync } from '@solidjs/router'
import { Component, Show } from 'solid-js'
import { InformationMenu } from '~/components/InformationMenu'
import PageRenderer from '~/components/PageRenderer'
import { queryInformationMenu } from '~/data/information.data'
import { queryPageByID } from '~/data/pages.data'
import { MenuItem } from '~/models/information'
import styles from './Information.module.scss'
import PageRenderer from '~/components/PageRenderer'
import { InformationMenu } from '~/components/InformationMenu'

const InformationPage: Component<RouteSectionProps> = (props) => {
const data = createAsync(() => queryInformationMenu())
Expand Down

0 comments on commit c6e77fb

Please sign in to comment.