oxlint-plugin-vue-sfc 0.1.0 → 0.1.2
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/package.json +4 -4
- package/utils/vue-sfc.mjs +0 -10
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oxlint-plugin-vue-sfc",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Vue SFC template rules for oxlint, as a JS plugin. Ports of eslint-plugin-vue rules oxlint has no native equivalent for.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -16,12 +16,12 @@
|
|
|
16
16
|
],
|
|
17
17
|
"repository": {
|
|
18
18
|
"type": "git",
|
|
19
|
-
"url": "git+https://github.com/Togetic/oxlint-plugin-vue.git"
|
|
19
|
+
"url": "git+https://github.com/Togetic/oxlint-plugin-vue-sfc.git"
|
|
20
20
|
},
|
|
21
21
|
"bugs": {
|
|
22
|
-
"url": "https://github.com/Togetic/oxlint-plugin-vue/issues"
|
|
22
|
+
"url": "https://github.com/Togetic/oxlint-plugin-vue-sfc/issues"
|
|
23
23
|
},
|
|
24
|
-
"homepage": "https://github.com/Togetic/oxlint-plugin-vue#readme",
|
|
24
|
+
"homepage": "https://github.com/Togetic/oxlint-plugin-vue-sfc#readme",
|
|
25
25
|
"author": "Togetic",
|
|
26
26
|
"exports": {
|
|
27
27
|
".": "./index.mjs",
|
package/utils/vue-sfc.mjs
CHANGED
|
@@ -190,13 +190,3 @@ export const collectPatternNames = (pattern, into) => {
|
|
|
190
190
|
}
|
|
191
191
|
};
|
|
192
192
|
|
|
193
|
-
/** Set of static `v-on` event names (`@click`, `v-on:click`) on a template element. */
|
|
194
|
-
export function eventNames(el) {
|
|
195
|
-
const names = new Set();
|
|
196
|
-
for (const p of el.props ?? []) {
|
|
197
|
-
if (p.type === PROP_DIRECTIVE && p.name === "on" && p.arg?.type === 4 /* SIMPLE */) {
|
|
198
|
-
names.add(p.arg.content);
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
return names;
|
|
202
|
-
}
|