Skip to content

Commit

Permalink
Merge pull request #85 from taro-28/renovate/biomejs-biome-1.x
Browse files Browse the repository at this point in the history
chore(deps): update dependency @biomejs/biome to v1.9.3
  • Loading branch information
taro-28 authored Oct 17, 2024
2 parents 8ea18cc + d105638 commit 28d63a0
Show file tree
Hide file tree
Showing 14 changed files with 59 additions and 57 deletions.
9 changes: 6 additions & 3 deletions biome.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
"organizeImports": {
"enabled": true
},
Expand All @@ -16,13 +16,16 @@
"noNonNullAssertion": "off"
},
"correctness": {
"noNodejsModules": "off"
"noNodejsModules": "off",
"useImportExtensions": "off",
"noUndeclaredDependencies": "off"
},
"complexity": {
"useLiteralKeys": "off"
},
"suspicious": {
"noExplicitAny": "off"
"noExplicitAny": "off",
"noReactSpecificProps": "off"
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export const Table = () => {
globalFilter: (query) =>
query["globalFilter"]
? JSON.parse(query["globalFilter"] as string)
: query["globalFilter"] ?? "",
: (query["globalFilter"] ?? ""),
sorting: (query) =>
Object.entries(query)
.filter(([key]) => key.startsWith("sorting."))
Expand Down
1 change: 0 additions & 1 deletion examples/next-app-router/src/app/globals.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@tailwind base;
@tailwind components;
@tailwind utilities;

Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export default function CustomEncoderDecoder() {
globalFilter: (query) =>
query["globalFilter"]
? JSON.parse(query["globalFilter"] as string)
: query["globalFilter"] ?? "",
: (query["globalFilter"] ?? ""),
sorting: (query) =>
Object.entries(query)
.filter(([key]) => key.startsWith("sorting."))
Expand Down
1 change: 0 additions & 1 deletion examples/next-pages-router/src/styles/globals.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@tailwind base;
@tailwind components;
@tailwind utilities;

Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ function Page() {
globalFilter: (query) =>
query["globalFilter"]
? JSON.parse(query["globalFilter"] as string)
: query["globalFilter"] ?? "",
: (query["globalFilter"] ?? ""),
sorting: (query) =>
Object.entries(query)
.filter(([key]) => key.startsWith("sorting."))
Expand Down
1 change: 0 additions & 1 deletion examples/tanstack-router/src/styles/globals.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@tailwind base;
@tailwind components;
@tailwind utilities;

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"build": "turbo build"
},
"devDependencies": {
"@biomejs/biome": "1.8.3",
"@biomejs/biome": "1.9.3",
"knip": "^5.26.0",
"turbo": "^2.0.12"
},
Expand Down
4 changes: 3 additions & 1 deletion packages/tanstack-table-search-params/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ export type Options = {
| number;
};

const regex = /s$/;

const extractSpecificStateOptions = <KEY extends keyof State>({
options,
key,
Expand All @@ -112,7 +114,7 @@ const extractSpecificStateOptions = <KEY extends keyof State>({
Object.fromEntries(
options
? Object.entries(options).map(([k, v]) => [
k === "debounceMilliseconds" ? k : k.replace(/s$/, ""),
k === "debounceMilliseconds" ? k : k.replace(regex, ""),
typeof v === "object" ? v?.[key] : v,
])
: [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ describe("globalFilter", () => {
globalFilter: (query) =>
query["globalFilter"]
? JSON.parse(query["globalFilter"] as string)
: query["globalFilter"] ?? "",
: (query["globalFilter"] ?? ""),
},
},
},
Expand All @@ -65,7 +65,7 @@ describe("globalFilter", () => {
globalFilter: (query) =>
query["userTable-globalFilter"]
? JSON.parse(query["userTable-globalFilter"] as string)
: query["userTable-globalFilter"] ?? "",
: (query["userTable-globalFilter"] ?? ""),
},
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ describe("globalFilter", () => {
globalFilter: (query) =>
query["globalFilter"]
? JSON.parse(query["globalFilter"] as string)
: query["globalFilter"] ?? "",
: (query["globalFilter"] ?? ""),
},
},
},
Expand All @@ -65,7 +65,7 @@ describe("globalFilter", () => {
globalFilter: (query) =>
query["userTable-globalFilter"]
? JSON.parse(query["userTable-globalFilter"] as string)
: query["userTable-globalFilter"] ?? "",
: (query["userTable-globalFilter"] ?? ""),
},
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,10 +151,10 @@ describe("pagination", () => {
pageIndex: "pageIndex",
pageSize: "pageSize",
})
: options?.paramNames?.pagination ?? {
: (options?.paramNames?.pagination ?? {
pageIndex: "pageIndex",
pageSize: "pageSize",
};
});

const debounceMilliseconds =
options?.debounceMilliseconds !== undefined
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,10 +151,10 @@ describe("pagination", () => {
pageIndex: "pageIndex",
pageSize: "pageSize",
})
: options?.paramNames?.pagination ?? {
: (options?.paramNames?.pagination ?? {
pageIndex: "pageIndex",
pageSize: "pageSize",
};
});

const debounceMilliseconds =
options?.debounceMilliseconds !== undefined
Expand Down
76 changes: 38 additions & 38 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 28d63a0

Please sign in to comment.