Skip to content

Commit e16dddc

Browse files
committed
release: 1.5.1-next.1
1 parent ca58c8b commit e16dddc

File tree

149 files changed

+262
-38659
lines changed

Some content is hidden

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

149 files changed

+262
-38659
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
1-
## v1.5.1-next.0 (Mon Jan 29 2024)
1+
## v1.5.1 (Draft)
22

33
### ✨ New
44

55
- Add `off-dom` and `off-dom-legacy` presets to disable all DOM related rules.
66

7+
### 🪄 Improvements
8+
9+
- Reduce dependencies size.
10+
711
## v1.5.0 (Mon Jan 29 2024)
812

913
### 💥 Breaking Changes

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.5.1-next.0
1+
1.5.1-next.1

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@eslint-react/monorepo",
3-
"version": "1.5.1-next.0",
4-
"description": "Essential React Lints for libraries and frameworks that use React as a UI runtime.",
3+
"version": "1.5.1-next.1",
4+
"description": "Essential React lints for libraries and frameworks that use React as a UI runtime.",
55
"keywords": [
66
"eslint",
77
"eslint-plugin",

packages/core/package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@eslint-react/core",
3-
"version": "1.5.1-next.0",
3+
"version": "1.5.1-next.1",
44
"description": "ESLint React's ESLint utility module for static analysis of React core APIs and Patterns.",
55
"homepage": "https://github.com/rel1cx/eslint-react",
66
"bugs": {
@@ -52,5 +52,8 @@
5252
"@typescript-eslint/types": ">=6.19.1",
5353
"@typescript-eslint/utils": ">=6.19.1",
5454
"short-unique-id": "5.0.3"
55+
},
56+
"devDependencies": {
57+
"effect": "2.2.2"
5558
}
5659
}

packages/core/src/component/component-collector-legacy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { getClassIdentifier, NodeType, type TSESTreeClass } from "@eslint-react/ast";
22
import { getPragmaFromContext } from "@eslint-react/jsx";
3-
import { O } from "@eslint-react/tools";
43
import type { RuleContext } from "@eslint-react/types";
54
import type { ESLintUtils, TSESTree } from "@typescript-eslint/utils";
5+
import { Option as O } from "effect";
66
import ShortUniqueId from "short-unique-id";
77
import { match, P } from "ts-pattern";
88

packages/core/src/component/component-collector.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ import {
99
type TSESTreeFunction,
1010
} from "@eslint-react/ast";
1111
import { getPragmaFromContext, isChildrenOfCreateElement, isJSXValue } from "@eslint-react/jsx";
12-
import { F, MutList, MutRef, O } from "@eslint-react/tools";
1312
import type { RuleContext } from "@eslint-react/types";
1413
import { type TSESTree } from "@typescript-eslint/types";
1514
import type { ESLintUtils } from "@typescript-eslint/utils";
15+
import { Function as F, MutableList as MutList, MutableRef as MutRef, Option as O } from "effect";
1616
import ShortUniqueId from "short-unique-id";
1717
import { isMatching, match } from "ts-pattern";
1818

packages/core/src/component/component-id.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { getFunctionIdentifier, NodeType, type TSESTreeFunction } from "@eslint-react/ast";
2-
import { O } from "@eslint-react/tools";
32
import type { RuleContext } from "@eslint-react/types";
43
import type { TSESTree } from "@typescript-eslint/types";
4+
import { Option as O } from "effect";
55

66
import { isReactHookCallWithNameLoose } from "../hook";
77
import { isForwardRefCall, isMemoCall } from "../react-api";

packages/core/src/component/component-init-path.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* eslint-disable perfectionist/sort-union-types */
22
import { NodeType, type TSESTreeFunction } from "@eslint-react/ast";
3-
import { F, O } from "@eslint-react/tools";
43
import type { TSESTree } from "@typescript-eslint/types";
4+
import { Function as F, Option as O } from "effect";
55

66
export type ERComponentInitPath =
77
/**

packages/core/src/component/component-name.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { type TSESTreeFunction } from "@eslint-react/ast";
2-
import { F, O } from "@eslint-react/tools";
32
import type { RuleContext } from "@eslint-react/types";
43
import type { TSESTree } from "@typescript-eslint/types";
4+
import { Function as F, Option as O } from "effect";
55

66
import { getFunctionComponentIdentifier } from "./component-id";
77

packages/core/src/component/component-render-method.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { NodeType, traverseUp, type TSESTreeFunction } from "@eslint-react/ast";
2-
import { O } from "@eslint-react/tools";
32
import type { RuleContext } from "@eslint-react/types";
43
import type { TSESTree } from "@typescript-eslint/utils";
4+
import { Option as O } from "effect";
55
import { isMatching, P } from "ts-pattern";
66

77
import { isClassComponent } from "./component-collector-legacy";

0 commit comments

Comments
 (0)