Skip to content

Commit 57cabb8

Browse files
committed
chore: consolidate Biome configuration
1 parent ee9581a commit 57cabb8

260 files changed

Lines changed: 34766 additions & 34807 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.changeset/config.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"$schema": "https://unpkg.com/@changesets/config@2.1.1/schema.json",
3-
"changelog": "@changesets/cli/changelog",
4-
"commit": false,
5-
"fixed": [],
6-
"linked": [],
7-
"access": "restricted",
8-
"baseBranch": "main",
9-
"updateInternalDependencies": "patch",
10-
"ignore": ["web", "@example/*"]
2+
"$schema": "https://unpkg.com/@changesets/config@2.1.1/schema.json",
3+
"changelog": "@changesets/cli/changelog",
4+
"commit": false,
5+
"fixed": [],
6+
"linked": [],
7+
"access": "restricted",
8+
"baseBranch": "main",
9+
"updateInternalDependencies": "patch",
10+
"ignore": ["web", "@example/*"]
1111
}

.vscode/extensions.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
{
2-
"recommendations": [
3-
"biomejs.biome",
4-
"unifiedjs.vscode-mdx"
5-
]
6-
}
2+
"recommendations": ["biomejs.biome", "unifiedjs.vscode-mdx"]
3+
}

.vscode/settings.json

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
11
{
2-
"typescript.tsdk": "node_modules/typescript/lib",
3-
"editor.defaultFormatter": "esbenp.prettier-vscode",
4-
"[json]": {
5-
"editor.defaultFormatter": "esbenp.prettier-vscode"
6-
},
7-
"[markdown]": {
8-
"editor.defaultFormatter": "esbenp.prettier-vscode"
9-
},
10-
"[yaml]": {
11-
"editor.defaultFormatter": "esbenp.prettier-vscode"
12-
},
13-
"[jsonc]": {
14-
"editor.defaultFormatter": "esbenp.prettier-vscode"
15-
},
16-
"files.associations": {
17-
"*.mdx": "markdown"
18-
},
19-
"[svelte]": {
20-
"editor.defaultFormatter": "svelte.svelte-vscode"
21-
},
22-
"[typescript]": {
23-
"editor.defaultFormatter": "esbenp.prettier-vscode"
24-
},
25-
"[typescriptreact]": {
26-
"editor.defaultFormatter": "esbenp.prettier-vscode"
27-
}
2+
"typescript.tsdk": "node_modules/typescript/lib",
3+
"editor.defaultFormatter": "esbenp.prettier-vscode",
4+
"[json]": {
5+
"editor.defaultFormatter": "esbenp.prettier-vscode"
6+
},
7+
"[markdown]": {
8+
"editor.defaultFormatter": "esbenp.prettier-vscode"
9+
},
10+
"[yaml]": {
11+
"editor.defaultFormatter": "esbenp.prettier-vscode"
12+
},
13+
"[jsonc]": {
14+
"editor.defaultFormatter": "esbenp.prettier-vscode"
15+
},
16+
"files.associations": {
17+
"*.mdx": "markdown"
18+
},
19+
"[svelte]": {
20+
"editor.defaultFormatter": "svelte.svelte-vscode"
21+
},
22+
"[typescript]": {
23+
"editor.defaultFormatter": "esbenp.prettier-vscode"
24+
},
25+
"[typescriptreact]": {
26+
"editor.defaultFormatter": "esbenp.prettier-vscode"
27+
}
2828
}

apps/relay/biome.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

apps/relay/src/index.ts

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,27 +8,27 @@ mkdirSync("data", { recursive: true });
88
process.chdir("data");
99

1010
const deps = {
11-
console: createConsole(),
11+
console: createConsole(),
1212
};
1313

1414
const relay = await createNodeJsRelay(deps)({
15-
port: 4000,
16-
enableLogging: false,
15+
port: 4000,
16+
enableLogging: false,
1717

18-
// Note: Relay requires URL in format ws://host:port/<ownerId>
19-
// isOwnerAllowed: (_ownerId) => true,
18+
// Note: Relay requires URL in format ws://host:port/<ownerId>
19+
// isOwnerAllowed: (_ownerId) => true,
2020

21-
isOwnerWithinQuota: (_ownerId, requiredBytes) => {
22-
const maxBytes = 1024 * 1024; // 1MB
23-
return requiredBytes <= maxBytes;
24-
},
21+
isOwnerWithinQuota: (_ownerId, requiredBytes) => {
22+
const maxBytes = 1024 * 1024; // 1MB
23+
return requiredBytes <= maxBytes;
24+
},
2525
});
2626

