@ripple-ts/eslint-parser 0.2.208 → 0.2.211
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 +15 -7
- package/package.json +5 -2
package/README.md
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
# @ripple-ts/eslint-parser
|
|
2
2
|
|
|
3
|
-
ESLint parser for Ripple (.ripple files). This parser enables ESLint to understand
|
|
3
|
+
ESLint parser for Ripple (.ripple files). This parser enables ESLint to understand
|
|
4
|
+
and lint `.ripple` files by leveraging Ripple's built-in compiler.
|
|
4
5
|
|
|
5
6
|
## Installation
|
|
6
7
|
|
|
@@ -56,7 +57,9 @@ export default [
|
|
|
56
57
|
|
|
57
58
|
## How It Works
|
|
58
59
|
|
|
59
|
-
This parser uses Ripple's compiler (`ripple/compiler`) to parse `.ripple` files
|
|
60
|
+
This parser uses Ripple's compiler (`ripple/compiler`) to parse `.ripple` files
|
|
61
|
+
into an ESTree-compatible AST that ESLint can analyze. The Ripple compiler already
|
|
62
|
+
outputs ESTree-compliant ASTs, making integration straightforward.
|
|
60
63
|
|
|
61
64
|
The parser:
|
|
62
65
|
|
|
@@ -93,7 +96,8 @@ export component Counter() {
|
|
|
93
96
|
}
|
|
94
97
|
```
|
|
95
98
|
|
|
96
|
-
The parser will successfully parse this and allow ESLint rules (like those from
|
|
99
|
+
The parser will successfully parse this and allow ESLint rules (like those from
|
|
100
|
+
`@ripple-ts/eslint-plugin`) to check for:
|
|
97
101
|
|
|
98
102
|
- Track calls at module scope
|
|
99
103
|
- Missing @ operators
|
|
@@ -102,15 +106,19 @@ The parser will successfully parse this and allow ESLint rules (like those from
|
|
|
102
106
|
|
|
103
107
|
## Limitations
|
|
104
108
|
|
|
105
|
-
- The parser requires Node.js runtime as it uses `require()` to load the Ripple
|
|
109
|
+
- The parser requires Node.js runtime as it uses `require()` to load the Ripple
|
|
110
|
+
compiler
|
|
106
111
|
- Browser-based linting is not currently supported
|
|
107
112
|
|
|
108
113
|
## Related Packages
|
|
109
114
|
|
|
110
|
-
- [@ripple-ts/eslint-plugin](https://www.npmjs.com/package/@ripple-ts/eslint-plugin) -
|
|
115
|
+
- [@ripple-ts/eslint-plugin](https://www.npmjs.com/package/@ripple-ts/eslint-plugin) -
|
|
116
|
+
ESLint rules for Ripple
|
|
111
117
|
- [ripple](https://ripplejs.com) - The Ripple framework
|
|
112
|
-
- [@ripple-ts/vite-plugin](https://www.npmjs.com/package/@ripple-ts/vite-plugin) -
|
|
113
|
-
|
|
118
|
+
- [@ripple-ts/vite-plugin](https://www.npmjs.com/package/@ripple-ts/vite-plugin) -
|
|
119
|
+
Vite plugin for Ripple
|
|
120
|
+
- [@ripple-ts/prettier-plugin](https://www.npmjs.com/package/@ripple-ts/prettier-plugin) -
|
|
121
|
+
Prettier plugin for Ripple
|
|
114
122
|
|
|
115
123
|
## License
|
|
116
124
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ripple-ts/eslint-parser",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.211",
|
|
4
4
|
"description": "ESLint parser for Ripple (.ripple files)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -13,6 +13,9 @@
|
|
|
13
13
|
"url": "https://github.com/Ripple-TS/ripple/issues"
|
|
14
14
|
},
|
|
15
15
|
"homepage": "https://ripplejs.com",
|
|
16
|
+
"publishConfig": {
|
|
17
|
+
"access": "public"
|
|
18
|
+
},
|
|
16
19
|
"exports": {
|
|
17
20
|
".": "./dist/index.js"
|
|
18
21
|
},
|
|
@@ -36,7 +39,7 @@
|
|
|
36
39
|
"@types/node": "^24.3.0",
|
|
37
40
|
"tsdown": "^0.15.4",
|
|
38
41
|
"typescript": "^5.9.2",
|
|
39
|
-
"ripple": "0.2.
|
|
42
|
+
"ripple": "0.2.211"
|
|
40
43
|
},
|
|
41
44
|
"engines": {
|
|
42
45
|
"node": ">=20.0.0"
|