tsl-react 0.0.3-next.10 → 0.0.3-next.12
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.js +2 -2
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import { SyntaxKind } from "typescript";
|
|
|
4
4
|
import { isLogicalNegationExpression } from "@react-analyzer/ast";
|
|
5
5
|
import * as RA from "@react-analyzer/core";
|
|
6
6
|
import { unit } from "@react-analyzer/eff";
|
|
7
|
-
import {
|
|
7
|
+
import { report } from "@react-analyzer/kit";
|
|
8
8
|
import { getAnalyzerOptions } from "@react-analyzer/shared";
|
|
9
9
|
|
|
10
10
|
//#region src/rules/no-leaked-conditional-rendering.ts
|
|
@@ -107,7 +107,7 @@ const noLeakedConditionalRendering = defineRule(() => {
|
|
|
107
107
|
const { state, getReportDescriptor } = ctx.data;
|
|
108
108
|
if (!state.isWithinJsxExpression) return;
|
|
109
109
|
if (node.operatorToken.kind !== SyntaxKind.AmpersandAmpersandToken) return;
|
|
110
|
-
|
|
110
|
+
report(ctx, getReportDescriptor(node));
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
113
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tsl-react",
|
|
3
|
-
"version": "0.0.3-next.
|
|
3
|
+
"version": "0.0.3-next.12",
|
|
4
4
|
"description": "A unified plugin that combines all individual plugins from the react-analyzer monorepo into one.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -28,18 +28,18 @@
|
|
|
28
28
|
],
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"compare-versions": "^6.1.1",
|
|
31
|
-
"@react-analyzer/ast": "0.0.3-next.
|
|
32
|
-
"@react-analyzer/core": "0.0.3-next.
|
|
33
|
-
"@react-analyzer/eff": "0.0.3-next.
|
|
34
|
-
"@react-analyzer/
|
|
35
|
-
"@react-analyzer/
|
|
31
|
+
"@react-analyzer/ast": "0.0.3-next.12",
|
|
32
|
+
"@react-analyzer/core": "0.0.3-next.12",
|
|
33
|
+
"@react-analyzer/eff": "0.0.3-next.12",
|
|
34
|
+
"@react-analyzer/kit": "0.0.3-next.12",
|
|
35
|
+
"@react-analyzer/shared": "0.0.3-next.12"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"tsdown": "^0.15.
|
|
38
|
+
"tsdown": "^0.15.2",
|
|
39
39
|
"@local/configs": "0.0.0"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"tsl": "^1.0.
|
|
42
|
+
"tsl": "^1.0.24",
|
|
43
43
|
"typescript": "^4.9.5 || ^5.4.5"
|
|
44
44
|
},
|
|
45
45
|
"engines": {
|