tsl-dx 0.10.3 → 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 +2 -4
- package/dist/index.js +1 -3
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -72,22 +72,20 @@ type nullishOptions = {
|
|
|
72
72
|
runtimeLibrary?: string;
|
|
73
73
|
};
|
|
74
74
|
/**
|
|
75
|
-
* Rule to enforce the use of
|
|
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?:
|
|
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
|
|
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.
|
|
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.
|
|
29
|
+
"tsdown": "^0.21.9",
|
|
30
30
|
"tsl": "^1.0.30",
|
|
31
|
-
"vitest": "^4.1.
|
|
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.
|
|
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": "
|
|
45
|
+
"lint:publish": "publint",
|
|
46
46
|
"lint:ts": "tsl",
|
|
47
47
|
"test": "vitest"
|
|
48
48
|
}
|