We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 051dfd8 commit d1d0523Copy full SHA for d1d0523
src/utils/getElementType.ts
@@ -3,6 +3,13 @@ import type { AST } from "vue-eslint-parser";
3
import getElementAttributeValue from "./getElementAttributeValue";
4
import makeKebabCase from "./makeKebabCase";
5
6
+/**
7
+ * Returns a kebab-normalized string representing the element node name
8
+ * or, if the `is` attribute is a string, its value if present.
9
+ * @example <div is="foo-bar"> => "foo-bar"
10
+ * @example <foo-bar> => "foo-bar"
11
+ * @example <div> => "div"
12
+ */
13
function getElementType(node: AST.VElement) {
14
let is = getElementAttributeValue(node, "is");
15
0 commit comments