Skip to content

Commit dc7fc76

Browse files
committed
Bump!
1 parent 42f9a05 commit dc7fc76

30 files changed

+7687
-5696
lines changed

biome.json

Lines changed: 27 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
},
4545
"complexity": {
4646
"noBannedTypes": "error",
47+
"noEmptyTypeParameters": "error",
4748
"noExcessiveCognitiveComplexity": "error",
4849
"noExtraBooleanCast": "error",
4950
"noForEach": "error",
@@ -52,11 +53,13 @@
5253
"noThisInStatic": "error",
5354
"noUselessCatch": "error",
5455
"noUselessConstructor": "error",
56+
"noUselessLoneBlockStatements": "error",
5557
"noUselessEmptyExport": "error",
5658
"noUselessFragments": "error",
5759
"noUselessLabel": "error",
5860
"noUselessRename": "error",
5961
"noUselessSwitchCase": "error",
62+
"noUselessTernary": "error",
6063
"noUselessThisAlias": "error",
6164
"noUselessTypeConstraint": "error",
6265
"noVoid": "off",
@@ -72,15 +75,19 @@
7275
"correctness": {
7376
"noChildrenProp": "error",
7477
"noConstantCondition": "error",
78+
"noConstantMathMinMaxClamp": "error",
7579
"noConstAssign": "error",
7680
"noConstructorReturn": "error",
7781
"noEmptyCharacterClassInRegex": "error",
7882
"noEmptyPattern": "error",
83+
"noFlatMapIdentity": "error",
7984
"noGlobalObjectCalls": "error",
8085
"noInnerDeclarations": "error",
8186
"noInvalidConstructorSuper": "error",
8287
"noInvalidNewBuiltin": "error",
88+
"noInvalidUseBeforeDeclaration": "error",
8389
"noNewSymbol": "error",
90+
"noNodejsModules": "off",
8491
"noNonoctalDecimalEscape": "error",
8592
"noPrecisionLoss": "error",
8693
"noRenderReturnValue": "error",
@@ -94,10 +101,13 @@
94101
"noUnreachableSuper": "error",
95102
"noUnsafeFinally": "error",
96103
"noUnsafeOptionalChaining": "error",
104+
"noUnusedImports": "error",
97105
"noUnusedLabels": "error",
106+
"noUnusedPrivateClassMembers": "error",
98107
"noUnusedVariables": "error",
99108
"noVoidElementsWithChildren": "error",
100109
"noVoidTypeReturn": "error",
110+
"useArrayLiterals": "error",
101111
"useExhaustiveDependencies": "error",
102112
"useHookAtTopLevel": "error",
103113
"useIsNan": "error",
@@ -110,13 +120,14 @@
110120
},
111121
"security": {
112122
"noDangerouslySetInnerHtml": "error",
113-
"noDangerouslySetInnerHtmlWithChildren": "error"
123+
"noDangerouslySetInnerHtmlWithChildren": "error",
124+
"noGlobalEval": "off"
114125
},
115126
"style": {
116127
"noArguments": "error",
117128
"noCommaOperator": "off",
118129
"noDefaultExport": "off",
119-
"noImplicitBoolean": "off",
130+
"noImplicitBoolean": "error",
120131
"noInferrableTypes": "error",
121132
"noNamespace": "error",
122133
"noNegationElse": "error",
@@ -131,17 +142,25 @@
131142
"useAsConstAssertion": "error",
132143
"useBlockStatements": "error",
133144
"useCollapsedElseIf": "error",
145+
"useConsistentArrayType": "error",
134146
"useConst": "error",
135147
"useDefaultParameterLast": "error",
136148
"useEnumInitializers": "error",
137149
"useExponentiationOperator": "error",
150+
"useExportType": "error",
138151
"useFragmentSyntax": "error",
152+
"useFilenamingConvention": "off",
153+
"useForOf": "warn",
154+
"useImportType": "error",
139155
"useLiteralEnumMembers": "error",
140156
"useNamingConvention": "off",
157+
"useNodejsImportProtocol": "warn",
158+
"useNumberNamespace": "error",
141159
"useNumericLiterals": "error",
142160
"useSelfClosingElements": "error",
143161
"useShorthandArrayType": "error",
144162
"useShorthandAssign": "error",
163+
"useShorthandFunctionType": "warn",
145164
"useSingleCaseStatement": "error",
146165
"useSingleVarDeclarator": "error",
147166
"useTemplate": "off",
@@ -168,16 +187,19 @@
168187
"noDuplicateJsxProps": "error",
169188
"noDuplicateObjectKeys": "error",
170189
"noDuplicateParameters": "error",
190+
"noEmptyBlockStatements": "error",
171191
"noEmptyInterface": "error",
172192
"noExplicitAny": "warn",
173193
"noExtraNonNullAssertion": "error",
174194
"noFallthroughSwitchClause": "error",
175195
"noFunctionAssign": "error",
196+
"noGlobalAssign": "error",
176197
"noGlobalIsFinite": "error",
177198
"noGlobalIsNan": "error",
178199
"noImplicitAnyLet": "off",
179200
"noImportAssign": "error",
180201
"noLabelVar": "error",
202+
"noMisleadingCharacterClass": "error",
181203
"noMisleadingInstantiator": "error",
182204
"noMisrefactoredShorthandAssign": "off",
183205
"noPrototypeBuiltins": "error",
@@ -186,39 +208,15 @@
186208
"noSelfCompare": "off",
187209
"noShadowRestrictedNames": "error",
188210
"noSparseArray": "off",
211+
"noThenProperty": "warn",
189212
"noUnsafeDeclarationMerging": "error",
190213
"noUnsafeNegation": "error",
214+
"useAwait": "error",
191215
"useDefaultSwitchClauseLast": "error",
192216
"useGetterReturn": "error",
193217
"useIsArray": "error",
194218
"useNamespaceKeyword": "error",
195219
"useValidTypeof": "error"
196-
},
197-
"nursery": {
198-
"noDuplicateJsonKeys": "off",
199-
"noEmptyBlockStatements": "error",
200-
"noEmptyTypeParameters": "error",
201-
"noGlobalEval": "off",
202-
"noGlobalAssign": "error",
203-
"noInvalidUseBeforeDeclaration": "error",
204-
"noMisleadingCharacterClass": "error",
205-
"noNodejsModules": "off",
206-
"noThenProperty": "warn",
207-
"noUnusedImports": "error",
208-
"noUnusedPrivateClassMembers": "error",
209-
"noUselessLoneBlockStatements": "error",
210-
"noUselessTernary": "error",
211-
"useAwait": "error",
212-
"useConsistentArrayType": "error",
213-
"useExportType": "error",
214-
"useFilenamingConvention": "off",
215-
"useForOf": "warn",
216-
"useGroupedTypeImport": "error",
217-
"useImportRestrictions": "off",
218-
"useImportType": "error",
219-
"useNodejsImportProtocol": "warn",
220-
"useNumberNamespace": "error",
221-
"useShorthandFunctionType": "warn"
222220
}
223221
}
224222
},
@@ -249,7 +247,7 @@
249247
"quoteProperties": "asNeeded",
250248
"quoteStyle": "single",
251249
"semicolons": "always",
252-
"trailingComma": "all"
250+
"trailingCommas": "all"
253251
},
254252
"globals": [],
255253
"parser": {

examples/astro-demo/astro.config.mjs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
import { defineConfig } from 'astro/config';
1+
import { defineConfig } from "astro/config";
22

33
// https://astro.build/config
4-
import solidJs from '@astrojs/solid-js';
5-
import solidStyled from 'unplugin-solid-styled';
4+
import solidJs from "@astrojs/solid-js";
5+
import solidStyled from "unplugin-solid-styled";
66

77
// https://astro.build/config
88
export default defineConfig({
99
integrations: [solidJs()],
1010
vite: {
1111
plugins: [
1212
solidStyled.vite({
13-
prefix: 'example',
13+
prefix: "example",
1414
filter: {
15-
include: 'src/**/*.tsx',
16-
exclude: 'node_modules/**/*.{ts,js}',
15+
include: "src/**/*.tsx",
16+
exclude: "node_modules/**/*.{ts,js}",
1717
},
1818
}),
1919
],

examples/astro-demo/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@
1010
},
1111
"devDependencies": {
1212
"astro": "^4.1.2",
13-
"typescript": "^5.3.3",
14-
"unplugin-solid-styled": "0.11.1"
13+
"typescript": "^5.7.3",
14+
"unplugin-solid-styled": "0.11.1",
15+
"vite-plugin-inspect": "^10.1.1"
1516
},
1617
"dependencies": {
1718
"@astrojs/solid-js": "^4.0.1",

examples/astro-demo/src/components/App.tsx

Lines changed: 36 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,62 @@
1-
import { createSignal, Show } from 'solid-js';
21
import type { JSX } from 'solid-js';
2+
import { Show, createSignal } from 'solid-js';
33
import { css } from 'solid-styled';
44

55
function ShowButton(): JSX.Element {
66
const [show, setShow] = createSignal(false);
7-
const [red, setRed] = createSignal(false);
87

98
css`
109
.toggle {
1110
width: 50vw;
1211
padding: 0.5rem;
1312
border: none;
14-
color: white;
13+
color: ${show() ? 'red' : 'blue'};
1514
font-size: 2rem;
1615
border-radius: 0.5rem;
1716
background-color: #111827;
1817
}
1918
`;
20-
css`
21-
div > button {
22-
width: 50vw;
23-
padding: 0.5rem;
24-
border: none;
25-
color: white;
26-
font-size: 2rem;
27-
/* border-radius: 0.5rem; */
28-
background-image: linear-gradient(
29-
to top,
30-
${red() ? '#ff0844' : '#48c6ef'} 0%,
31-
${red() ? '#ffb199' : '#6f86d6'} 100%
32-
);
33-
}
34-
`;
19+
20+
function Foo() {
21+
const [red, setRed] = createSignal(false);
22+
css`
23+
div > button {
24+
width: 50vw;
25+
padding: 0.5rem;
26+
border: none;
27+
color: white;
28+
font-size: 2rem;
29+
/* border-radius: 0.5rem; */
30+
background-image: linear-gradient(
31+
to top,
32+
${red() ? '#ff0844' : '#48c6ef'} 0%,
33+
${red() ? '#ffb199' : '#6f86d6'} 100%
34+
);
35+
}
36+
`;
37+
38+
return (
39+
<div>
40+
<button
41+
type="button"
42+
onClick={() => setRed(!red())}
43+
style={{
44+
'border-radius': '0.5rem',
45+
}}
46+
>
47+
{red() ? 'Red' : 'Blue'}
48+
</button>
49+
</div>
50+
);
51+
}
3552

3653
return (
3754
<>
3855
<button class="toggle" type="button" onClick={() => setShow(!show())}>
3956
{show() ? 'Hide Div' : 'Show Div'}
4057
</button>
4158
<Show when={show()}>
42-
<div>
43-
<button
44-
type="button"
45-
onClick={() => setRed(!red())}
46-
style={{
47-
'border-radius': '0.5rem',
48-
}}
49-
>
50-
{red() ? 'Red' : 'Blue'}
51-
</button>
52-
</div>
59+
<Foo />
5360
</Show>
5461
</>
5562
);

examples/demo/package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,14 @@
88
"serve": "vite preview"
99
},
1010
"devDependencies": {
11-
"typescript": "^5.3.3",
11+
"typescript": "^5.7.3",
1212
"unplugin-solid-styled": "0.11.1",
13-
"vite": "^5.0.11",
14-
"vite-plugin-solid": "2.8.0"
13+
"vite": "^6.1.0",
14+
"vite-plugin-inspect": "^10.1.1",
15+
"vite-plugin-solid": "2.11.1"
1516
},
1617
"dependencies": {
17-
"solid-js": "^1.8.11",
18+
"solid-js": "^1.9.4",
1819
"solid-styled": "0.11.1"
1920
},
2021
"private": true,

examples/demo/vite.config.js

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
1-
import { defineConfig } from 'vite';
2-
import solidPlugin from 'vite-plugin-solid';
3-
import solidStyled from 'unplugin-solid-styled';
1+
import solidStyled from "unplugin-solid-styled";
2+
import { defineConfig } from "vite";
3+
import inspect from "vite-plugin-inspect";
4+
import solidPlugin from "vite-plugin-solid";
45

56
export default defineConfig({
67
plugins: [
78
solidPlugin(),
89
solidStyled.vite({
9-
prefix: 'example',
10+
prefix: "example",
1011
filter: {
11-
include: 'src/**/*.tsx',
12-
exclude: 'node_modules/**/*.{ts,js}',
12+
include: "src/**/*.tsx",
13+
exclude: "node_modules/**/*.{ts,js}",
1314
},
1415
}),
16+
inspect(),
1517
],
1618
});

lerna.json

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,12 @@
11
{
2-
"npmClient": "pnpm",
3-
"packages": [
4-
"packages/*",
5-
"examples/*"
6-
],
2+
"npmClient": "npm",
3+
"packages": ["packages/*", "examples/*"],
74
"command": {
85
"version": {
96
"exact": true
107
},
118
"publish": {
12-
"allowBranch": [
13-
"main"
14-
],
9+
"allowBranch": ["main"],
1510
"registry": "https://registry.npmjs.org/"
1611
}
1712
},

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
"private": true,
44
"workspaces": ["packages/*", "examples/*"],
55
"devDependencies": {
6-
"@biomejs/biome": "^1.5.1",
7-
"lerna": "^8.0.0",
8-
"typescript": "^5.3.3"
6+
"@biomejs/biome": "^1.9.4",
7+
"lerna": "^8.1.9",
8+
"typescript": "^5.7.3"
99
}
1010
}

0 commit comments

Comments
 (0)