Skip to content

Commit 20123aa

Browse files
askhatpathscale
authored andcommitted
chore: lint files
1 parent 41c7341 commit 20123aa

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

src/analyzer.ts

+3-7
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,8 @@ export function analyze(
7373
const whitelist = new Set<string>(["*", "html", "head", "body", "div", "app"]);
7474
let currentTag = "";
7575

76-
const idList = (Array.isArray(input)
77-
? input
78-
: typeof input === "object"
79-
? Object.values(input)
80-
: [input]
76+
const idList = (
77+
Array.isArray(input) ? input : typeof input === "object" ? Object.values(input) : [input]
8178
).map(id => normalizePath(path.resolve(id)));
8279

8380
const parser = new htmlparser.Parser(
@@ -97,8 +94,7 @@ export function analyze(
9794
onattribute(p, data) {
9895
for (const cl of data.split(" ")) whitelist.add(cl);
9996

100-
const prop = p.replace(":", "") // remove : from props like :loading -> loading
101-
97+
const prop = p.replace(":", ""); // remove : from props like :loading -> loading
10298

10399
if (kebabCase(currentTag).startsWith("v-")) {
104100
// optional

0 commit comments

Comments
 (0)