@tsrx/eslint-parser 0.3.138 → 0.4.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/README.md +3 -4
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -76,7 +76,6 @@ The parser supports TSRX syntax including:
|
|
|
76
76
|
- JSX statement containers with `@{ ... }` for setup plus one rendered output
|
|
77
77
|
- Template directives like `@if`, `@for`, `@switch`, and `@try`
|
|
78
78
|
- Function components that return TSRX, TSX, or standard JavaScript values
|
|
79
|
-
- `&{}` and `&[]` lazy destructuring
|
|
80
79
|
- All standard JavaScript/TypeScript syntax
|
|
81
80
|
|
|
82
81
|
## Example
|
|
@@ -87,11 +86,11 @@ Given a `.tsrx` file:
|
|
|
87
86
|
import { signal } from 'signals';
|
|
88
87
|
|
|
89
88
|
export function Counter() @{
|
|
90
|
-
|
|
89
|
+
const count = signal(0);
|
|
91
90
|
|
|
92
|
-
<button onClick={() => count++}>
|
|
91
|
+
<button onClick={() => count.value++}>
|
|
93
92
|
Increment
|
|
94
|
-
<span>{count}</span>
|
|
93
|
+
<span>{count.value}</span>
|
|
95
94
|
</button>
|
|
96
95
|
}
|
|
97
96
|
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsrx/eslint-parser",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "ESLint parser for TSRX (.tsrx files)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.ts",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"eslint": ">=9.0.0"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@tsrx/core": "0.
|
|
36
|
+
"@tsrx/core": "0.2.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@types/eslint": "^9.6.1",
|