Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/core/src/component/component-collector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import type { ComponentDetectionHint } from "./component-detection-hint";
import type { FunctionComponent } from "./component-semantic-node";
import * as AST from "@eslint-react/ast";
import { _ } from "@eslint-react/eff";
import { type RuleContext, SEL } from "@eslint-react/kit";
import { type RuleContext, Selector as SEL } from "@eslint-react/kit";
import { getId } from "@eslint-react/shared";
import { AST_NODE_TYPES as T } from "@typescript-eslint/types";

Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/component/component-name.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type * as AST from "@eslint-react/ast";
import type { RuleContext } from "@eslint-react/kit";
import type { TSESTree } from "@typescript-eslint/types";
import { _ } from "@eslint-react/eff";
import { RE } from "@eslint-react/kit";
import { RegExp as RE } from "@eslint-react/kit";

import { getFunctionComponentId } from "./component-id";

Expand Down
4 changes: 2 additions & 2 deletions packages/plugins/eslint-plugin-react-debug/src/rules/jsx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { RuleListener } from "@typescript-eslint/utils/ts-eslint";
import type { CamelCase } from "string-ts";
import * as ER from "@eslint-react/core";
import { flow } from "@eslint-react/eff";
import { JsxConfig, Report, type RuleContext, type RuleFeature } from "@eslint-react/kit";
import { JsxConfig, Reporter as RPT, type RuleContext, type RuleFeature } from "@eslint-react/kit";
import { AST_NODE_TYPES as T, type TSESTree } from "@typescript-eslint/types";
import { match, P } from "ts-pattern";
import { JsxEmit } from "typescript";
Expand Down Expand Up @@ -71,6 +71,6 @@ export function create(context: RuleContext<MessageID, []>): RuleListener {
} as const);
}
return {
"JSXElement, JSXFragment": flow(getReportDescriptor(context), Report.make(context).send),
"JSXElement, JSXFragment": flow(getReportDescriptor(context), RPT.make(context).send),
};
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { RuleContext, RuleFeature } from "@eslint-react/kit";
import type { RuleListener } from "@typescript-eslint/utils/ts-eslint";
import type { CamelCase } from "string-ts";
import * as ER from "@eslint-react/core";
import { RE } from "@eslint-react/kit";
import { RegExp as RE } from "@eslint-react/kit";
import { AST_NODE_TYPES as T } from "@typescript-eslint/types";

import { createRule } from "../utils";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import { getSettingsFromContext } from "@eslint-react/shared";
import { createRule } from "../utils";
import { compare } from "compare-versions";
import { Report } from "@eslint-react/kit";
import { Reporter as RPT } from "@eslint-react/kit";
import type { RuleContext, RuleFeature } from "@eslint-react/kit";
import type { RuleListener } from "@typescript-eslint/utils/ts-eslint";

Expand Down Expand Up @@ -1090,7 +1090,7 @@ export default createRule({
});

