Skip to content

Commit c8eeacb

Browse files
committed
style: fix biome issues
1 parent 300a39b commit c8eeacb

12 files changed

Lines changed: 55 additions & 51 deletions

File tree

biome.json

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,13 @@
22
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
33
"assist": { "actions": { "source": { "organizeImports": "on" } } },
44
"files": {
5-
"includes": ["biome.json", "commitlint.config.cjs", "src/**/*", "skeleton/**/*"]
5+
"includes": [
6+
"biome.json",
7+
"commitlint.config.cjs",
8+
"src/**/*",
9+
"skeleton/**/*",
10+
"!skeleton/src/routeTree.gen.ts"
11+
]
612
},
713
"linter": {
814
"enabled": true,
@@ -17,7 +23,13 @@
1723
"noUnusedPrivateClassMembers": "error",
1824
"useHookAtTopLevel": "error",
1925
"noInvalidBuiltinInstantiation": "error",
20-
"noSwitchDeclarations": "error"
26+
"noSwitchDeclarations": "error",
27+
"noUnusedVariables": {
28+
"level": "error",
29+
"options": {
30+
"ignoreRestSiblings": true
31+
}
32+
}
2133
},
2234
"style": {
2335
"useBlockStatements": "error",

skeleton/cdk/package.json

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
{
2-
"name": "cdk",
3-
"version": "1.0.0",
4-
"type": "module",
5-
"scripts": {
6-
"build": "tsc"
7-
},
8-
"devDependencies": {
9-
"@tsconfig/node22": "^22.0.1",
10-
"@types/fs-extra": "^11.0.4",
11-
"@types/node": "^22.14.0",
12-
"aws-cdk": "^2.1007.0",
13-
"typescript": "^5.3.3"
14-
},
15-
"dependencies": {
16-
"aws-cdk-lib": "^2.188.0",
17-
"constructs": "^10.4.2",
18-
"fs-extra": "^11.3.0"
19-
}
2+
"name": "cdk",
3+
"version": "1.0.0",
4+
"type": "module",
5+
"scripts": {
6+
"build": "tsc"
7+
},
8+
"devDependencies": {
9+
"@tsconfig/node22": "^22.0.1",
10+
"@types/fs-extra": "^11.0.4",
11+
"@types/node": "^22.14.0",
12+
"aws-cdk": "^2.1007.0",
13+
"typescript": "^5.3.3"
14+
},
15+
"dependencies": {
16+
"aws-cdk-lib": "^2.188.0",
17+
"constructs": "^10.4.2",
18+
"fs-extra": "^11.3.0"
19+
}
2020
}

skeleton/cdk/tsconfig.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,5 @@
66
"sourceMap": true,
77
"outDir": "dist"
88
},
9-
"include": [
10-
"src/**/*"
11-
]
9+
"include": ["src/**/*"]
1210
}

skeleton/src/components/AuthGuard/AuthGuard.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import FullPageSpinner from "@/components/FullPageSpinner/index.ts";
21
import { useAuth0 } from "@auth0/auth0-react";
3-
import { useEffect } from "react";
42
import type { ReactNode } from "react";
3+
import { useEffect } from "react";
4+
import FullPageSpinner from "@/components/FullPageSpinner/index.ts";
55
import AuthError from "./AuthError.tsx";
66

77
type Props = {

skeleton/src/components/ErrorCard/ErrorCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import {
88
Divider,
99
IconButton,
1010
type IconButtonProps,
11-
Typography,
1211
styled,
12+
Typography,
1313
} from "@mui/material";
1414
import type { ReactNode } from "react";
1515
import { useState } from "react";
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
export { default as ButtonLink } from "./ButtonLink";
2-
export { default as MenuItemLink } from "./MenuItemLink";
3-
export { default as ListItemButtonLinks } from "./ListItemButtonLink";
42
export { default as Link } from "./Link";
3+
export { default as ListItemButtonLinks } from "./ListItemButtonLink";
4+
export { default as MenuItemLink } from "./MenuItemLink";

skeleton/src/queries/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
import { createContext, type ReactNode, useContext } from "react";
12
import { createArticleQueryOptionsFactory } from "@/queries/article.ts";
2-
import { type ReactNode, createContext, useContext } from "react";
33

44
export const createQueryOptionsFactory = (authFetch: typeof fetch) => ({
55
article: createArticleQueryOptionsFactory(authFetch),

skeleton/src/routes/articles/$articleId/edit.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import { useUpdateArticleMutation } from "@/mutations/article.ts";
2-
import { useQueryOptionsFactory } from "@/queries";
31
import { Backdrop, CircularProgress } from "@mui/material";
42
import { useSuspenseQuery } from "@tanstack/react-query";
53
import { createFileRoute, useNavigate } from "@tanstack/react-router";
64
import { useSnackbar } from "notistack";
75
import type { ReactNode } from "react";
6+
import { useUpdateArticleMutation } from "@/mutations/article.ts";
7+
import { useQueryOptionsFactory } from "@/queries";
88
import ArticleFormDialog, { type ArticleFormValues } from "../-components/ArticleFormDialog.tsx";
99

1010
const Root = (): ReactNode => {

skeleton/src/routes/articles/-components/ArticleListItem.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
import ConfirmDialog from "@/components/ConfirmDialog/index.ts";
2-
import { useDeleteArticleMutation } from "@/mutations/article.ts";
3-
import type { ListArticle } from "@/queries/article.ts";
41
import MoreVertIcon from "@mui/icons-material/MoreVert";
52
import { IconButton, ListItem, ListItemText, Menu, MenuItem } from "@mui/material";
63
import { useNavigate } from "@tanstack/react-router";
74
import { bindMenu, bindTrigger, usePopupState } from "material-ui-popup-state/hooks";
85
import { useSnackbar } from "notistack";
96
import type { ReactNode } from "react";
107
import { useConfirm } from "react-confirm-hook";
8+
import ConfirmDialog from "@/components/ConfirmDialog/index.ts";
9+
import { useDeleteArticleMutation } from "@/mutations/article.ts";
10+
import type { ListArticle } from "@/queries/article.ts";
1111

1212
type Props = {
1313
article: ListArticle;

skeleton/src/routes/articles/create.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { useCreateArticleMutation } from "@/mutations/article.ts";
21
import { createFileRoute, useNavigate } from "@tanstack/react-router";
32
import { useSnackbar } from "notistack";
43
import type { ReactNode } from "react";
4+
import { useCreateArticleMutation } from "@/mutations/article.ts";
55
import ArticleFormDialog, { type ArticleFormValues } from "./-components/ArticleFormDialog.tsx";
66

77
const Root = (): ReactNode => {

0 commit comments

Comments
 (0)