Skip to content

Commit ea3b2ab

Browse files
authored
Merge branch 'main' into add-tsl-rules-of-react
2 parents 504b114 + 31e0974 commit ea3b2ab

File tree

16 files changed

+122
-3780
lines changed

16 files changed

+122
-3780
lines changed

.pkgs/configs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@
1717
"@tsconfig/node24": "^24.0.4",
1818
"@tsconfig/strictest": "^2.0.8",
1919
"tsl": "^1.0.29",
20-
"tsl-dx": "^0.7.1"
20+
"tsl-dx": "^0.8.0"
2121
}
2222
}

.pkgs/configs/tsl.config.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { globSync } from "tinyglobby";
12
import { core, defineConfig } from "tsl";
23
import {
34
noDuplicateExports,
@@ -7,6 +8,9 @@ import {
78
} from "tsl-dx";
89

910
export default defineConfig({
11+
ignore: [
12+
...globSync(["**/*.d.ts", "**/dist/**", "**/build/**"], { ignore: ["**/node_modules/**"] }),
13+
],
1014
rules: [
1115
...core.all(),
1216
core.strictBooleanExpressions({

.pkgs/eff/src/index.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,6 @@
4848

4949
// #region Helpers
5050

51-
/**
52-
* alias for `undefined`.
53-
*/
54-
export type unit = undefined;
55-
56-
/**
57-
* alias for `undefined`.
58-
*/
59-
export const unit = undefined;
60-
6151
/**
6252
* Simplifies a complex type intersection into a flat object type for better readability
6353
* in IDE tooltips and error messages.

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [0.7.1] - 2025-02-21
11+
12+
- Updated dependencies: `@types/node` to ^25.3.0, `effect` to ^3.19.18, `eslint` to ^10.0.1, `pnpm` to 10.30.1
13+
- **tsl-dx**: Removed unused code from `nullish` rule
14+
- Updated `tsl.config.ts` with ignore patterns for `.d.ts`, `dist/`, and `build/` directories
15+
1016
## [0.7.0] - 2025-02-11
1117

1218
### Added

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.7.0
1+
0.9.0

package.json

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dx",
3-
"version": "0.7.0",
3+
"version": "0.9.0",
44
"private": true,
55
"description": "Monorepo for JavaScript and TypeScript dx libraries.",
66
"homepage": "https://github.com/Rel1cx/dx",
@@ -37,21 +37,17 @@
3737
"@local/eff": "workspace:*",
3838
"@tsconfig/node24": "^24.0.4",
3939
"@tsconfig/strictest": "^2.0.8",
40-
"@types/node": "^25.3.0",
41-
"@types/react": "^19.2.14",
42-
"@types/react-dom": "^19.2.3",
40+
"@types/node": "^25.3.2",
4341
"ansis": "^4.2.0",
44-
"dedent": "^1.7.1",
45-
"dprint": "^0.51.1",
46-
"effect": "^3.19.18",
47-
"preact": "^10.28.4",
42+
"dprint": "^0.52.0",
43+
"effect": "^3.19.19",
4844
"publint": "^0.3.17",
4945
"react": "^19.2.4",
5046
"react-dom": "^19.2.4",
5147
"sort-package-json": "^3.6.1",
5248
"tinyglobby": "^0.2.15",
5349
"ts-pattern": "^5.9.0",
54-
"tsdown": "^0.20.3",
50+
"tsdown": "^0.21.0-beta.2",
5551
"tsl": "^1.0.29",
5652
"tsl-dx": "workspace:*",
5753
"tsx": "latest",
@@ -61,7 +57,7 @@
6157
"typescript": "^5.9.3",
6258
"vitest": "^4.0.18"
6359
},
64-
"packageManager": "pnpm@10.30.1",
60+
"packageManager": "pnpm@10.30.3",
6561
"engines": {
6662
"node": ">=24.0.0"
6763
}

packages/eslint-plugin-function-rule/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "eslint-plugin-function-rule",
3-
"version": "0.7.0",
3+
"version": "0.9.0",
44
"description": "An ESLint plugin to write custom rules with JavaScript functions.",
55
"homepage": "https://github.com/Rel1cx/dx",
66
"bugs": {

packages/eslint-plugin-function/package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "eslint-plugin-function",
3-
"version": "0.7.0",
3+
"version": "0.9.0",
44
"private": false,
55
"description": "(WIP) An ESLint plugin for function-related rules.",
66
"homepage": "https://github.com/Rel1cx/dx",
@@ -36,21 +36,21 @@
3636
"dependencies": {
3737
"@eslint-react/ast": "^2.13.0",
3838
"@eslint-react/shared": "^2.13.0",
39-
"@typescript-eslint/scope-manager": "^8.56.0",
40-
"@typescript-eslint/type-utils": "^8.56.0",
41-
"@typescript-eslint/types": "^8.56.0",
42-
"@typescript-eslint/utils": "^8.56.0",
39+
"@typescript-eslint/scope-manager": "^8.56.1",
40+
"@typescript-eslint/type-utils": "^8.56.1",
41+
"@typescript-eslint/types": "^8.56.1",
42+
"@typescript-eslint/utils": "^8.56.1",
4343
"string-ts": "^2.3.1",
4444
"ts-api-utils": "^2.4.0",
4545
"ts-pattern": "^5.9.0",
46-
"typescript-eslint": "^8.56.0"
46+
"typescript-eslint": "^8.56.1"
4747
},
4848
"devDependencies": {
4949
"@local/eff": "workspace:*",
50-
"@types/node": "^25.3.0",
50+
"@types/node": "^25.3.2",
5151
"dedent": "^1.7.1",
52-
"eslint": "^10.0.1",
53-
"tsdown": "^0.20.3",
52+
"eslint": "^10.0.2",
53+
"tsdown": "^0.21.0-beta.2",
5454
"tsl": "^1.0.29"
5555
},
5656
"peerDependencies": {

packages/eslint-plugin-function/src/rules/function-return-boolean.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import * as AST from "@eslint-react/ast";
22
import { toRegExp } from "@eslint-react/shared";
33
import type { RuleContext, RuleFeature } from "@eslint-react/shared";
4-
import { type unit } from "@local/eff";
54
import { getConstrainedTypeAtLocation } from "@typescript-eslint/type-utils";
65
import { AST_NODE_TYPES as T, type TSESTree } from "@typescript-eslint/types";
76
import { ESLintUtils } from "@typescript-eslint/utils";
@@ -18,12 +17,7 @@ export const RULE_FEATURES = [] as const satisfies RuleFeature[];
1817

1918
export type MessageID = CamelCase<typeof RULE_NAME>;
2019

21-
type Options = readonly [
22-
| unit
23-
| {
24-
readonly pattern?: string;
25-
},
26-
];
20+
type Options = readonly [{ readonly pattern?: string }?];
2721

2822
const defaultPattern = "/^(is|has|should)/u";
2923

packages/tsl-dx/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tsl-dx",
3-
"version": "0.7.0",
3+
"version": "0.9.0",
44
"description": "A tsl plugin for better JavaScript/TypeScript DX.",
55
"keywords": [
66
"tsl",
@@ -32,10 +32,11 @@
3232
"ts-pattern": "^5.9.0"
3333
},
3434
"devDependencies": {
35+
"@liautaud/typezod": "^2.0.0",
3536
"@local/configs": "workspace:*",
3637
"@local/eff": "workspace:*",
3738
"dedent": "^1.7.1",
38-
"tsdown": "^0.20.3",
39+
"tsdown": "^0.21.0-beta.2",
3940
"tsl": "^1.0.29",
4041
"vitest": "^4.0.18"
4142
},

0 commit comments

Comments
 (0)