export function create(context: RuleContext<MessageID, unknown[]>): RuleListener {
const report = Report.make(context);
const report = RPT.make(context);
function getIgnoreConfig() {
return context.options[0]?.ignore || DEFAULTS.ignore;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import type { JSONSchema4 } from "@typescript-eslint/utils/json-schema";
import type { RuleListener } from "@typescript-eslint/utils/ts-eslint";
import * as AST from "@eslint-react/ast";
import * as ER from "@eslint-react/core";
import { RE } from "@eslint-react/kit";
import { RegExp as RE } from "@eslint-react/kit";

import { createRule } from "../utils";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { RuleContext, RuleFeature } from "@eslint-react/kit";
import type { JSONSchema4 } from "@typescript-eslint/utils/json-schema";
import type { RuleListener } from "@typescript-eslint/utils/ts-eslint";
import path from "node:path";
import { RE } from "@eslint-react/kit";
import { RegExp as RE } from "@eslint-react/kit";
import { camelCase, kebabCase, pascalCase, snakeCase } from "string-ts";
import { match } from "ts-pattern";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import type { CamelCase } from "string-ts";
import * as AST from "@eslint-react/ast";
import * as ER from "@eslint-react/core";
import { _ } from "@eslint-react/eff";
import { Report, type RuleContext, type RuleFeature } from "@eslint-react/kit";
import { Reporter as RPT, type RuleContext, type RuleFeature } from "@eslint-react/kit";
import { unsafeDecodeSettings } from "@eslint-react/shared";
import { AST_NODE_TYPES as T } from "@typescript-eslint/types";
import { isMatching } from "ts-pattern";
Expand Down Expand Up @@ -109,7 +109,7 @@ export default createRule<[], MessageID>({
});

export function create(context: RuleContext<MessageID, []>): RuleListener {
const report = Report.make(context);
const report = RPT.make(context);
const indexParamNames: Array<string | _> = [];

function isArrayIndex(node: TSESTree.Node): node is TSESTree.Identifier {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { ReportDescriptor, RuleListener } from "@typescript-eslint/utils/ts
import type { CamelCase } from "string-ts";
import * as AST from "@eslint-react/ast";
import { _, flow } from "@eslint-react/eff";
import { Report, type RuleContext, type RuleFeature } from "@eslint-react/kit";
import { Reporter as RPT, type RuleContext, type RuleFeature } from "@eslint-react/kit";
import { getSettingsFromContext } from "@eslint-react/shared";
import * as VAR from "@eslint-react/var";
import { getConstrainedTypeAtLocation } from "@typescript-eslint/type-utils";
Expand Down Expand Up @@ -268,7 +268,7 @@ export function create(context: RuleContext<MessageID, []>): RuleListener {
.otherwise(() => _);
}
return {
JSXExpressionContainer: flow(getReportDescriptor, Report.make(context).send),
JSXExpressionContainer: flow(getReportDescriptor, RPT.make(context).send),
};
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { TSESTree } from "@typescript-eslint/types";
import type { RuleListener } from "@typescript-eslint/utils/ts-eslint";
import type { CamelCase } from "string-ts";
import * as ER from "@eslint-react/core";
import { type RuleContext, type RuleFeature, SEL } from "@eslint-react/kit";
import { type RuleContext, type RuleFeature, Selector as SEL } from "@eslint-react/kit";
import { AST_NODE_TYPES as T } from "@typescript-eslint/types";

import { createRule } from "../utils";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { ReportDescriptor, RuleListener } from "@typescript-eslint/utils/ts
import * as AST from "@eslint-react/ast";
import * as ER from "@eslint-react/core";

import { Report, type RuleContext, type RuleFeature } from "@eslint-react/kit";
import { Reporter as RPT, type RuleContext, type RuleFeature } from "@eslint-react/kit";

import { AST_NODE_TYPES as T } from "@typescript-eslint/types";
import { match } from "ts-pattern";
Expand Down Expand Up @@ -36,7 +36,7 @@ export default createRule<[], MessageID>({
});

export function create(context: RuleContext<MessageID, []>): RuleListener {
const report = Report.make(context);
const report = RPT.make(context);
const state = { isWithinChildrenToArray: false };

function checkIteratorElement(node: TSESTree.Node): null | ReportDescriptor<MessageID> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import type { CamelCase } from "string-ts";
import * as AST from "@eslint-react/ast";
import * as ER from "@eslint-react/core";
import { getOrElseUpdate } from "@eslint-react/eff";
import { SEL } from "@eslint-react/kit";
import { Selector as SEL } from "@eslint-react/kit";
import * as VAR from "@eslint-react/var";
import { AST_NODE_TYPES as T } from "@typescript-eslint/types";
import { match } from "ts-pattern";
Expand Down
2 changes: 1 addition & 1 deletion packages/shared/src/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { SharedConfigurationSettings } from "@typescript-eslint/utils/ts-es
import type { PartialDeep } from "type-fest";
import type { CustomHooks, ESLintReactSettings } from "./schemas";
import { identity } from "@eslint-react/eff";
import { RE } from "@eslint-react/kit";
import { RegExp as RE } from "@eslint-react/kit";
import * as z from "@zod/mini";
import { shallowEqual } from "fast-equals";
import memoize from "micro-memoize";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

***

[@eslint-react/kit](../../../README.md) / RE
[@eslint-react/kit](../../../README.md) / RegExp

# RE
# RegExp

## Variables

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

***

[@eslint-react/kit](../../../../README.md) / [RE](../README.md) / isRegExp
[@eslint-react/kit](../../../../README.md) / [RegExp](../README.md) / isRegExp

# Function: isRegExp()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

***

[@eslint-react/kit](../../../../README.md) / [RE](../README.md) / toRegExp
[@eslint-react/kit](../../../../README.md) / [RegExp](../README.md) / toRegExp

# Function: toRegExp()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

***

[@eslint-react/kit](../../../../README.md) / [RE](../README.md) / ANNOTATION\_JSX
[@eslint-react/kit](../../../../README.md) / [RegExp](../README.md) / ANNOTATION\_JSX

# Variable: ANNOTATION\_JSX

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

***

[@eslint-react/kit](../../../../README.md) / [RE](../README.md) / ANNOTATION\_JSX\_FRAG
[@eslint-react/kit](../../../../README.md) / [RegExp](../README.md) / ANNOTATION\_JSX\_FRAG

# Variable: ANNOTATION\_JSX\_FRAG

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

***

[@eslint-react/kit](../../../../README.md) / [RE](../README.md) / ANNOTATION\_JSX\_IMPORT\_SOURCE
[@eslint-react/kit](../../../../README.md) / [RegExp](../README.md) / ANNOTATION\_JSX\_IMPORT\_SOURCE

# Variable: ANNOTATION\_JSX\_IMPORT\_SOURCE

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

***

[@eslint-react/kit](../../../../README.md) / [RE](../README.md) / ANNOTATION\_JSX\_RUNTIME
[@eslint-react/kit](../../../../README.md) / [RegExp](../README.md) / ANNOTATION\_JSX\_RUNTIME

# Variable: ANNOTATION\_JSX\_RUNTIME

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

***

[@eslint-react/kit](../../../../README.md) / [RE](../README.md) / CAMEL\_CASE
[@eslint-react/kit](../../../../README.md) / [RegExp](../README.md) / CAMEL\_CASE

# Variable: CAMEL\_CASE

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

***

[@eslint-react/kit](../../../../README.md) / [RE](../README.md) / COMPONENT\_NAME
[@eslint-react/kit](../../../../README.md) / [RegExp](../README.md) / COMPONENT\_NAME

# Variable: COMPONENT\_NAME

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

***

[@eslint-react/kit](../../../../README.md) / [RE](../README.md) / COMPONENT\_NAME\_LOOSE
[@eslint-react/kit](../../../../README.md) / [RegExp](../README.md) / COMPONENT\_NAME\_LOOSE

# Variable: COMPONENT\_NAME\_LOOSE

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

***

[@eslint-react/kit](../../../../README.md) / [RE](../README.md) / CONSTANT\_CASE
[@eslint-react/kit](../../../../README.md) / [RegExp](../README.md) / CONSTANT\_CASE

# Variable: CONSTANT\_CASE

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

***

[@eslint-react/kit](../../../../README.md) / [RE](../README.md) / HOOK\_NAME
[@eslint-react/kit](../../../../README.md) / [RegExp](../README.md) / HOOK\_NAME

# Variable: HOOK\_NAME

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

***

[@eslint-react/kit](../../../../README.md) / [RE](../README.md) / HTML\_TAG
[@eslint-react/kit](../../../../README.md) / [RegExp](../README.md) / HTML\_TAG

# Variable: HTML\_TAG

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

***

[@eslint-react/kit](../../../../README.md) / [RE](../README.md) / JAVASCRIPT\_PROTOCOL
[@eslint-react/kit](../../../../README.md) / [RegExp](../README.md) / JAVASCRIPT\_PROTOCOL

# Variable: JAVASCRIPT\_PROTOCOL

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

***

[@eslint-react/kit](../../../../README.md) / [RE](../README.md) / JS\_EXT
[@eslint-react/kit](../../../../README.md) / [RegExp](../README.md) / JS\_EXT

# Variable: JS\_EXT

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

***

[@eslint-react/kit](../../../../README.md) / [RE](../README.md) / JS\_IDENTIFIER
[@eslint-react/kit](../../../../README.md) / [RegExp](../README.md) / JS\_IDENTIFIER

# Variable: JS\_IDENTIFIER

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

***

[@eslint-react/kit](../../../../README.md) / [RE](../README.md) / KEBAB\_CASE
[@eslint-react/kit](../../../../README.md) / [RegExp](../README.md) / KEBAB\_CASE

# Variable: KEBAB\_CASE

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

***

[@eslint-react/kit](../../../../README.md) / [RE](../README.md) / PASCAL\_CASE
[@eslint-react/kit](../../../../README.md) / [RegExp](../README.md) / PASCAL\_CASE

# Variable: PASCAL\_CASE

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

***

[@eslint-react/kit](../../../../README.md) / [RE](../README.md) / REGEXP\_STR
[@eslint-react/kit](../../../../README.md) / [RegExp](../README.md) / REGEXP\_STR

# Variable: REGEXP\_STR

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

***

[@eslint-react/kit](../../../../README.md) / [RE](../README.md) / SNAKE\_CASE
[@eslint-react/kit](../../../../README.md) / [RegExp](../README.md) / SNAKE\_CASE

# Variable: SNAKE\_CASE

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

***

[@eslint-react/kit](../../../../README.md) / [RE](../README.md) / TS\_EXT
[@eslint-react/kit](../../../../README.md) / [RegExp](../README.md) / TS\_EXT

# Variable: TS\_EXT

Expand Down

This file was deleted.

Loading
Loading