Skip to content

Commit 739e005

Browse files
committed
Merge from main
2 parents eb09399 + 712cf55 commit 739e005

176 files changed

Lines changed: 10879 additions & 9972 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.

.eslintrc

Lines changed: 0 additions & 39 deletions
This file was deleted.

.github/workflows/format.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Setup Node.js environment
1717
uses: actions/setup-node@v4
1818
with:
19-
node-version: 18
19+
node-version: 20
2020
cache: pnpm
2121

2222
- name: Install dependencies

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Setup Node.js environment
1818
uses: actions/setup-node@v4
1919
with:
20-
node-version: 18
20+
node-version: 20
2121
cache: pnpm
2222

2323
- name: Install Dependencies

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Setup Node.js environment
1919
uses: actions/setup-node@v4
2020
with:
21-
node-version: 18
21+
node-version: 20
2222
cache: pnpm
2323

2424
- name: Install dependencies

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ dist/
154154

155155
# vscode settings
156156
.vscode/settings.json
157+
.vscode/launch.json
157158

158159
# Temporary folders
159160
tmp/

.nvmrc

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

README.md

Lines changed: 5 additions & 3 deletions
Large diffs are not rendered by default.

configs/vitest.config.ts

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
import { defineConfig } from "vitest/config";
22
import solidPlugin from "vite-plugin-solid";
3+
import * as utils from "../scripts/utils/index.js"
34

4-
const fromRoot = process.env.CI === "true";
5+
const package_name = utils.getPackageNameFromCWD()
6+
7+
if (package_name == null) {
8+
utils.logLine("Testing ALL packages...")
9+
} else {
10+
utils.logLine("Testing "+package_name+" package...")
11+
}
12+
13+
const from_root = package_name == null
514

615
export default defineConfig(({ mode }) => {
716
// test in server environment
@@ -25,7 +34,7 @@ export default defineConfig(({ mode }) => {
2534
transformMode: {
2635
web: [/\.[jt]sx$/],
2736
},
28-
...(fromRoot
37+
...(from_root
2938
? // Testing all packages from root
3039
{
3140
...(testSSR && { include: ["packages/*/test/server.test.{ts,tsx}"] }),

eslint.config.mjs

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
import typescriptEslint from "@typescript-eslint/eslint-plugin";
2+
import noOnlyTests from "eslint-plugin-no-only-tests";
3+
import eslintComments from "eslint-plugin-eslint-comments";
4+
import tsParser from "@typescript-eslint/parser";
5+
6+
export default [{
7+
ignores: ["packages/*/dist/**/*", "packages/*/dev/**/*", "**/*/__snapshots__/**/*"],
8+
}, {
9+
plugins: {
10+
"@typescript-eslint": typescriptEslint,
11+
"no-only-tests": noOnlyTests,
12+
"eslint-comments": eslintComments,
13+
},
14+
15+
languageOptions: {
16+
parser: tsParser,
17+
ecmaVersion: 5,
18+
sourceType: "module",
19+
20+
parserOptions: {
21+
project: "./tsconfig.json",
22+
tsconfigRootDir: ".",
23+
},
24+
},
25+
26+
rules: {
27+
"no-console": "warn",
28+
"no-debugger": "warn",
29+
"prefer-const": "warn",
30+
31+
"@typescript-eslint/no-unused-vars": ["warn", {
32+
argsIgnorePattern: "^_",
33+
varsIgnorePattern: "^_",
34+
caughtErrorsIgnorePattern: "^_",
35+
}],
36+
37+
"@typescript-eslint/no-unnecessary-boolean-literal-compare": "warn",
38+
"@typescript-eslint/no-unnecessary-condition": "warn",
39+
"@typescript-eslint/no-unnecessary-qualifier": "warn",
40+
"@typescript-eslint/no-unnecessary-type-arguments": "warn",
41+
"@typescript-eslint/no-unnecessary-type-assertion": "warn",
42+
"@typescript-eslint/no-unnecessary-type-constraint": "warn",
43+
"@typescript-eslint/no-useless-empty-export": "warn",
44+
"eslint-comments/no-unused-disable": "warn",
45+
"no-only-tests/no-only-tests": "warn",
46+
},
47+
}];

netlify.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[build]
22
base = "/"
3-
publish = "site/dist/public"
3+
publish = "site/dist"
44
command = "pnpm build && pnpm -dir site run deploy"

0 commit comments

Comments
 (0)