2727
if (!relay.ok) {
28-
deps.console.error(relay.error);
28+
deps.console.error(relay.error);
2929
} else {
30-
// The `using` declaration ensures `relay.value[Symbol.dispose]()` is called
31-
// automatically when the block exits.
32-
using _ = relay.value;
33-
await Promise.race([once(process, "SIGINT"), once(process, "SIGTERM")]);
30+
// The `using` declaration ensures `relay.value[Symbol.dispose]()` is called
31+
// automatically when the block exits.
32+
using _ = relay.value;
33+
await Promise.race([once(process, "SIGINT"), once(process, "SIGTERM")]);
3434
}

apps/web/biome.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

apps/web/mdx-components.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import * as mdxComponents from "@/components/mdx";
44

55
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
66
export function useMDXComponents(components: MDXComponents) {
7-
return {
8-
...components,
9-
...mdxComponents,
10-
};
7+
return {
8+
...components,
9+
...mdxComponents,
10+
};
1111
}

apps/web/next.config.mjs

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -6,48 +6,48 @@ import { remarkPlugins } from "./src/mdx/remark.mjs";
66
import withSearch from "./src/mdx/search.mjs";
77

88
const withMDX = nextMDX({
9-
options: {
10-
remarkPlugins,
11-
rehypePlugins,
12-
recmaPlugins,
13-
},
9+
options: {
10+
remarkPlugins,
11+
rehypePlugins,
12+
recmaPlugins,
13+
},
1414
});
1515

1616
/** @type {import("next").NextConfig} */
1717
const nextConfig = {
18-
pageExtensions: ["js", "jsx", "ts", "tsx", "mdx"],
19-
outputFileTracingIncludes: {
20-
"/**/*": ["./src/app/**/*.mdx"],
21-
},
22-
async redirects() {
23-
return [
24-
{
25-
source: "/docs/quickstart",
26-
destination: "/docs/local-first",
27-
permanent: true,
28-
},
29-
{
30-
source: "/docs/installation",
31-
destination: "/docs/local-first",
32-
permanent: true,
33-
},
34-
{
35-
source: "/docs/evolu-server",
36-
destination: "/docs/relay",
37-
permanent: true,
38-
},
39-
{
40-
source: "/docs/evolu-relay",
41-
destination: "/docs/relay",
42-
permanent: true,
43-
},
44-
{
45-
source: "/examples/:path*",
46-
destination: "/docs/examples",
47-
permanent: true,
48-
},
49-
];
50-
},
18+
pageExtensions: ["js", "jsx", "ts", "tsx", "mdx"],
19+
outputFileTracingIncludes: {
20+
"/**/*": ["./src/app/**/*.mdx"],
21+
},
22+
async redirects() {
23+
return [
24+
{
25+
source: "/docs/quickstart",
26+
destination: "/docs/local-first",
27+
permanent: true,
28+
},
29+
{
30+
source: "/docs/installation",
31+
destination: "/docs/local-first",
32+
permanent: true,
33+
},
34+
{
35+
source: "/docs/evolu-server",
36+
destination: "/docs/relay",
37+
permanent: true,
38+
},
39+
{
40+
source: "/docs/evolu-relay",
41+
destination: "/docs/relay",
42+
permanent: true,
43+
},
44+
{
45+
source: "/examples/:path*",
46+
destination: "/docs/examples",
47+
permanent: true,
48+
},
49+
];
50+
},
5151
};
5252

5353
export default withSearch(withMDX(nextConfig));

apps/web/package.json

