Skip to content

Commit

Permalink
refactor: minor improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
Rel1cx committed Jan 14, 2025
1 parent 6be4768 commit 105a325
Show file tree
Hide file tree
Showing 19 changed files with 320 additions and 206 deletions.
1 change: 1 addition & 0 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"@typescript-eslint/type-utils": "^8.19.1",
"@typescript-eslint/types": "^8.19.1",
"@typescript-eslint/utils": "^8.19.1",
"birecord": "^0.1.1",
"ts-pattern": "^5.6.0"
},
"devDependencies": {
Expand Down
File renamed without changes.
1 change: 1 addition & 0 deletions packages/core/src/component/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export * from "./component-collector-legacy";
export * from "./component-flag";
export * from "./component-id";
export type * from "./component-kind";
export * from "./component-lifecycle";
export type * from "./component-method-kind";
export * from "./component-name";
export * from "./component-render-method";
Expand Down
1 change: 0 additions & 1 deletion packages/core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ export * from "./component";
export * from "./effect";
export * from "./element";
export * from "./hook";
export * from "./lifecycle";
export * from "./phase";
export * from "./render-prop";
export type * from "./semantic-entry";
Expand Down
1 change: 0 additions & 1 deletion packages/core/src/lifecycle/index.ts

This file was deleted.

3 changes: 2 additions & 1 deletion packages/core/src/phase/constants.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { birecord } from "@eslint-react/eff";
import birecord from "birecord";

export const ERPhaseRelevance = birecord({
mount: "unmount",
setup: "cleanup",
});

Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { entries, fromEntries } from "../utils";

import { rules as debugRules } from "./debug";

export const name = "@eslint-react/disable-debug";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { entries, fromEntries } from "../utils";

import { rules as webApiRules } from "./web-api";

export const name = "@eslint-react/disable-web-api";
Expand Down
1 change: 0 additions & 1 deletion packages/plugins/eslint-plugin/src/configs/off.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { entries, fromEntries } from "../utils";

import { rules as allRules } from "./all";
import { rules as disableTypeCheckedRules } from "./disable-type-checked";

Expand Down
8 changes: 3 additions & 5 deletions packages/utilities/eff/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@

# @eslint-react/eff

## Classes

- [BiRecord](classes/BiRecord.md)

## Type Aliases

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

## Functions

- [birecord](functions/birecord.md)
- [concatenate](functions/concatenate.md)
- [dual](functions/dual.md)
- [flip](functions/flip.md)
- [flow](functions/flow.md)
- [getOrUpdate](functions/getOrUpdate.md)
- [identity](functions/identity.md)
- [intersperse](functions/intersperse.md)
- [isArray](functions/isArray.md)
- [isObject](functions/isObject.md)
- [isTruthy](functions/isTruthy.md)
Expand All @@ -36,3 +33,4 @@
- [returnTrue](functions/returnTrue.md)
- [returnVoid](functions/returnVoid.md)
- [tryAddToSet](functions/tryAddToSet.md)
- [zipWith](functions/zipWith.md)
79 changes: 0 additions & 79 deletions packages/utilities/eff/docs/classes/BiRecord.md

This file was deleted.

23 changes: 0 additions & 23 deletions packages/utilities/eff/docs/functions/birecord.md

This file was deleted.

183 changes: 183 additions & 0 deletions packages/utilities/eff/docs/functions/concatenate.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,183 @@
[**@eslint-react/eff**](../README.md)

***

[@eslint-react/eff](../README.md) / concatenate

# Function: concatenate()

## Call Signature

> **concatenate**\<`T`\>(`array1`, `array2`): `T`[]
### Type Parameters

**T**

### Parameters

#### array1

`T`[]

#### array2

`T`[]

### Returns

`T`[]

## Call Signature

> **concatenate**\<`T`\>(`array1`, `array2`): readonly `T`[]
### Type Parameters

**T**

### Parameters

#### array1

readonly `T`[]

#### array2

readonly `T`[]

### Returns

readonly `T`[]

## Call Signature

> **concatenate**\<`T`\>(`array1`, `array2`): `T`[]
### Type Parameters

**T**

### Parameters

#### array1

`T`[]

#### array2

`undefined` | `T`[]

### Returns

`T`[]

## Call Signature

> **concatenate**\<`T`\>(`array1`, `array2`): `T`[]
### Type Parameters

**T**

### Parameters

#### array1

`undefined` | `T`[]

#### array2

`T`[]

### Returns

`T`[]

## Call Signature

> **concatenate**\<`T`\>(`array1`, `array2`): readonly `T`[]
### Type Parameters

**T**

### Parameters

#### array1

readonly `T`[]

#### array2

`undefined` | readonly `T`[]

### Returns

readonly `T`[]

## Call Signature

> **concatenate**\<`T`\>(`array1`, `array2`): readonly `T`[]
### Type Parameters

**T**

### Parameters

#### array1

`undefined` | readonly `T`[]

#### array2

readonly `T`[]

### Returns

readonly `T`[]

## Call Signature

> **concatenate**\<`T`\>(`array1`, `array2`): `T`[] \| `undefined`
### Type Parameters

**T**

### Parameters

#### array1

`undefined` | `T`[]

#### array2

`undefined` | `T`[]

### Returns

`T`[] \| `undefined`

## Call Signature

> **concatenate**\<`T`\>(`array1`, `array2`): readonly `T`[] \| `undefined`
### Type Parameters

**T**

### Parameters

#### array1

`undefined` | readonly `T`[]

#### array2

`undefined` | readonly `T`[]

### Returns

readonly `T`[] \| `undefined`
Loading

0 comments on commit 105a325

Please sign in to comment.