tsl-dx 0.10.2 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import * as tsl from "tsl";
1
+ import * as _$tsl from "tsl";
2
2
 
3
3
  //#region src/rules/no-duplicate-exports.d.ts
4
4
  /**
@@ -17,7 +17,7 @@ import * as tsl from "tsl";
17
17
  * export { A, B } from 'module';
18
18
  * ```
19
19
  */
20
- declare const noDuplicateExports: (options?: "off" | undefined) => tsl.Rule<unknown>;
20
+ declare const noDuplicateExports: (options?: "off" | undefined) => _$tsl.Rule<unknown>;
21
21
  //#endregion
22
22
  //#region src/rules/no-duplicate-imports.d.ts
23
23
  /**
@@ -36,7 +36,7 @@ declare const noDuplicateExports: (options?: "off" | undefined) => tsl.Rule<unkn
36
36
  * import { A, B } from 'module';
37
37
  * ```
38
38
  */
39
- declare const noDuplicateImports: (options?: "off" | undefined) => tsl.Rule<unknown>;
39
+ declare const noDuplicateImports: (options?: "off" | undefined) => _$tsl.Rule<unknown>;
40
40
  //#endregion
41
41
  //#region src/rules/no-multiline-template-expression-without-auto-dedent.d.ts
42
42
  type noMultilineTemplateExpressionWithoutAutoDedentOptions = {
@@ -65,29 +65,27 @@ type noMultilineTemplateExpressionWithoutAutoDedentOptions = {
65
65
  * `;
66
66
  * ```
67
67
  */
68
- declare const noMultilineTemplateExpressionWithoutAutoDedent: (options?: "off" | noMultilineTemplateExpressionWithoutAutoDedentOptions | undefined) => tsl.Rule<unknown>;
68
+ declare const noMultilineTemplateExpressionWithoutAutoDedent: (options?: "off" | noMultilineTemplateExpressionWithoutAutoDedentOptions | undefined) => _$tsl.Rule<unknown>;
69
69
  //#endregion
70
70
  //#region src/rules/nullish.d.ts
71
71
  type nullishOptions = {
72
72
  runtimeLibrary?: string;
73
73
  };
74
74
  /**
75
- * Rule to enforce the use of `unit` instead of `undefined` and loose equality for nullish checks.
75
+ * Rule to enforce the use of loose equality for nullish checks.
76
76
  *
77
77
  * @example
78
78
  *
79
79
  * ```ts
80
80
  * // Incorrect
81
- * let x = undefined;
82
81
  * if (x === undefined) { }
83
82
  * ```
84
83
  *
85
84
  * ```ts
86
85
  * // Correct
87
- * let x = unit;
88
86
  * if (x == null) { }
89
87
  * ```
90
88
  */
91
- declare const nullish: (options?: nullishOptions | "off" | undefined) => tsl.Rule<unknown>;
89
+ declare const nullish: (options?: "off" | nullishOptions | undefined) => _$tsl.Rule<unknown>;
92
90
  //#endregion
93
91
  export { noDuplicateExports, noDuplicateImports, noMultilineTemplateExpressionWithoutAutoDedent, nullish };
package/dist/index.js CHANGED
@@ -222,19 +222,17 @@ const messages = {
222
222
  replace: (p) => `Replace with '${p.expr}'.`
223
223
  };
224
224
  /**
225
- * Rule to enforce the use of `unit` instead of `undefined` and loose equality for nullish checks.
225
+ * Rule to enforce the use of loose equality for nullish checks.
226
226
  *
227
227
  * @example
228
228
  *
229
229
  * ```ts
230
230
  * // Incorrect
231
- * let x = undefined;
232
231
  * if (x === undefined) { }
233
232
  * ```
234
233
  *
235
234
  * ```ts
236
235
  * // Correct
237
- * let x = unit;
238
236
  * if (x == null) { }
239
237
  * ```
240
238
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tsl-dx",
3
- "version": "0.10.2",
3
+ "version": "0.11.0",
4
4
  "description": "A tsl plugin for better JavaScript/TypeScript DX.",
5
5
  "keywords": [
6
6
  "tsl",
@@ -26,14 +26,14 @@
26
26
  "devDependencies": {
27
27
  "@liautaud/typezod": "^2.0.0",
28
28
  "dedent": "^1.7.2",
29
- "tsdown": "^0.21.4",
30
- "tsl": "^1.0.29",
31
- "vitest": "^4.1.0",
29
+ "tsdown": "^0.21.9",
30
+ "tsl": "^1.0.30",
31
+ "vitest": "^4.1.4",
32
32
  "@local/configs": "0.0.0",
33
33
  "@local/eff": "0.2.9"
34
34
  },
35
35
  "peerDependencies": {
36
- "tsl": "^1.0.29",
36
+ "tsl": "^1.0.30",
37
37
  "typescript": "*"
38
38
  },
39
39
  "publishConfig": {
@@ -42,7 +42,7 @@
42
42
  "scripts": {
43
43
  "build": "tsdown --dts-resolve",
44
44
  "build:docs": "typedoc",
45
- "lint:publish": "pnpm publint",
45
+ "lint:publish": "publint",
46
46
  "lint:ts": "tsl",
47
47
  "test": "vitest"
48
48
  }