four-stroke 0.2.0 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/dependabot.yml +2 -0
- package/bin/lint.mjs +1 -1
- package/oxlint.config.mjs +13 -0
- package/package.json +13 -13
- package/src/cmd.mjs +0 -1
package/.github/dependabot.yml
CHANGED
package/bin/lint.mjs
CHANGED
package/oxlint.config.mjs
CHANGED
|
@@ -64,6 +64,16 @@ export default defineConfig({
|
|
|
64
64
|
"unicorn/number-literal-case": "off",
|
|
65
65
|
"eslint/one-var": "off",
|
|
66
66
|
"vitest/prefer-called-once": "off",
|
|
67
|
+
// Judge a wrapped comment by its first line, so the second can carry on the sentence.
|
|
68
|
+
"capitalized-comments": ["warn", "always", { ignoreConsecutiveComments: true }],
|
|
69
|
+
// Assertion helpers are `assert` or named `expect…` (`expectRedirect`), so it
|
|
70
|
+
// can see them; anything left over really asserts nothing.
|
|
71
|
+
"vitest/expect-expect": ["warn", { assertFunctionNames: ["expect", "expect*", "assert"] }],
|
|
72
|
+
// Route tests are titled by the request they make: "GET /thing", not "gET /thing".
|
|
73
|
+
"vitest/prefer-lowercase-title": [
|
|
74
|
+
"warn",
|
|
75
|
+
{ allowedPrefixes: ["GET", "POST", "PUT", "DELETE", "PATCH", "JWT"] },
|
|
76
|
+
],
|
|
67
77
|
"react/react-in-jsx-scope": "off",
|
|
68
78
|
"react/jsx-max-depth": "off",
|
|
69
79
|
"react/function-component-definition": [
|
|
@@ -79,6 +89,9 @@ export default defineConfig({
|
|
|
79
89
|
files: ["*.test.ts", "*.spec.ts"],
|
|
80
90
|
rules: {
|
|
81
91
|
"@typescript-eslint/no-explicit-any": "off",
|
|
92
|
+
// A helper belongs next to the only test that uses it; hoisting it to module
|
|
93
|
+
// scope saves nothing in a test run and puts it out of sight.
|
|
94
|
+
"unicorn/consistent-function-scoping": "off",
|
|
82
95
|
},
|
|
83
96
|
},
|
|
84
97
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "four-stroke",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "Simple Cloudflare Worker SSR SPA framework",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -19,26 +19,26 @@
|
|
|
19
19
|
"type": "module",
|
|
20
20
|
"main": "src/fake.ts",
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@types/react": "^19.
|
|
23
|
-
"openapi-typescript": "^7.13.0"
|
|
22
|
+
"@types/react": "^19.3.0",
|
|
23
|
+
"openapi-typescript": "^7.13.0",
|
|
24
|
+
"typescript": "^7.0.2"
|
|
24
25
|
},
|
|
25
26
|
"devDependencies": {
|
|
26
27
|
"@cloudflare/vitest-pool-workers": "^0.22.0",
|
|
27
|
-
"knip": "^6.
|
|
28
|
-
"oxfmt": "^0.
|
|
29
|
-
"oxlint": "^1.
|
|
28
|
+
"knip": "^6.35.1",
|
|
29
|
+
"oxfmt": "^0.70.0",
|
|
30
|
+
"oxlint": "^1.82.0",
|
|
30
31
|
"oxlint-tsgolint": "^7.0.2001",
|
|
31
|
-
"typescript": "^7.0.2",
|
|
32
32
|
"vitest": "^4.1.11"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
|
-
"@sentry/cli": "
|
|
36
|
-
"knip": "
|
|
37
|
-
"oxfmt": "
|
|
38
|
-
"oxlint": "
|
|
39
|
-
"oxlint-tsgolint": "
|
|
35
|
+
"@sentry/cli": ">=3.6.0",
|
|
36
|
+
"knip": ">=6.26.0",
|
|
37
|
+
"oxfmt": ">=0.59.0",
|
|
38
|
+
"oxlint": ">=1.74.0",
|
|
39
|
+
"oxlint-tsgolint": ">=0.24.0",
|
|
40
40
|
"typescript": "^7.0.2",
|
|
41
|
-
"vitest": "
|
|
41
|
+
"vitest": "^4",
|
|
42
42
|
"wrangler": ">=3"
|
|
43
43
|
},
|
|
44
44
|
"engines": {
|