Skip to content

Commit 105a325

Browse files
committed
refactor: minor improvements
1 parent 6be4768 commit 105a325

File tree

19 files changed

+320
-206
lines changed

19 files changed

+320
-206
lines changed

packages/core/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
"@typescript-eslint/type-utils": "^8.19.1",
5050
"@typescript-eslint/types": "^8.19.1",
5151
"@typescript-eslint/utils": "^8.19.1",
52+
"birecord": "^0.1.1",
5253
"ts-pattern": "^5.6.0"
5354
},
5455
"devDependencies": {

packages/core/src/component/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ export * from "./component-collector-legacy";
55
export * from "./component-flag";
66
export * from "./component-id";
77
export type * from "./component-kind";
8+
export * from "./component-lifecycle";
89
export type * from "./component-method-kind";
910
export * from "./component-name";
1011
export * from "./component-render-method";

packages/core/src/index.ts

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ export * from "./component";
22
export * from "./effect";
33
export * from "./element";
44
export * from "./hook";
5-
export * from "./lifecycle";
65
export * from "./phase";
76
export * from "./render-prop";
87
export type * from "./semantic-entry";

packages/core/src/lifecycle/index.ts

-1
This file was deleted.

packages/core/src/phase/constants.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
import { birecord } from "@eslint-react/eff";
1+
import birecord from "birecord";
22

33
export const ERPhaseRelevance = birecord({
44
mount: "unmount",
55
setup: "cleanup",
66
});
7+

packages/plugins/eslint-plugin/src/configs/disable-debug.ts

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { entries, fromEntries } from "../utils";
2-
32
import { rules as debugRules } from "./debug";
43

54
export const name = "@eslint-react/disable-debug";

packages/plugins/eslint-plugin/src/configs/disable-web-api.ts

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { entries, fromEntries } from "../utils";
2-
32
import { rules as webApiRules } from "./web-api";
43

54
export const name = "@eslint-react/disable-web-api";

packages/plugins/eslint-plugin/src/configs/off.ts

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { entries, fromEntries } from "../utils";
2-
32
import { rules as allRules } from "./all";
43
import { rules as disableTypeCheckedRules } from "./disable-type-checked";
54

packages/utilities/eff/docs/README.md

+3-5
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@
44

55
# @eslint-react/eff
66

7-
## Classes
8-
9-
- [BiRecord](classes/BiRecord.md)
10-
117
## Type Aliases
128

139
- [\_](type-aliases.md)
@@ -20,12 +16,13 @@
2016

2117
## Functions
2218

23-
- [birecord](functions/birecord.md)
19+
- [concatenate](functions/concatenate.md)
2420
- [dual](functions/dual.md)
2521
- [flip](functions/flip.md)
2622
- [flow](functions/flow.md)
2723
- [getOrUpdate](functions/getOrUpdate.md)
2824
- [identity](functions/identity.md)
25+
- [intersperse](functions/intersperse.md)
2926
- [isArray](functions/isArray.md)
3027
- [isObject](functions/isObject.md)
3128
- [isTruthy](functions/isTruthy.md)
@@ -36,3 +33,4 @@
3633
- [returnTrue](functions/returnTrue.md)
3734
- [returnVoid](functions/returnVoid.md)
3835
- [tryAddToSet](functions/tryAddToSet.md)
36+
- [zipWith](functions/zipWith.md)

packages/utilities/eff/docs/classes/BiRecord.md

-79
This file was deleted.

packages/utilities/eff/docs/functions/birecord.md

-23
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,183 @@
1+
[**@eslint-react/eff**](../README.md)
2+
3+
***
4+
5+
[@eslint-react/eff](../README.md) / concatenate
6+
7+
# Function: concatenate()
8+
9+
## Call Signature
10+
11+
> **concatenate**\<`T`\>(`array1`, `array2`): `T`[]
12+
13+
### Type Parameters
14+
15+
**T**
16+
17+
### Parameters
18+
19+
#### array1
20+
21+
`T`[]
22+
23+
#### array2
24+
25+
`T`[]
26+
27+
### Returns
28+
29+
`T`[]
30+
31+
## Call Signature
32+
33+
> **concatenate**\<`T`\>(`array1`, `array2`): readonly `T`[]
34+
35+
### Type Parameters
36+
37+
**T**
38+
39+
### Parameters
40+
41+
#### array1
42+
43+
readonly `T`[]
44+
45+
#### array2
46+
47+
readonly `T`[]
48+
49+
### Returns
50+
51+
readonly `T`[]
52+
53+
## Call Signature
54+
55+
> **concatenate**\<`T`\>(`array1`, `array2`): `T`[]
56+
57+
### Type Parameters
58+
59+
**T**
60+
61+
### Parameters
62+
63+
#### array1
64+
65+
`T`[]
66+
67+
#### array2
68+
69+
`undefined` | `T`[]
70+
71+
### Returns
72+
73+
`T`[]
74+
75+
## Call Signature
76+
77+
> **concatenate**\<`T`\>(`array1`, `array2`): `T`[]
78+
79+
### Type Parameters
80+
81+
**T**
82+
83+
### Parameters
84+
85+
#### array1
86+
87+
`undefined` | `T`[]
88+
89+
#### array2
90+
91+
`T`[]
92+
93+
### Returns
94+
95+
`T`[]
96+
97+
## Call Signature
98+
99+
> **concatenate**\<`T`\>(`array1`, `array2`): readonly `T`[]
100+
101+
### Type Parameters
102+
103+
**T**
104+
105+
### Parameters
106+
107+
#### array1
108+
109+
readonly `T`[]
110+
111+
#### array2
112+
113+
`undefined` | readonly `T`[]
114+
115+
### Returns
116+
117+
readonly `T`[]
118+
119+
## Call Signature
120+
121+
> **concatenate**\<`T`\>(`array1`, `array2`): readonly `T`[]
122+
123+
### Type Parameters
124+
125+
**T**
126+
127+
### Parameters
128+
129+
#### array1
130+
131+
`undefined` | readonly `T`[]
132+
133+
#### array2
134+
135+
readonly `T`[]
136+
137+
### Returns
138+
139+
readonly `T`[]
140+
141+
## Call Signature
142+
143+
> **concatenate**\<`T`\>(`array1`, `array2`): `T`[] \| `undefined`
144+
145+
### Type Parameters
146+
147+
**T**
148+
149+
### Parameters
150+
151+
#### array1
152+
153+
`undefined` | `T`[]
154+
155+
#### array2
156+
157+
`undefined` | `T`[]
158+
159+
### Returns
160+
161+
`T`[] \| `undefined`
162+
163+
## Call Signature
164+
165+
> **concatenate**\<`T`\>(`array1`, `array2`): readonly `T`[] \| `undefined`
166+
167+
### Type Parameters
168+
169+
**T**
170+
171+
### Parameters
172+
173+
#### array1
174+
175+
`undefined` | readonly `T`[]
176+
177+
#### array2
178+
179+
`undefined` | readonly `T`[]
180+
181+
### Returns
182+
183+
readonly `T`[] \| `undefined`

0 commit comments

Comments
 (0)