Lines changed: 63 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -1,65 +1,65 @@
11
{
2-
"name": "web",
3-
"version": "2.0.0",
4-
"private": true,
5-
"scripts": {
6-
"build": "cross-env NODE_OPTIONS=--max-old-space-size=4096 next build --webpack",
7-
"clean": "rimraf .turbo .next node_modules",
8-
"dev": "next dev --webpack",
9-
"fix:docs": "bun ./scripts/fix-api-reference.mts",
10-
"lint": "biome check .",
11-
"start": "next start"
12-
},
13-
"browserslist": "defaults, not ie <= 11",
14-
"dependencies": {
15-
"@algolia/autocomplete-core": "^1.19.2",
16-
"@evolu/common": "workspace:*",
17-
"@evolu/react": "workspace:*",
18-
"@evolu/react-web": "workspace:*",
19-
"@headlessui/react": "^2.2.7",
20-
"@headlessui/tailwindcss": "^0.2.2",
21-
"@mdx-js/loader": "^3.1.0",
22-
"@mdx-js/react": "^3.1.0",
23-
"@next/mdx": "^16.1.1",
24-
"@sindresorhus/slugify": "^3.0.0",
25-
"@tabler/icons-react": "^3.35.0",
26-
"@tailwindcss/forms": "^0.5.11",
27-
"@tailwindcss/postcss": "^4.1.18",
28-
"@tailwindcss/typography": "^0.5.16",
29-
"acorn": "^8.15.0",
30-
"clsx": "^2.1.1",
31-
"fast-glob": "^3.3.3",
32-
"flexsearch": "^0.8.205",
33-
"mdast-util-to-string": "^4.0.0",
34-
"mdx-annotations": "^0.1.4",
35-
"motion": "^12.23.26",
36-
"next": "^16.1.1",
37-
"next-themes": "^0.4.6",
38-
"react": "^19.1.0",
39-
"react-dom": "^19.1.0",
40-
"react-highlight-words": "^0.21.0",
41-
"remark": "^15.0.1",
42-
"remark-gfm": "^4.0.1",
43-
"remark-mdx": "^3.1.0",
44-
"rss": "^1.2.2",
45-
"shiki": "^3.19.0",
46-
"simple-functional-loader": "^1.2.1",
47-
"tailwindcss": "^4.1.18",
48-
"typescript": "^5.9.3",
49-
"unist-util-filter": "^5.0.1",
50-
"unist-util-visit": "^5.0.0",
51-
"zustand": "^5.0.9"
52-
},
53-
"devDependencies": {
54-
"@evolu/biome-config": "workspace:*",
55-
"@evolu/tsconfig": "workspace:*",
56-
"@types/mdx": "^2.0.13",
57-
"@types/node": "^24.10.3",
58-
"@types/react": "^19.1.17",
59-
"@types/react-dom": "^19.1.11",
60-
"@types/react-highlight-words": "^0.20.1",
61-
"@types/rss": "^0.0.32",
62-
"cross-env": "^10.0.0",
63-
"sharp": "^0.34.3"
64-
}
2+
"name": "web",
3+
"version": "2.0.0",
4+
"private": true,
5+
"scripts": {
6+
"build": "cross-env NODE_OPTIONS=--max-old-space-size=4096 next build --webpack",
7+
"clean": "rimraf .turbo .next node_modules",
8+
"dev": "next dev --webpack",
9+
"fix:docs": "bun ./scripts/fix-api-reference.mts",
10+
"lint": "biome check .",
11+
"start": "next start"
12+
},
13+
"browserslist": "defaults, not ie <= 11",
14+
"dependencies": {
15+
"@algolia/autocomplete-core": "^1.19.2",
16+
"@evolu/common": "workspace:*",
17+
"@evolu/react": "workspace:*",
18+
"@evolu/react-web": "workspace:*",
19+
"@headlessui/react": "^2.2.7",
20+
"@headlessui/tailwindcss": "^0.2.2",
21+
"@mdx-js/loader": "^3.1.0",
22+
"@mdx-js/react": "^3.1.0",
23+
"@next/mdx": "^16.1.1",
24+
"@sindresorhus/slugify": "^3.0.0",
25+
"@tabler/icons-react": "^3.35.0",
26+
"@tailwindcss/forms": "^0.5.11",
27+
"@tailwindcss/postcss": "^4.1.18",
28+
"@tailwindcss/typography": "^0.5.16",
29+
"acorn": "^8.15.0",
30+
"clsx": "^2.1.1",
31+
"fast-glob": "^3.3.3",
32+
"flexsearch": "^0.8.205",
33+
"mdast-util-to-string": "^4.0.0",
34+
"mdx-annotations": "^0.1.4",
35+
"motion": "^12.23.26",
36+
"next": "^16.1.1",
37+
"next-themes": "^0.4.6",
38+
"react": "^19.1.0",
39+
"react-dom": "^19.1.0",
40+
"react-highlight-words": "^0.21.0",
41+
"remark": "^15.0.1",
42+
"remark-gfm": "^4.0.1",
43+
"remark-mdx": "^3.1.0",
44+
"rss": "^1.2.2",
45+
"shiki": "^3.19.0",
46+
"simple-functional-loader": "^1.2.1",
47+
"tailwindcss": "^4.1.18",
48+
"typescript": "^5.9.3",
49+
"unist-util-filter": "^5.0.1",
50+
"unist-util-visit": "^5.0.0",
51+
"zustand": "^5.0.9"
52+
},
53+
"devDependencies": {
54+
"@evolu/biome-config": "workspace:*",
55+
"@evolu/tsconfig": "workspace:*",
56+
"@types/mdx": "^2.0.13",
57+
"@types/node": "^24.10.3",
58+
"@types/react": "^19.1.17",
59+
"@types/react-dom": "^19.1.11",
60+
"@types/react-highlight-words": "^0.20.1",
61+
"@types/rss": "^0.0.32",
62+
"cross-env": "^10.0.0",
63+
"sharp": "^0.34.3"
64+
}
6565
}

apps/web/postcss.config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// eslint-disable-next-line no-undef
22
module.exports = {
3-
plugins: {
4-
"@tailwindcss/postcss": {},
5-
},
3+
plugins: {
4+
"@tailwindcss/postcss": {},
5+
},
66
};

0 commit comments

Comments
 (0)