@clarusjs/eslint-plugin 0.1.0 → 0.1.1
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 +5 -0
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -48,6 +48,11 @@ function* expressions(nodes) {
|
|
|
48
48
|
}
|
|
49
49
|
else if (n.type === 'fill')
|
|
50
50
|
yield* expressions(n.children);
|
|
51
|
+
else if (n.type === 'await') {
|
|
52
|
+
yield n.expr;
|
|
53
|
+
for (const kids of [n.pending, ...(n.then ? [n.then.children] : []), ...(n.catch ? [n.catch.children] : [])])
|
|
54
|
+
yield* expressions(kids);
|
|
55
|
+
}
|
|
51
56
|
}
|
|
52
57
|
}
|
|
53
58
|
/** The text ESLint parses: the script where it is, everything else spaces (line breaks kept). */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@clarusjs/eslint-plugin",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Lint clarusjs .tscl components with ESLint: their <script> blocks with your rules, and the template rules of clarusjs check",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -28,13 +28,13 @@
|
|
|
28
28
|
"README.md"
|
|
29
29
|
],
|
|
30
30
|
"peerDependencies": {
|
|
31
|
-
"clarusjs": ">=0.
|
|
31
|
+
"clarusjs": ">=0.14.0",
|
|
32
32
|
"eslint": "^9.0.0 || ^10.0.0"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@types/node": "^26.6.6",
|
|
36
36
|
"@typescript/native": "npm:typescript@^7.0.2",
|
|
37
|
-
"clarusjs": "0.
|
|
37
|
+
"clarusjs": "0.14.0",
|
|
38
38
|
"eslint": "10.15.0",
|
|
39
39
|
"typescript": "npm:@typescript/typescript6@6.0.2",
|
|
40
40
|
"typescript-eslint": "8.73.0",
|