Skip to content

Commit f573ef9

Browse files
committed
release: 2.0.0-next.120
2 parents f23261b + a6b9204 commit f573ef9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+607
-185
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.0.0-next.109
1+
2.0.0-next.120

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@eslint-react/monorepo",
3-
"version": "2.0.0-next.109",
3+
"version": "2.0.0-next.120",
44
"private": true,
55
"description": "Monorepo for eslint-plugin-react-[x, dom, web-api, naming-convention].",
66
"keywords": [
@@ -90,7 +90,7 @@
9090
"type-fest": "^4.41.0",
9191
"typedoc": "^0.28.9",
9292
"typedoc-plugin-markdown": "^4.8.0",
93-
"typedoc-plugin-mdn-links": "^5.0.6",
93+
"typedoc-plugin-mdn-links": "^5.0.7",
9494
"typescript": "^5.9.2",
9595
"typescript-eslint": "^8.38.0",
9696
"vitest": "^3.2.4"

packages/core/docs/README.md

Lines changed: 24 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,18 @@
44

55
# @eslint-react/core
66

7-
## Namespaces
7+
## Other
88

99
- [isReactAPI](@eslint-react/namespaces/isReactAPI/README.md)
1010
- [isReactAPICall](@eslint-react/namespaces/isReactAPICall/README.md)
1111
- [useComponentCollector](@eslint-react/namespaces/useComponentCollector/README.md)
1212
- [useComponentCollectorLegacy](@eslint-react/namespaces/useComponentCollectorLegacy/README.md)
1313
- [useHookCollector](@eslint-react/namespaces/useHookCollector/README.md)
14-
15-
## Interfaces
16-
1714
- [ClassComponent](interfaces/ClassComponent.md)
1815
- [FunctionComponent](interfaces/FunctionComponent.md)
1916
- [Hook](interfaces/Hook.md)
2017
- [SemanticEntry](interfaces/SemanticEntry.md)
2118
- [SemanticNode](interfaces/SemanticNode.md)
22-
23-
## Type Aliases
24-
2519
- [Component](type-aliases/Component.md)
2620
- [ComponentDetectionHint](type-aliases/ComponentDetectionHint.md)
2721
- [ComponentEffectPhaseKind](type-aliases/ComponentEffectPhaseKind.md)
@@ -32,9 +26,7 @@
3226
- [ComponentStateKind](type-aliases/ComponentStateKind.md)
3327
- [EffectKind](type-aliases/EffectKind.md)
3428
- [JSXDetectionHint](type-aliases/JSXDetectionHint.md)
35-
36-
## Variables
37-
29+
- [TypeVariant](type-aliases/TypeVariant.md)
3830
- [ComponentDetectionHint](variables/ComponentDetectionHint.md)
3931
- [ComponentFlag](variables/ComponentFlag.md)
4032
- [ComponentPhaseRelevance](variables/ComponentPhaseRelevance.md)
@@ -88,9 +80,6 @@
8880
- [isUseTransitionCall](variables/isUseTransitionCall.md)
8981
- [JSXDetectionHint](variables/JSXDetectionHint.md)
9082
- [REACT\_BUILTIN\_HOOK\_NAMES](variables/REACT_BUILTIN_HOOK_NAMES.md)
91-
92-
## Functions
93-
9483
- [findParentAttribute](functions/findParentAttribute.md)
9584
- [getAttribute](functions/getAttribute.md)
9685
- [getAttributeName](functions/getAttributeName.md)
@@ -99,11 +88,15 @@
9988
- [getComponentNameFromId](functions/getComponentNameFromId.md)
10089
- [getElementType](functions/getElementType.md)
10190
- [getFunctionComponentId](functions/getFunctionComponentId.md)
91+
- [getTypeVariants](functions/getTypeVariants.md)
10292
- [hasAnyAttribute](functions/hasAnyAttribute.md)
10393
- [hasAttribute](functions/hasAttribute.md)
10494
- [hasEveryAttribute](functions/hasEveryAttribute.md)
10595
- [hasNoneOrLooseComponentName](functions/hasNoneOrLooseComponentName.md)
96+
- [isAnyType](functions/isAnyType.md)
10697
- [isAssignmentToThisState](functions/isAssignmentToThisState.md)
98+
- [isBigIntType](functions/isBigIntType.md)
99+
- [isBooleanType](functions/isBooleanType.md)
107100
- [isChildrenOfCreateElement](functions/isChildrenOfCreateElement.md)
108101
- [isClassComponent](functions/isClassComponent.md)
109102
- [isComponentDidCatch](functions/isComponentDidCatch.md)
@@ -118,6 +111,10 @@
118111
- [isComponentWrapperCall](functions/isComponentWrapperCall.md)
119112
- [isComponentWrapperCallLoose](functions/isComponentWrapperCallLoose.md)
120113
- [isDeclaredInRenderPropLoose](functions/isDeclaredInRenderPropLoose.md)
114+
- [isEnumType](functions/isEnumType.md)
115+
- [isFalsyBigIntType](functions/isFalsyBigIntType.md)
116+
- [isFalsyNumberType](functions/isFalsyNumberType.md)
117+
- [isFalsyStringType](functions/isFalsyStringType.md)
121118
- [isFragmentElement](functions/isFragmentElement.md)
122119
- [isFunctionOfRender](functions/isFunctionOfRender.md)
123120
- [isFunctionOfRenderMethod](functions/isFunctionOfRenderMethod.md)
@@ -132,6 +129,10 @@
132129
- [isJsxLike](functions/isJsxLike.md)
133130
- [isJsxText](functions/isJsxText.md)
134131
- [isKeyedElement](functions/isKeyedElement.md)
132+
- [isNeverType](functions/isNeverType.md)
133+
- [isNullishType](functions/isNullishType.md)
134+
- [isNumberType](functions/isNumberType.md)
135+
- [isObjectType](functions/isObjectType.md)
135136
- [isPureComponent](functions/isPureComponent.md)
136137
- [isReactAPI](functions/isReactAPI.md)
137138
- [isReactAPICall](functions/isReactAPICall.md)
@@ -147,7 +148,12 @@
147148
- [isRenderMethodLike](functions/isRenderMethodLike.md)
148149
- [isRenderPropLoose](functions/isRenderPropLoose.md)
149150
- [isShouldComponentUpdate](functions/isShouldComponentUpdate.md)
151+
- [isStringType](functions/isStringType.md)
150152
- [isThisSetState](functions/isThisSetState.md)
153+
- [isTruthyBigIntType](functions/isTruthyBigIntType.md)
154+
- [isTruthyNumberType](functions/isTruthyNumberType.md)
155+
- [isTruthyStringType](functions/isTruthyStringType.md)
156+
- [isUnknownType](functions/isUnknownType.md)
151157
- [isUnsafeComponentWillMount](functions/isUnsafeComponentWillMount.md)
152158
- [isUnsafeComponentWillReceiveProps](functions/isUnsafeComponentWillReceiveProps.md)
153159
- [isUnsafeComponentWillUpdate](functions/isUnsafeComponentWillUpdate.md)
@@ -157,3 +163,8 @@
157163
- [useComponentCollector](functions/useComponentCollector.md)
158164
- [useComponentCollectorLegacy](functions/useComponentCollectorLegacy.md)
159165
- [useHookCollector](functions/useHookCollector.md)
166+
167+
## Types - Type Guards
168+
169+
- [isFalseLiteralType](functions/isFalseLiteralType.md)
170+
- [isTrueLiteralType](functions/isTrueLiteralType.md)
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
[**@eslint-react/core**](../README.md)
2+
3+
***
4+
5+
[@eslint-react/core](../README.md) / getTypeVariants
6+
7+
# Function: getTypeVariants()
8+
9+
> **getTypeVariants**(`types`): [`Set`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Set)\<[`TypeVariant`](../type-aliases/TypeVariant.md)\>
10+
11+
Ported from https://github.com/typescript-eslint/typescript-eslint/blob/eb736bbfc22554694400e6a4f97051d845d32e0b/packages/eslint-plugin/src/rules/strict-boolean-expressions.ts#L826 with some enhancements
12+
Get the variants of an array of types.
13+
14+
## Parameters
15+
16+
### types
17+
18+
`Type`[]
19+
20+
The types to get the variants of
21+
22+
## Returns
23+
24+
[`Set`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Set)\<[`TypeVariant`](../type-aliases/TypeVariant.md)\>
25+
26+
The variants of the types
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
[**@eslint-react/core**](../README.md)
2+
3+
***
4+
5+
[@eslint-react/core](../README.md) / isAnyType
6+
7+
# Function: isAnyType()
8+
9+
> **isAnyType**(`type`): `boolean`
10+
11+
## Parameters
12+
13+
### type
14+
15+
`Type`
16+
17+
## Returns
18+
19+
`boolean`
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
[**@eslint-react/core**](../README.md)
2+
3+
***
4+
5+
[@eslint-react/core](../README.md) / isBigIntType
6+
7+
# Function: isBigIntType()
8+
9+
> **isBigIntType**(`type`): `boolean`
10+
11+
## Parameters
12+
13+
### type
14+
15+
`Type`
16+
17+
## Returns
18+
19+
`boolean`
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
[**@eslint-react/core**](../README.md)
2+
3+
***
4+
5+
[@eslint-react/core](../README.md) / isBooleanType
6+
7+
# Function: isBooleanType()
8+
9+
> **isBooleanType**(`type`): `boolean`
10+
11+
## Parameters
12+
13+
### type
14+
15+
`Type`
16+
17+
## Returns
18+
19+
`boolean`
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
[**@eslint-react/core**](../README.md)
2+
3+
***
4+
5+
[@eslint-react/core](../README.md) / isEnumType
6+
7+
# Function: isEnumType()
8+
9+
> **isEnumType**(`type`): `boolean`
10+
11+
## Parameters
12+
13+
### type
14+
15+
`Type`
16+
17+
## Returns
18+
19+
`boolean`
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
[**@eslint-react/core**](../README.md)
2+
3+
***
4+
5+
[@eslint-react/core](../README.md) / isFalseLiteralType
6+
7+
# Function: isFalseLiteralType()
8+
9+
> **isFalseLiteralType**(`type`): `type is FalseLiteralType`
10+
11+
Determines whether the given type is a boolean literal type for "false".
12+
13+
## Parameters
14+
15+
### type
16+
17+
`Type`
18+
19+
## Returns
20+
21+
`type is FalseLiteralType`
22+
23+
## Example
24+
25+
```ts
26+
declare const type: ts.Type;
27+
28+
if (isFalseLiteralType(type)) {
29+
// ...
30+
}
31+
```
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
[**@eslint-react/core**](../README.md)
2+
3+
***
4+
5+
[@eslint-react/core](../README.md) / isFalsyBigIntType
6+
7+
# Function: isFalsyBigIntType()
8+
9+
> **isFalsyBigIntType**(`type`): `type is LiteralType & { aliasSymbol?: Symbol; aliasTypeArguments?: readonly Type[]; flags: TypeFlags; freshType: FreshableType; pattern?: DestructuringPattern; regularType: FreshableType; symbol: Symbol; value: { base10Value: "0"; negative: boolean }; getApparentProperties: any; getBaseTypes: any; getCallSignatures: any; getConstraint: any; getConstructSignatures: any; getDefault: any; getFlags: any; getNonNullableType: any; getNumberIndexType: any; getProperties: any; getProperty: any; getStringIndexType: any; getSymbol: any; isClass: any; isClassOrInterface: any; isIndexType: any; isIntersection: any; isLiteral: any; isNumberLiteral: any; isStringLiteral: any; isTypeParameter: any; isUnion: any; isUnionOrIntersection: any }`
10+
11+
## Parameters
12+
13+
### type
14+
15+
`Type`
16+
17+
## Returns
18+
19+
`type is LiteralType & { aliasSymbol?: Symbol; aliasTypeArguments?: readonly Type[]; flags: TypeFlags; freshType: FreshableType; pattern?: DestructuringPattern; regularType: FreshableType; symbol: Symbol; value: { base10Value: "0"; negative: boolean }; getApparentProperties: any; getBaseTypes: any; getCallSignatures: any; getConstraint: any; getConstructSignatures: any; getDefault: any; getFlags: any; getNonNullableType: any; getNumberIndexType: any; getProperties: any; getProperty: any; getStringIndexType: any; getSymbol: any; isClass: any; isClassOrInterface: any; isIndexType: any; isIntersection: any; isLiteral: any; isNumberLiteral: any; isStringLiteral: any; isTypeParameter: any; isUnion: any; isUnionOrIntersection: any }`

0 commit comments

Comments
 (0)