Skip to content

Commit b2ad0ca

Browse files
committed
update tap, tshy; cleanup build and ci stuff
1 parent 5d6c8d5 commit b2ad0ca

File tree

9 files changed

+2030
-1684
lines changed

9 files changed

+2030
-1684
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: CI
33
on:
44
push:
55
branches: ["main"]
6-
pull_request_target:
6+
pull_request:
77
paths:
88
- 'src/**'
99
- 'test/**'

.oxlintrc.json

Lines changed: 198 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,198 @@
1+
{
2+
"$schema": "./node_modules/oxlint/configuration_schema.json",
3+
"categories": {},
4+
"options": {},
5+
"rules": {
6+
"no-empty-file": "error",
7+
"no-unsafe-finally": "off",
8+
"no-param-reassign": "off",
9+
"no-dupe-keys": "error",
10+
"no-new-array": "error",
11+
"no-constant-condition": "error",
12+
"prefer-template": "off",
13+
"no-unneeded-ternary": "error",
14+
"unicorn/prefer-ternary": "error",
15+
"unicorn/prefer-logical-operator-over-ternary": "error",
16+
"no-unused-vars": [
17+
"error",
18+
{
19+
"argsIgnorePattern": "^_",
20+
"varsIgnorePattern": "^_",
21+
"caughtErrorsIgnorePattern": "^_"
22+
}
23+
],
24+
"no-console": "error",
25+
"no-alert": "error",
26+
"complexity": [
27+
"error",
28+
{
29+
"max": 500
30+
}
31+
],
32+
"no-unused-expressions": [
33+
"error",
34+
{
35+
"allowShortCircuit": true
36+
}
37+
],
38+
"guard-for-in": "error",
39+
"array-callback-return": [
40+
"error",
41+
{
42+
"allowImplicit": true
43+
}
44+
],
45+
"import/namespace": "off",
46+
"no-control-regex": "off",
47+
"jsdoc/check-tag-names": "off",
48+
"jsdoc/require-yields": "off",
49+
"no-useless-rename": "off",
50+
"no-constant-binary-expression": "off",
51+
"vitest/hoisted-apis-on-top": "off",
52+
"vitest/no-conditional-tests": "off",
53+
"no-unsafe-optional-chaining": "off",
54+
"no-eval": "off",
55+
"no-import-assign": "off",
56+
"typescript/no-duplicate-type-constituents": "off"
57+
},
58+
"overrides": [
59+
{
60+
"files": ["**/*.ts", "**/*.tsx", "**/*.d.ts"],
61+
"rules": {
62+
"typescript/ban-ts-comment": "error",
63+
"typescript/consistent-type-imports": [
64+
"error",
65+
{
66+
"disallowTypeAnnotations": false
67+
}
68+
],
69+
"typescript/no-unnecessary-type-assertion": "error",
70+
"typescript/prefer-for-of": "error",
71+
"typescript/no-floating-promises": [
72+
"error",
73+
{
74+
"ignoreVoid": true
75+
}
76+
],
77+
"typescript/no-dynamic-delete": "off",
78+
"typescript/no-unsafe-member-access": "error",
79+
"typescript/unbound-method": "error",
80+
"typescript/no-explicit-any": "error",
81+
"typescript/no-empty-function": "off",
82+
"typescript/prefer-optional-chain": ["error"],
83+
"typescript/no-redundant-type-constituents": "off",
84+
"typescript/restrict-template-expressions": "off",
85+
"typescript/await-thenable": "error",
86+
"typescript/no-base-to-string": "error"
87+
}
88+
},
89+
{
90+
"files": ["**/*.js", "**/*.mjs", "**/*.cjs"],
91+
"rules": {
92+
"typescript/ban-ts-comment": "off",
93+
"typescript/consistent-type-imports": "off",
94+
"typescript/prefer-optional-chain": "off",
95+
"typescript/no-unnecessary-type-assertion": "off",
96+
"typescript/prefer-for-of": "off",
97+
"typescript/no-floating-promises": "off",
98+
"typescript/no-dynamic-delete": "off",
99+
"typescript/no-unsafe-member-access": "off",
100+
"typescript/unbound-method": "off",
101+
"typescript/no-explicit-any": "off"
102+
}
103+
},
104+
{
105+
"files": [
106+
"**/*.test.ts",
107+
"**/*.test.mts",
108+
"**/*.test.cts",
109+
"**/*.test.tsx",
110+
"**/*.test.js",
111+
"**/*.test.cjs",
112+
"**/*.test.mjs",
113+
"**/*.test.jsx",
114+
"**/test/**",
115+
"**/tests/**"
116+
],
117+
"rules": {
118+
"no-empty-file": "error",
119+
"guard-for-in": "off",
120+
"no-param-reassign": "off",
121+
"no-unused-vars": "off",
122+
"typescript/ban-ts-comment": "off",
123+
"typescript/explicit-function-return-type": "off",
124+
"no-unused-expressions": "off",
125+
"typescript/no-unused-expressions": "off",
126+
"typescript/no-unnecessary-type-assertion": "off",
127+
"typescript/no-unsafe-member-access": "off",
128+
"typescript/no-explicit-any": "off",
129+
"typescript/no-non-null-assertion": "off",
130+
"typescript/no-floating-promises": "off",
131+
"typescript/unbound-method": "off",
132+
"max-lines": "off",
133+
"complexity": "off",
134+
"typescript/prefer-optional-chain": "off",
135+
"typescript/no-misused-spread": "off",
136+
"typescript/require-array-sort-compare": "off",
137+
"typescript/no-base-to-string": "off",
138+
"typescript/await-thenable": "off"
139+
}
140+
},
141+
{
142+
"files": [
143+
"*.config.js",
144+
"*.config.mjs",
145+
"*.config.ts",
146+
"vite.config.ts",
147+
".size-limit.js",
148+
"**/test/**",
149+
"**/*.test.ts",
150+
"**/*.test.mts",
151+
"**/*.test.cts",
152+
"**/*.test.mjs",
153+
"**/*.test.cjs"
154+
],
155+
"rules": {
156+
"no-console": "off",
157+
"max-lines": "off"
158+
}
159+
}
160+
],
161+
"settings": {
162+
"jsx-a11y": {
163+
"components": {},
164+
"attributes": {}
165+
},
166+
"next": {
167+
"rootDir": []
168+
},
169+
"react": {
170+
"formComponents": [],
171+
"linkComponents": [],
172+
"componentWrapperFunctions": []
173+
},
174+
"jsdoc": {
175+
"ignorePrivate": false,
176+
"ignoreInternal": false,
177+
"ignoreReplacesDocs": true,
178+
"overrideReplacesDocs": true,
179+
"augmentsExtendsReplacesDocs": false,
180+
"implementsReplacesDocs": false,
181+
"exemptDestructuredRootsFromChecks": false,
182+
"tagNamePreference": {}
183+
},
184+
"vitest": {
185+
"typecheck": false
186+
}
187+
},
188+
"env": {
189+
"builtin": true
190+
},
191+
"globals": {},
192+
"ignorePatterns": [
193+
"**/fixtures/**",
194+
"**/.tap/**",
195+
"**/docs/**",
196+
"**/tap-snapshots/**"
197+
]
198+
}

.taprc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# vim: set filetype=yaml :
22
node-arg:
3-
- "--expose-gc"
3+
- --expose-gc
44
plugin:
55
- "@tapjs/clock"

.tshy/commonjs.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
],
99
"exclude": [
1010
"../src/**/*.mts",
11-
"../src/package.json"
11+
"../src/package.json",
12+
"../src/diagnostics-channel-esm.mts"
1213
],
1314
"compilerOptions": {
1415
"outDir": "../.tshy-build/commonjs"

0 commit comments

Comments
 (0)